Add Iron Light Box

This commit is contained in:
kilbith 2016-01-16 23:59:49 +01:00
parent 7431a31a4f
commit 5cf343c0d5
5 changed files with 29 additions and 16 deletions

View File

@ -281,13 +281,17 @@ xdecor.register("lantern", {
}
})
xdecor.register("lightbox", {
description = "Light Box",
tiles = {"xdecor_lightbox.png"},
groups = {cracky=3, choppy=3, oddly_breakable_by_hand=2},
light_source = 13,
sounds = default.node_sound_glass_defaults()
})
for _, l in pairs({"iron", "wooden"}) do
xdecor.register(l.."_lightbox", {
description = l:gsub("^%l", string.upper).." Light Box",
tiles = {"xdecor_"..l.."_lightbox.png"},
groups = {cracky=3, choppy=3, oddly_breakable_by_hand=2},
light_source = 13,
sounds = default.node_sound_glass_defaults()
})
end
minetest.register_alias("xdecor:lightbox", "xdecor:wooden_lightbox")
xdecor.register("packed_ice", {
drawtype = "normal",

View File

@ -198,6 +198,15 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "xdecor:iron_lightbox",
recipe = {
{"xpanes:bar", "default:torch", "xpanes:bar"},
{"xpanes:bar", "default:glass", "xpanes:bar"},
{"xpanes:bar", "default:torch", "xpanes:bar"}
}
})
minetest.register_craft({
output = "xdecor:ivy 4",
recipe = {
@ -224,15 +233,6 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "xdecor:lightbox",
recipe = {
{"group:stick", "default:torch", "group:stick"},
{"group:stick", "default:glass", "group:stick"},
{"group:stick", "default:torch", "group:stick"}
}
})
minetest.register_craft({
output = "xdecor:mailbox",
recipe = {
@ -388,6 +388,15 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "xdecor:wooden_lightbox",
recipe = {
{"group:stick", "default:torch", "group:stick"},
{"group:stick", "default:glass", "group:stick"},
{"group:stick", "default:torch", "group:stick"}
}
})
minetest.register_craft({
output = "xdecor:woodglass_door",
recipe = {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 206 B

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

View File

Before

Width:  |  Height:  |  Size: 267 B

After

Width:  |  Height:  |  Size: 267 B