blob: f4021efa7496e7fd522f6218945c7b966af90e29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package ihl.utils;
import net.minecraft.entity.passive.EntitySheep;
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
public class EntityDropEventHandler
{
@SubscribeEvent
public void onEntityDropEvent(net.minecraftforge.event.entity.living.LivingDropsEvent event)
{
if(event.entityLiving instanceof EntitySheep && !event.entityLiving.isChild())
{
event.entityLiving.entityDropItem(IHLUtils.getThisModItemStackWithSize("muttonLard", event.entityLiving.worldObj.rand.nextInt(1)+1), 1f);
}
}
}
|