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

Merge remote-tracking branch 'upstream/master'

This commit is contained in:
2023-06-06 00:03:55 +02:00
23 changed files with 194 additions and 89 deletions

View File

@ -210,7 +210,7 @@ function homedecor.handle_inventory(name, def, original_def)
if lockable then
local locked_def = table.copy(original_def)
locked_def.description = S("@1 (Locked)", def.description or name)
locked_def.crafts = nil
local locked_inventory = locked_def.inventory
locked_inventory.locked = true
locked_inventory.lockable = nil -- avoid loops of locked locked stuff

View File

@ -8,6 +8,17 @@ function homedecor.register(name, original_def)
def.is_furnace = nil
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
or (def.mesh and "mesh")
or (def.node_box and "nodebox")