From 41420fd0414eaee9fb840132a82a6c2d78fb0330 Mon Sep 17 00:00:00 2001 From: duckgo <==> Date: Wed, 1 Mar 2023 08:39:48 -0300 Subject: [PATCH] 000106 --- tankzombie/init.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tankzombie/init.lua b/tankzombie/init.lua index 9aad045..a399587 100644 --- a/tankzombie/init.lua +++ b/tankzombie/init.lua @@ -104,6 +104,12 @@ mobs:register_mob("tankzombie:tankzombie", { --end, }) +-- ADICIONANDO ATAQUE QUE MUDA O POSIÇÃO +minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool_capabilities, dir) + if hitter:get_luaentity().name == "tankzombie:tankzombie" then + player:set_pos({x=player:get_pos().x+5,y=player:get_pos().y+5,z=player:get_pos().z}) + end +end) mobs:spawn({