Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by He-light, Feb 11, 2020.
Hi, is there a way to get the Itemstack of the arrow, loaded by a bow or crossbow?
if I remember right the arrow picked is first checking the offhand then iterating through the player inventory contents to pick the first arrow.
For a crossbow you can use get the crossbow, get the item meta, cast it to CrossbowMeta and then call CrossbowMeta#getChargedProjectiles to get the loaded projectiles.