forked from mtcontrib/homedecor_modpack
This commit is contained in:
parent
33710f710b
commit
0384943a0a
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user