Posted August 3, 201213 yr First -> I love the Minecraft Forge and all mods for it! Big thanks to you guys . Exists a function for checking a block break or an item pickup? EDIT: my attempt: public void onItemPickup(EntityPlayer player, EntityItem item) { boolean flag = false; if (item.item.itemID == oreTitanium.blockID){ //player.addStat(newOreMiner, 1); player.triggerAchievement(newOreMiner); flag = true; log.info("Pickup"); } log.info("No Pickup"); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.