From 0384943a0ad7873c1ecdcd56ed7fca81294e3571 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sat, 26 Nov 2022 21:00:02 -0500 Subject: [PATCH] fix https://github.com/mt-mods/homedecor_modpack/issues/49 --- homedecor_common/registration.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/homedecor_common/registration.lua b/homedecor_common/registration.lua index 90830688..83f8b96f 100644 --- a/homedecor_common/registration.lua +++ b/homedecor_common/registration.lua @@ -8,6 +8,19 @@ function homedecor.register(name, original_def) def.is_furnace = nil + if minetest.get_modpath("mcl_core") then + if def.groups and (def.groups.crumbly or def.groups.oddly_breakable_by_hand) then + def.groups["handy"]=1 + def._mcl_hardness=0.6 + elseif def.groups and (def.groups.snappy or def.groups.choppy) then + def.groups["axey"]=5 + def._mcl_hardness=1.6 + elseif def.groups and (def.groups.cracky or def.groups.crumbly) then + def.groups["pickaxey"]=5 + def._mcl_hardness=1.6 + end + end + def.drawtype = def.drawtype or (def.mesh and "mesh") or (def.node_box and "nodebox")