Posted December 8, 201311 yr what is the code to add new drops to vanilla mobs? package SecretMod.events; import SecretMod.mod_SecretMod; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.passive.EntitySheep; import net.minecraftforge.event.ForgeSubscribe; import net.minecraftforge.event.entity.living.LivingDropsEvent; public class SheepMeatDrops { @ForgeSubscribe public void CustomDrops(LivingDropsEvent var1) { EntityLiving var2 = var1.entityLiving; if(var2 instanceof EntitySheep) { var2.dropItem(mod_SecretMod.SheepMeat, 1); } } } this is right??
December 8, 201311 yr Don't make topics when there are exactly the same topics! Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
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.