Jump to content

nonoalfr

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by nonoalfr

  1. Sorry, but i don't know how to use LivingsDropsEvent i do, package mod.nonoalfr.main; import net.minecraft.entity.passive.EntityPig; import net.minecraft.item.Item; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.event.entity.living.LivingDropsEvent; public class EventDropitembacon { public void playerKilledSheep(LivingDeathEvent event) { if(event.entityLiving instanceof EntityPig) { event.entityLiving.dropItem(MainMod.itemBacon, 1); } } } but this didn't work can you help me, please? Thanks
  2. Hello can you help me to do pig drops my custom item ? Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.