Greetings everyone, I've been trying to code an automatic shooting weapon recently, and encountered a problem. My weapon uses an NBT integer tag to store the current magazine contents, and should fire as long as the RMB is held and there is ammo in the magazine. I use this code: public void onUsingTick(ItemStack stack, EntityLivingBase player, int count) {//Every 3rd tick... if (count % 3 == 0) {//...get the world we are in... World world =; //...get ma