Skip to content

Instantly share code, notes, and snippets.

@Densyakun
Last active February 11, 2018 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Densyakun/75572fc9bf465b6e66dafd8369cd2606 to your computer and use it in GitHub Desktop.
Save Densyakun/75572fc9bf465b6e66dafd8369cd2606 to your computer and use it in GitHub Desktop.
[BukkitPlugin]矢を大量に放つプログラム。Arrow many shooter.
@EventHandler
public void a (EntityShootBowEvent e) {
if (e.getEntityType() == EntityType.PLAYER)
for (int a = 0; a < 9; a++)
e.getProjectile().getWorld().spawnArrow(e.getProjectile().getLocation(),e.getProjectile().getVelocity(), 3, 1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment