From a044bd9cc6d8548749a000133e6edd0d8dff3450 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 14 Feb 2017 23:57:49 +0100 Subject: [PATCH] Add group: spawn_egg --- API.md | 1 + mods/mobs/api.lua | 1 + 2 files changed, 2 insertions(+) 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