[SPIGOT-2812] When creating MONSTER_EGG ItemStacks, any mobs added in 1.10+ spawn default Spawn eggs Created: 21/Nov/16  Updated: 21/Nov/16  Resolved: 21/Nov/16

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Chris (Pixel) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: itemstack, spawnegg
Environment:

Win. 10, Java 8u111, Newest compiled Spigot with Buildtools (1.11)


Plugin: Spigot?

 Description   

To duplicate, create an item stack, set the Material to MONSTER_EGG, any amount, set the data to any mob added in 1.10+ (EntityType.LLAMA.getTypeId()); ), and give it to a player. It will spawn a default spawn egg.



 Comments   
Comment by md_5 [ 21/Nov/16 ]

Those mobs don't have mappings to existing data values. The spawn egg API needs to be expanded with ItemMeta.

Comment by Chris (Pixel) [ 21/Nov/16 ]

Sorry, here is the version!

 

CraftBukkit version git-spigot-16c940b-7fc4255 (MC: 1.11) (Implementing API version 1.11-R0.1-SNAPSHOT)

Generated at Fri Apr 11 15:51:27 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.