From 271606cf2765168732d098ba6587ba087b47717a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikita=20Wi=C5=9Bniewski?= Date: Sat, 3 Aug 2024 14:28:42 +0700 Subject: [PATCH] Patch mcl_cocoas for pickblock --- mods/ITEMS/mcl_cocoas/init.lua | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/mods/ITEMS/mcl_cocoas/init.lua b/mods/ITEMS/mcl_cocoas/init.lua index 0792972be..1612644e0 100644 --- a/mods/ITEMS/mcl_cocoas/init.lua +++ b/mods/ITEMS/mcl_cocoas/init.lua @@ -100,6 +100,7 @@ local crop_def = { on_rotate = false, _mcl_blast_resistance = 3, _mcl_hardness = 0.2, + _vl_pickblock = "mcl_cocoas:cocoa_beans", } -- 2nd stage @@ -160,16 +161,16 @@ minetest.register_craftitem("mcl_cocoas:cocoa_beans", { }) minetest.register_abm({ - label = "Cocoa pod growth", - nodenames = {"mcl_cocoas:cocoa_1", "mcl_cocoas:cocoa_2"}, - -- Same as potatoes - -- TODO: Tweak/balance the growth speed - interval = 50, - chance = 20, - action = function(pos, node) - mcl_cocoas.grow(pos) - end -} ) + label = "Cocoa pod growth", + nodenames = {"mcl_cocoas:cocoa_1", "mcl_cocoas:cocoa_2"}, + -- Same as potatoes + -- TODO: Tweak/balance the growth speed + interval = 50, + chance = 20, + action = function(pos, node) + mcl_cocoas.grow(pos) + end +}) -- Add entry aliases for the Help if minetest.get_modpath("doc") then