diff --git a/API.md b/API.md index ec2bcc645..fd88aa343 100644 --- a/API.md +++ b/API.md @@ -91,6 +91,7 @@ These groups are used mostly for informational purposes * `container=3`: Same as `container=2`, but shulker boxes can not be inserted * `container=4`: Furnace-like, has lists `"src"`, `"fuel"` and `"dst"` * `container=1`: Other/unspecified container type +* `spawn_egg=1`: Spawn egg * `weapon=1`: Item is primarily (!) a weapon * `tool=1`: Item is primarily (!) a tool diff --git a/mods/mobs/api.lua b/mods/mobs/api.lua index dc16cdb8f..67f60bc46 100644 --- a/mods/mobs/api.lua +++ b/mods/mobs/api.lua @@ -2805,6 +2805,7 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative) if creative and no_creative == true then grp = {not_in_creative_inventory = 1} end + grp.spawn_egg = 1 local invimg = background