mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-26 10:40:22 +01:00
placing stackable mob egg while holding sneak removes tamed status
This commit is contained in:
parent
a9178b3cb2
commit
cf3a9fd679
3
api.lua
3
api.lua
@ -3163,7 +3163,8 @@ function mobs:register_egg(mob, desc, background, addegg, no_creative)
|
|||||||
return
|
return
|
||||||
end
|
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
|
-- set owner and tame if not monster
|
||||||
ent.owner = placer:get_player_name()
|
ent.owner = placer:get_player_name()
|
||||||
ent.tamed = true
|
ent.tamed = true
|
||||||
|
2
api.txt
2
api.txt
@ -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.
|
'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.
|
'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)
|
mobs:set_animation(self, name)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user