mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-08-19 21:44:12 +02:00
Add group: spawn_egg
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=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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user