I.e. if I type /firearrow, I want:
- An arrow to be shot in the direction I’m looking at, and take the path of a snowball.
- The arrow should have particles surrounding it as it flies through the air.
- The arrow, upon landing, should explode a few blocks around it (maybe TNT style?) and do damage to a player.
Specifically, I’m not sure how to do #1 and #2. For #1, my guess is that I would actually fire a snowball using player.launchProjectile(Snowball.class), and somehow disguise it as an arrow? Also (to achieve #2), how does one “track” the projectile fired by a player, so that I can spawn particles around it?