From 0b5e21a74e47fc1b42d9af25432e44482e6d1193 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 9 Dec 2025 22:33:49 +0100 Subject: [PATCH] Make it possible to pick up items when a chisel is held in hand --- recipes.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes.lua b/recipes.lua index 448ee97..192ea2e 100644 --- a/recipes.lua +++ b/recipes.lua @@ -29,6 +29,11 @@ core.register_tool( sound = {breaks = "default_tool_breaks"}, stack_max = 1, on_use = function(itemstack, user, pointed_thing) + if pointed_thing.type == "object" then + pointed_thing.ref:punch(user, 1.0, { full_punch_interval=1.0}, nil) + return user:get_wielded_item() + end + if pointed_thing.type ~= "node" then return end local pos = pointed_thing.under