diff options
Diffstat (limited to 'init.lua')
-rwxr-xr-x | init.lua | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -330,11 +330,21 @@ end -- Register drawer trim -- -core.register_node("drawers:trim", { - description = S("Wooden Trim"), - tiles = {"drawers_trim.png"}, - groups = {drawer = 1, choppy = 3, oddly_breakable_by_hand = 2} -}) +if core.get_modpath("mcl_core") and mcl_core then + core.register_node("drawers:trim", { + description = S("Wooden Trim"), + tiles = {"drawers_trim.png"}, + groups = {handy = 1, axey = 1, flammable = 3, wood = 1, building_block = 1, material_wood = 1} + _mcl_blast_resistance = 15, + _mcl_hardness = 2, + }) +else + core.register_node("drawers:trim", { + description = S("Wooden Trim"), + tiles = {"drawers_trim.png"}, + groups = {drawer = 1, choppy = 3, oddly_breakable_by_hand = 2} + }) +end core.register_craft({ output = "drawers:trim 6", |