jailbars.lua 776 Bytes
Newer Older
DonBatman's avatar
DonBatman committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
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",
		sounds = default.node_sound_stone_defaults(),
		groups = {cracky=1, pane=1},
		recipe = {{"default:steel_ingot","","default:steel_ingot"},
		{"default:steel_ingot","default:steel_ingot","default:steel_ingot"},
		{"default:steel_ingot","","default:steel_ingot"}}
	})
DonBatman's avatar
DonBatman committed
16 17 18
end

for i = 1, 15 do
DonBatman's avatar
DonBatman committed
19
	minetest.register_alias("castle:jailbars_"..i, "xpanes:jailbars_"..i)
DonBatman's avatar
DonBatman committed
20
end
DonBatman's avatar
DonBatman committed
21
minetest.register_alias("castle:jailbars", "xpanes:jailbars")