diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-07-02 18:56:18 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-07-02 18:56:18 +0100 |
commit | cf3a9fd679a8369f24438179889b7fc3518cdd1c (patch) | |
tree | 5d63302f4526817b91c2f1b83ce411596067a2cb | |
parent | a9178b3cb2d84711f99319afcf417979a38ab2d9 (diff) |
placing stackable mob egg while holding sneak removes tamed status
-rw-r--r-- | api.lua | 3 | ||||
-rw-r--r-- | api.txt | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -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 @@ -305,6 +305,8 @@ This function allows an attached player to fly the mob around using directional 'move_animation' string containing name of pre-defined animation e.g. "walk" or "fly" etc. 'stand_animation' string containing name of pre-defined animation e.g. "stand" or "blink" etc. + Note: animation names above are from the pre-defined animation lists inside mob registry without extensions. + mobs:set_animation(self, name) |