From fb4fef783b605dcdc73554019ef46d8354614ad4 Mon Sep 17 00:00:00 2001 From: Louis Royer <55180044+louisroyer@users.noreply.github.com> Date: Sun, 26 Apr 2020 11:33:12 +0200 Subject: [PATCH] Shapeless locked chests crafts (chest + lockpad) (#530) --- technic_chests/iron_chest.lua | 23 ++++++++++++++++------- 1 files changed, 16 insertions(+), 7 deletions(-) diff --git a/technic_chests/iron_chest.lua b/technic_chests/iron_chest.lua index a1f5c63..d522240 100644 --- a/technic_chests/iron_chest.lua +++ b/technic_chests/iron_chest.lua @@ -1,32 +1,40 @@ +local cast_iron_ingot +if minetest.get_modpath("technic_worldgen") then + cast_iron_ingot = "technic:cast_iron_ingot" +else + cast_iron_ingot = "default:steel_ingot" +end minetest.register_craft({ output = 'technic:iron_chest 1', recipe = { - {'technic:cast_iron_ingot','technic:cast_iron_ingot','technic:cast_iron_ingot'}, - {'technic:cast_iron_ingot','default:chest','technic:cast_iron_ingot'}, - {'technic:cast_iron_ingot','technic:cast_iron_ingot','technic:cast_iron_ingot'}, + {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot}, + {cast_iron_ingot,'default:chest',cast_iron_ingot}, + {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot}, } }) minetest.register_craft({ output = 'technic:iron_locked_chest 1', recipe = { - {'technic:cast_iron_ingot','technic:cast_iron_ingot','technic:cast_iron_ingot'}, - {'technic:cast_iron_ingot','default:chest_locked','technic:cast_iron_ingot'}, - {'technic:cast_iron_ingot','technic:cast_iron_ingot','technic:cast_iron_ingot'}, + {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot}, + {cast_iron_ingot,'default:chest_locked',cast_iron_ingot}, + {cast_iron_ingot,cast_iron_ingot,cast_iron_ingot}, } }) minetest.register_craft({ output = 'technic:iron_locked_chest 1', + type = "shapeless", recipe = { - {'technic:wrought_iron_ingot'}, + {'basic_materials:padlock'}, {'technic:iron_chest'}, } }) technic.chests:register("Iron", { width = 9, + height = 5, sort = true, autosort = false, infotext = false, @@ -36,6 +44,7 @@ technic.chests:register("Iron", { width = 9, + height = 5, sort = true, autosort = false, infotext = false, -- Gitblit v1.8.0