Add Iron Light Box
This commit is contained in:
parent
7431a31a4f
commit
5cf343c0d5
18
nodes.lua
18
nodes.lua
@ -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",
|
||||
|
27
recipes.lua
27
recipes.lua
@ -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 |
BIN
textures/xdecor_iron_lightbox.png
Normal file
BIN
textures/xdecor_iron_lightbox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 307 B |
Before Width: | Height: | Size: 267 B After Width: | Height: | Size: 267 B |
Loading…
Reference in New Issue
Block a user