Add group: spawn_egg
This commit is contained in:
parent
e672abd2ed
commit
a044bd9cc6
1
API.md
1
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=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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue