2016-04-02 19:24:54 -04:00
|
|
|
if minetest.get_modpath("xpanes") then
|
|
|
|
xpanes.register_pane("jailbars", {
|
|
|
|
description = "Jail Bars",
|
|
|
|
tiles = {"castle_jailbars.png"},
|
|
|
|
drawtype = "airlike",
|
|
|
|
paramtype = "light",
|
|
|
|
textures = {"castle_jailbars.png", "castle_jailbars.png", "xpanes_space.png"},
|
|
|
|
inventory_image = "castle_jailbars.png",
|
|
|
|
wield_image = "castle_jailbars.png",
|
2016-04-14 21:51:06 -07:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
groups = {cracky=1, pane=1},
|
|
|
|
recipe = {{"default:steel_ingot","","default:steel_ingot"},
|
2014-08-09 13:23:19 +00:00
|
|
|
{"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
|
2016-04-02 19:24:54 -04:00
|
|
|
{"default:steel_ingot","","default:steel_ingot"}}
|
|
|
|
})
|
2016-04-14 21:51:06 -07:00
|
|
|
end
|
2016-05-08 17:42:05 -04:00
|
|
|
|
|
|
|
for i = 1, 15 do
|
|
|
|
minetest.register_alias("castle:jailbars_"..i, "xpanes:jailbars_"..i)
|
|
|
|
end
|
|
|
|
minetest.register_alias("castle:jailbars", "xpanes:jailbars")
|