Posted December 8, 201311 yr Hello, how can I change what happens when an Item is picked up? Busti PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
December 8, 201311 yr Author Do I have to create a special class for that or can I handle it in my Item class? PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
December 8, 201311 yr Author so yes I could... but I want to cancel the EntityPickup can I do it without extending EntityItemPickupEvent? PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
December 8, 201311 yr Author But now I do... Stupid me @ForgeSubscribe public void onEntityPickup(EntityItemPickupEvent event) { if (event.item.getEntityItem().itemID == Registration.item_Glowstick.itemID) event.setCanceled(true); } PM's regarding modding questions should belong in the Modder Support sub-forum and won't be answered.
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.