Как по пкм выстреливать сразу много стрел (как автомат) и по нажатию, а не зажиманию?
Java:
public ItemStack onFocusRightClick(ItemStack itemstack, World world, EntityPlayer player, MovingObjectPosition mop) {//активация правой кнопкой
ItemWandCasting wand = (ItemWandCasting)itemstack.getItem();
EntityArrow arrow = new EntityArrow(world, player, 1.5F);
arrow.canBePickedUp = 0;
arrow.noClip = true;
if(!world.isRemote && wand.consumeAllVis(itemstack, player, getVisCost(itemstack), true, false))
{
world.spawnEntityInWorld(arrow);
}
player.swingItem();
return itemstack;
}