Guest User

Untitled

a guest
Dec 11th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.40 KB | None | 0 0
  1. Block target = shooter.getTargetBlock(null, 8);
  2. Location targetLoc = target.getLocation();
  3. Vector vec = new Vector(0, -1, 0);
  4. Location center = target.getLocation();
  5. center.setY(255);
  6. Fireball fireball = shooter.getWorld().spawn(new Location(targetLoc.getX(), 255, targetLoc.getZ()), Fireball.class);
  7. fireball.setDirection(vec);
  8. fireball.setShooter(shooter);
  9. shooter.sendMessage("Fireball shot!");
Add Comment
Please, Sign In to add comment