From cf3a9fd679a8369f24438179889b7fc3518cdd1c Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 2 Jul 2017 18:56:18 +0100 Subject: placing stackable mob egg while holding sneak removes tamed status --- api.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api.lua') diff --git a/api.lua b/api.lua index 66cda91..c1249b3 100644 --- a/api.lua +++ b/api.lua @@ -3163,7 +3163,8 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative) return end - if ent.type ~= "monster" then + if ent.type ~= "monster" + and not placer:get_player_control().sneak then -- set owner and tame if not monster ent.owner = placer:get_player_name() ent.tamed = true -- cgit v1.2.3