summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rwxr-xr-xinit.lua20
1 files changed, 15 insertions, 5 deletions
diff --git a/init.lua b/init.lua
index 9d77744..1ee3684 100755
--- a/init.lua
+++ b/init.lua
@@ -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",