Created
May 2, 2016 23:39
-
-
Save Greymerk/7330217ffdecd15c979440331b7dfa44 to your computer and use it in GitHub Desktop.
How to create a spawn egg in minecraft 1.9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ItemStack egg = new ItemStack(Items.spawn_egg, 1); | |
ItemMonsterPlacer.applyEntityIdToItemStack(egg, EntityList.classToStringMapping.get(EntityPig.class)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please update this to 1.11