From cc0fc2c763bdf4773837cf8ed4f799647b3653e3 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 20 Nov 2019 20:51:34 +0000 Subject: [PATCH] scythe works on use instead of right click (thanks OgelGames) --- README.md | 2 +- hoes.lua | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 0dfebbb..f19550a 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ This mod works by adding your new plant to the {growing=1} group and numbering t ### Changelog: -- 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block +- 1.42 - Soil needs water to be present within 3 blocks horizontally and 1 below to make wet soil, Jack 'o Lanterns now check protection, add chocolate block, scythe works on use instead of right-click - 1.41 - Each crop has it's own spawn rate (can be changed in farming.conf) - 1.40 - Added Mithril Scythe to quick harvest and replant crops on right-click. Added Hoe's for MoreOres with Toolrank support. - 1.39 - Added Rice, Rye and Oats thanks to Ademants Grains mod. Added Jaffa Cake and multigrain bread. diff --git a/hoes.lua b/hoes.lua index 27928cf..5716128 100644 --- a/hoes.lua +++ b/hoes.lua @@ -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