1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-12-22 22:05:36 +01:00

have scythe pick up items

This commit is contained in:
tenplus1
2025-12-20 13:58:50 +00:00
parent b6fa5d9447
commit 9cb83d03b5

View File

@@ -364,6 +364,12 @@ core.register_tool("farming:scythe_mithril", {
on_use = function(itemstack, placer, pointed_thing) on_use = function(itemstack, placer, pointed_thing)
-- if punching entity/object
if pointed_thing.type == "object" then
pointed_thing.ref:punch(placer, 1, {full_punch_interval = 1.0})
return itemstack
end
if pointed_thing.type ~= "node" then return end if pointed_thing.type ~= "node" then return end
local pos = pointed_thing.under local pos = pointed_thing.under