mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
This commit is contained in:
parent
33710f710b
commit
0384943a0a
@ -8,6 +8,19 @@ function homedecor.register(name, original_def)
|
|||||||
|
|
||||||
def.is_furnace = nil
|
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
|
def.drawtype = def.drawtype
|
||||||
or (def.mesh and "mesh")
|
or (def.mesh and "mesh")
|
||||||
or (def.node_box and "nodebox")
|
or (def.node_box and "nodebox")
|
||||||
|
Loading…
Reference in New Issue
Block a user