illuna/moreblocks.lua
2020-03-03 17:14:52 +01:00

83 lines
3.0 KiB
Lua

stairsplus:register_all("default", "stone_block", "default:stone_block", {
description = "Stone Block",
tiles = {"default_stone_block.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
stairsplus:register_all("mordefaulteblocks", "desert_stone_block", "default:desert_stone_block", {
description = "Desert Stone Block",
tiles = {"default_desert_stone_block.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
stairsplus:register_all("default", "sandstone_block", "default:sandstone_block", {
description = "Sandstone Block",
tiles = {"default_sandstone_block.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
stairsplus:register_all("default", "obsidian_block", "default:obsidian_block", {
description = "Obsidian Block",
tiles = {"default_obsidian_block.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
stairsplus:register_all("default", "tinblock", "default:tinblock", {
description = "Tin Block",
tiles = {"default_tinblock.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
stairsplus:register_all("trunks", "twigs", "trunks:twigs", {
description = "Twigs",
tiles = {"trunks_twigs.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
})
stairsplus:register_all("illuna", "stonebrick", "illuna:stonebrick", {
description = "Illuna Stonebrick",
tiles = {"default_stone_brick.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
glow = 3,
})
stairsplus:register_all("ethereal", "willow_trunk", "ethereal:willow_trunk", {
description = "Willow Trunk",
tiles = {"willow_trunk.png"},
groups = {cracky=3},
sounds = default.node_sound_stone_defaults(),
glow = 3,
})
local name = {"red", "green", "white", "black", "blue", "brown", "cyan",
"grey", "dark_green", "dark_grey", "magenta", "orange", "pink",
"red", "violet", "yellow"}
for i = 1, 16 do
local name = name[i]
stairsplus:register_all("moreblocks", "wool_"..name, "wool:"..name, {
description = name.." Wool",
tiles = {"wool_"..name..".png"},
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 3,
flammable = 3, wool = 1},
sounds = illuna.node_sound_wool(),
})
minetest.register_alias(name..":slab_block_1", "moreblocks:slab_wool_"..name.."_1")
minetest.register_alias(name..":slab_block_2", "moreblocks:slab_wool_"..name.."_2")
end
minetest.register_alias("wool:white_microslab", "moreblocks:slab_wool_white")
table.insert(circular_saw.known_stairs, "default:stone_block")
table.insert(circular_saw.known_stairs, "default:desert_stone_block")
table.insert(circular_saw.known_stairs, "default:sandstone_block")
table.insert(circular_saw.known_stairs, "default:obsidian_block")
table.insert(circular_saw.known_stairs, "ethereal:willow_trunk")
table.insert(circular_saw.known_stairs, "illuna:stonebrick")