summaryrefslogtreecommitdiff
path: root/castle_gates/doors.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-10-27 15:13:31 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-10-27 15:13:31 -0400
commit6281dc744dc3951234931a9f44c3bdd353f79df7 (patch)
tree0ead0d0d18be58bed7480cb9a5ea1495230c568f /castle_gates/doors.lua
parent2e6082ccdbd121cd5fc0f82a931ac01ac00dcb76 (diff)
downloaddreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.tar
dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.tar.gz
dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.tar.bz2
dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.tar.xz
dreambuilder_modpack-6281dc744dc3951234931a9f44c3bdd353f79df7.zip
updated boost cart, homedecor modpack, castles modpack, currency, farming-redo,
maptools, mesecons, moreblocks, moreores, pipeworks, quartz
Diffstat (limited to 'castle_gates/doors.lua')
-rw-r--r--castle_gates/doors.lua21
1 files changed, 16 insertions, 5 deletions
diff --git a/castle_gates/doors.lua b/castle_gates/doors.lua
index 58e3e4f..886af3d 100644
--- a/castle_gates/doors.lua
+++ b/castle_gates/doors.lua
@@ -16,6 +16,21 @@ if minetest.get_modpath("doors") then
{"default:tree", "default:tree"},
}
})
+
+ local door_recipe
+ if minetest.get_modpath("xpanes") then
+ door_recipe = {
+ {"xpanes:jailbars_flat", "xpanes:jailbars_flat"},
+ {"xpanes:jailbars_flat", "xpanes:jailbars_flat"},
+ {"xpanes:jailbars_flat", "xpanes:jailbars_flat"},
+ }
+ else
+ door_recipe = {
+ {"default:steel_ingot", ""},
+ {"", "default:steel_ingot"},
+ {"default:steel_ingot", ""},
+ }
+ end
doors.register("castle_gates:jail_door", {
tiles = {{ name = "castle_door_jail.png", backface_culling = true }},
@@ -25,11 +40,7 @@ if minetest.get_modpath("doors") then
groups = { cracky = 2, door = 1, flow_through = 1},
sound_open = "doors_steel_door_open",
sound_close = "doors_steel_door_close",
- recipe = {
- {"castle_gates:jailbars", "castle_gates:jailbars"},
- {"castle_gates:jailbars", "castle_gates:jailbars"},
- {"castle_gates:jailbars", "castle_gates:jailbars"},
- }
+ recipe = door_recipe,
})
minetest.register_alias("castle:oak_door_a", "castle_gates:oak_door_a")