xdecor-libre/building.lua

24 lines
895 B
Lua
Raw Normal View History

2015-06-09 15:04:57 +03:00
xdecor.register("moonbrick", {
2015-06-10 11:54:20 +03:00
description = "Moonbrick", tiles = {"xdecor_moonbrick.png"},
groups = {snappy=3}, sounds = default.node_sound_stone_defaults()
2015-06-09 15:04:57 +03:00
})
xdecor.register("wood_tile", {
2015-06-10 11:54:20 +03:00
description = "Wood tile", tiles = {"xdecor_wood_tile.png"},
groups = {snappy=3}, sounds = default.node_sound_wood_defaults()
2015-06-09 15:04:57 +03:00
})
xdecor.register("coalstone_tile", {
2015-06-10 11:54:20 +03:00
description = "Coalstone tile", tiles = {"xdecor_coalstone_tile.png"},
groups = {snappy=3}, sounds = default.node_sound_stone_defaults()
2015-06-09 15:04:57 +03:00
})
2015-06-10 11:54:20 +03:00
fencematerial = {"brass", "wrought_iron"}
for _, m in ipairs(fencematerial) do
2015-06-09 15:04:57 +03:00
xdecor.register("fence_"..m, {
2015-06-10 11:54:20 +03:00
description = "Fence ("..m..")", drawtype = "fencelike", tiles = {"xdecor_"..m..".png"},
2015-06-09 15:04:57 +03:00
inventory_image = "default_fence_overlay.png^xdecor_"..m..".png^default_fence_overlay.png^[makealpha:255,126,126",
2015-06-10 11:54:20 +03:00
groups = {snappy=3}, sounds = default.node_sound_wood_defaults()
2015-06-09 15:04:57 +03:00
})
end