forked from VoxeLibre/VoxeLibre
wolf when tamed will retain its health and not heal to full hp
This commit is contained in:
parent
3852c0297f
commit
d8172e404e
|
@ -69,6 +69,7 @@ local wolf = {
|
||||||
mcl_mobs:set_animation(ent, "sit")
|
mcl_mobs:set_animation(ent, "sit")
|
||||||
ent.walk_chance = 0
|
ent.walk_chance = 0
|
||||||
ent.jump = false
|
ent.jump = false
|
||||||
|
ent.health = self.health
|
||||||
-- cornfirm taming
|
-- cornfirm taming
|
||||||
minetest.sound_play("mobs_mc_wolf_bark", {object=dog, max_hear_distance=16}, true)
|
minetest.sound_play("mobs_mc_wolf_bark", {object=dog, max_hear_distance=16}, true)
|
||||||
-- Replace wolf
|
-- Replace wolf
|
||||||
|
|
Loading…
Reference in New Issue