1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-25 00:20:15 +02:00

fix all or edge cases for https://github.com/mt-mods/homedecor_modpack/issues/49 not caught by the last commit

This commit is contained in:
unknown
2022-11-30 17:48:28 -05:00
parent 0384943a0a
commit 55bbd478d9
17 changed files with 111 additions and 49 deletions

View File

@ -8,17 +8,15 @@ 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
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
def.drawtype = def.drawtype