Posted February 9, 201312 yr im trying to use this but when ever i do i get an error @ForgeSubscribe public static boolean onLivingDrops(EntityLiving EntityPig, DamageSource generic, ArrayList<EntityItem> ItemLard, int lootingLevel, boolean recentlyHit, int specialDropValue) { return MinecraftForge.EVENT_BUS.post(new LivingDropsEvent(EntityPig, generic, ItemLard, 5, recentlyHit, 100)); }
February 9, 201312 yr @PreInit public void LEARNMOREJAVA(FMLPreInitializationEvent e){ MinecraftForge.EVENT_BUS.register(this) } public void DONTBEANOOB(LivingDeathEvent e){ if(e.entity instanceof EntityPig){ e.entity.dropItem(MOD.ITEM.itemID, quantity); } } OR @PreInit public void LEARNMOREJAVA(FMLPreInitializationEvent e){ MinecraftForge.EVENT_BUS.register(this) } public void DONTBEANOOB(LivingDropsEvent e){ if(e.entity instanceof EntityPig){ e.entity.dropItem(MOD.ITEM.itemID, quantity); } }
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.