diff options
author | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-09-08 12:12:15 -0400 |
---|---|---|
committer | Vanessa Dannenberg <vanessa.e.dannenberg@gmail.com> | 2018-09-08 12:12:15 -0400 |
commit | aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b (patch) | |
tree | 379775ce76eb855a3ea65906727d828d1696cece /castle_gates/doors.lua | |
parent | ba470a69750df16eac4278c30471d813c2581202 (diff) | |
download | dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.gz dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.bz2 dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.tar.xz dreambuilder_modpack-aaed0a2ea81a51f36a7eb35cb30c57ddf646fe1b.zip |
updated castles, coloredwood, digistuff, locks, mesecons,
pipeworks, steel, unified dyes, unified mesecons, and worldedit
Diffstat (limited to 'castle_gates/doors.lua')
-rw-r--r-- | castle_gates/doors.lua | 21 |
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") |