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")