Skip to content

Instantly share code, notes, and snippets.

@Greymerk
Created May 2, 2016 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Greymerk/7330217ffdecd15c979440331b7dfa44 to your computer and use it in GitHub Desktop.
Save Greymerk/7330217ffdecd15c979440331b7dfa44 to your computer and use it in GitHub Desktop.
How to create a spawn egg in minecraft 1.9
ItemStack egg = new ItemStack(Items.spawn_egg, 1);
ItemMonsterPlacer.applyEntityIdToItemStack(egg, EntityList.classToStringMapping.get(EntityPig.class));
@Markyroson
Copy link

Please update this to 1.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment