Add Cactus Brick

This commit is contained in:
kilbith 2015-09-21 23:07:37 +02:00
parent 46ef36663b
commit 5f2a72fd85
4 changed files with 17 additions and 14 deletions

View File

@ -240,13 +240,6 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "xdecor:moonbrick",
recipe = {
{"default:brick", "default:stone"}
}
})
minetest.register_craft({
output = "xdecor:multishelf",
recipe = {

View File

@ -435,13 +435,23 @@ xdecor.register("plant_pot", {
sounds = default.node_sound_stone_defaults()
})
xdecor.register("moonbrick", {
drawtype = "normal",
description = "Moon Brick",
tiles = {"xdecor_moonbrick.png"},
groups = {cracky=2},
sounds = default.node_sound_stone_defaults(),
for _, b in pairs({{"cactus", "cactus"}, {"moon", "stone"}}) do
xdecor.register(b[1].."brick", {
drawtype = "normal",
description = b[1]:gsub("^%l", string.upper).." Brick",
tiles = {"xdecor_"..b[1].."brick.png"},
groups = {cracky=2},
sounds = default.node_sound_stone_defaults(),
})
minetest.register_craft({
output = "xdecor:"..b[1].."brick",
recipe = {
{"default:brick", "default:"..b[2]}
}
})
end
xdecor.register("multishelf", {
description = "Multi Shelf",

Binary file not shown.

After

Width:  |  Height:  |  Size: 886 B

View File

@ -13,7 +13,7 @@ local nodes = { -- Nodes allowed to be cut.
"default:glass", "default:obsidian_glass",
"xdecor:coalstone_tile", "xdecor:desertstone_tile", "xdecor:stone_rune", "xdecor:stone_tile",
"xdecor:hard_clay", "xdecor:packed_ice", "xdecor:moonbrick",
"xdecor:cactusbrick", "xdecor:hard_clay", "xdecor:packed_ice", "xdecor:moonbrick",
"xdecor:woodframed_glass", "xdecor:wood_tile",
"oresplus:emerald_block", "oresplus:glowstone",