diff --git a/doctorzombie/init.lua b/doctorzombie/init.lua index c08d69b..baea4b9 100644 --- a/doctorzombie/init.lua +++ b/doctorzombie/init.lua @@ -37,8 +37,8 @@ mobs:register_mob("doctorzombie:doctorzombie", { pathfinding = true, reach = 3, damage = 3, - hp_min = 100, - hp_max = 100, + hp_min = 10, + hp_max = 10, armor = 100, collisionbox = {-0.4, 0, -0.4, 0.4, 1.8, 0.4}, visual = "mesh", diff --git a/doctorzombie/models/walkingzombie2.b3d b/doctorzombie/models/walkingzombie2.b3d new file mode 100644 index 0000000..e3867c1 Binary files /dev/null and b/doctorzombie/models/walkingzombie2.b3d differ diff --git a/itemx/init.lua b/itemx/init.lua index 16c6bc6..fd500b2 100644 --- a/itemx/init.lua +++ b/itemx/init.lua @@ -1,6 +1,7 @@ minetest.register_craftitem("itemx:walkietalkie", { description = " Walkie Talkie", - inventory_image = "walkietalkie.png", + inventory_image = "walkietalkie.png", + --droppable = false, on_use = function() -- msg (player) --minetest.chat_send_all ("HELP ME ,PLEASE...") minetest.sound_play("Walkietalkiesoundeffect", { diff --git a/tankzombie/init.lua b/tankzombie/init.lua index 960211a..62dcee5 100644 --- a/tankzombie/init.lua +++ b/tankzombie/init.lua @@ -94,6 +94,18 @@ mobs:register_mob("tankzombie:tankzombie", { die_end = 399, }, + + + on_spawn = function(self) + --local pos = self.object:get_pos() + -- Adicionar animação + self.object:set_animation({x=430, y=490},30, 0, false) + + -- Pós animação + minetest.after(3, function() + mobs:set_animation(self, "walk") + end) + end, --[[ diff --git a/tankzombie/models/ztank.b3d b/tankzombie/models/ztank.b3d index 781dea7..6780585 100644 Binary files a/tankzombie/models/ztank.b3d and b/tankzombie/models/ztank.b3d differ