1
0
Fork 0

Add group: spawn_egg

This commit is contained in:
Wuzzy 2017-02-14 23:57:49 +01:00
parent e672abd2ed
commit a044bd9cc6
2 changed files with 2 additions and 0 deletions

1
API.md
View File

@ -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=3`: Same as `container=2`, but shulker boxes can not be inserted
* `container=4`: Furnace-like, has lists `"src"`, `"fuel"` and `"dst"` * `container=4`: Furnace-like, has lists `"src"`, `"fuel"` and `"dst"`
* `container=1`: Other/unspecified container type * `container=1`: Other/unspecified container type
* `spawn_egg=1`: Spawn egg
* `weapon=1`: Item is primarily (!) a weapon * `weapon=1`: Item is primarily (!) a weapon
* `tool=1`: Item is primarily (!) a tool * `tool=1`: Item is primarily (!) a tool

View File

@ -2805,6 +2805,7 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
if creative and no_creative == true then if creative and no_creative == true then
grp = {not_in_creative_inventory = 1} grp = {not_in_creative_inventory = 1}
end end
grp.spawn_egg = 1
local invimg = background local invimg = background