From 32b173dfe09bd5df0521897d7c30fc0753eb4e91 Mon Sep 17 00:00:00 2001 From: MIGDYN Date: Mon, 21 Nov 2022 21:18:04 +0000 Subject: [PATCH] Re-add the hand --- mods/poop/init.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/mods/poop/init.lua b/mods/poop/init.lua index a66057a..e2da8ac 100644 --- a/mods/poop/init.lua +++ b/mods/poop/init.lua @@ -15,6 +15,31 @@ local nodesDestroyedByHand = 0 local idText local idMeter + + +minetest.register_item(":", { -- Hand + type = "none", + wield_image = "Poop.png", + wield_scale = {x=1.5,y=2,z=4.5}, + range = 5, + tool_capabilities = { + max_drop_level = 0, + full_punch_interval = 0.4, + + groupcaps = + { + oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0}, + snappy = {times={[3]=0, [2]=0, [1]=0}, uses=0, maxlevel=3}, + crumbly = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3}, + cracky = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3}, + choppy = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=3}, + }, + damage_groups = {fleshy = 3, snappy = 2}, + } +}) + + + minetest.register_on_joinplayer(function(player) meta = player:get_meta()