mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-20 01:51:06 +01:00
wolf when tamed will retain its health and not heal to full hp
This commit is contained in:
parent
3852c0297f
commit
d8172e404e
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue