Make an unhittable fireball

U

/u/twoistaken

Guest
Member
So I'm working on this bullet hell plugin using fireballs, and I need them to be unhittable. The biggest problem is that fireballs are hitting themselves while spawning, making it so the fireballs don't go towards the player.

Random random = new Random(); World world = Bukkit.getWorld("world"); BukkitScheduler scheduler = getServer().getScheduler(); scheduler.scheduleSyncRepeatingTask(this, new Runnable() { @Override public void run() { Player player = world.getPlayers().get(0); float locationRadius = random.nextFloat() * 0.25f; float locationAngle = random.nextFloat() * 360f; Location location = new Location(world, player.getLocation().x() + Math.cos(locationAngle) * locationRadius, player.getLocation().y() + 20, player.getLocation().z() + Math.sin(locationAngle) * locationRadius); Fireball fireball = (Fireball) world.spawnEntity(location, EntityType.FIREBALL); fireball.setIsIncendiary(false); fireball.setYield(0); fireball.setSilent(true); float directionRadius = random.nextFloat() * 0.25f; float directionAngle = random.nextFloat() * 360f; fireball.setDirection(new Vector(Math.cos(directionAngle) * directionRadius, -1, Math.sin(directionAngle) * directionRadius)); } }, 0L, 1L);
submitted by /u/twoistaken
[link] [comments]

Continue reading...

free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons
 
BlackSpigot General Chat
Rules Help Users
    S @ superme0s: This
    Top