1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-07-13 13:50:29 +02:00

scythe works on use instead of right click (thanks OgelGames)

This commit is contained in:
TenPlus1
2019-11-20 20:51:34 +00:00
parent df1cee3b6e
commit cc0fc2c763
2 changed files with 3 additions and 12 deletions

View File

@ -343,20 +343,11 @@ farming.add_to_scythe_not_drops = function(item)
end
minetest.register_tool("farming:scythe_mithril", {
description = S("Mithril Scythe (Right-click crop to harvest and replant)"),
description = S("Mithril Scythe (Use to harvest and replant crops)"),
inventory_image = "farming_scythe_mithril.png",
tool_capabilities = {
full_punch_interval = 0.8,
max_drop_level = 2,
groupcaps = {
fleshy = {times = {[2] = 0.65, [3] = 0.25}, uses = 150, maxlevel = 2},
snappy = {times = {[2] = 0.70, [3] = 0.25}, uses = 150, maxlevel = 2},
},
damage_groups = {fleshy = 8},
},
sound = {breaks = "default_tool_breaks"},
on_place = function(itemstack, placer, pointed_thing)
on_use = function(itemstack, placer, pointed_thing)
if pointed_thing.type ~= "node" then
return