illuna/moreblocks.lua

153 lines
5.2 KiB
Lua
Raw Normal View History

2019-04-13 17:11:40 +02:00
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(),
})
2020-03-05 20:33:56 +01:00
stairsplus:register_all("default", "desert_stone_block", "default:desert_stone_block", {
2019-04-13 17:11:40 +02:00
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,
})
2017-10-06 22:21:29 +02:00
2017-01-31 12:30:50 +01:00
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")
2017-01-31 12:30:50 +01:00
end
minetest.register_alias("wool:white_microslab", "moreblocks:slab_wool_white")
2017-01-31 12:30:50 +01:00
2016-08-11 14:32:06 +02:00
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")
2017-05-23 11:38:03 +02:00
table.insert(circular_saw.known_stairs, "illuna:stonebrick")
2020-03-05 20:33:56 +01:00
-- and now for the aliases
local saw_names = {
{"micro", "_1"},
{"panel", "_1"},
{"micro", "_2"},
{"panel", "_2"},
{"micro", "_4"},
{"panel", "_4"},
{"micro", ""},
{"panel", ""},
{"micro", "_12"},
{"panel", "_12"},
{"micro", "_14"},
{"panel", "_14"},
{"micro", "_15"},
{"panel", "_15"},
{"stair", "_outer"},
{"stair", ""},
{"stair", "_inner"},
{"slab", "_1"},
{"slab", "_2"},
{"slab", "_quarter"},
{"slab", ""},
{"slab", "_three_quarter"},
{"slab", "_14"},
{"slab", "_15"},
{"slab", "_two_sides"},
{"slab", "_three_sides"},
{"slab", "_three_sides_u"},
{"stair", "_half"},
{"stair", "_alt_1"},
{"stair", "_alt_2"},
{"stair", "_alt_4"},
{"stair", "_alt"},
{"slope", ""},
{"slope", "_half"},
{"slope", "_half_raised"},
{"slope", "_inner"},
{"slope", "_inner_half"},
{"slope", "_inner_half_raised"},
{"slope", "_inner_cut"},
{"slope", "_inner_cut_half"},
{"slope", "_inner_cut_half_raised"},
{"slope", "_outer"},
{"slope", "_outer_half"},
{"slope", "_outer_half_raised"},
{"slope", "_outer_cut"},
{"slope", "_outer_cut_half"},
{"slope", "_outer_cut_half_raised"},
{"slope", "_cut"},
}
for i = 1, #saw_names do
local t = saw_names[i]
minetest.register_alias("stone_block" .. ":" .. t[1] .. t[2] .. "_block", "default" .. ":" .. t[1] .. "_" .. "stone_block" .. t[2])
minetest.register_alias("desert_stone_block" .. ":" .. t[1] .. t[2] .. "_block", "default" .. ":" .. t[1] .. "_" .. "desert_stone_block" .. t[2])
minetest.register_alias("sandstone_block" .. ":" .. t[1] .. t[2] .. "_block", "default" .. ":" .. t[1] .. "_" .. "sandstone_block" .. t[2])
minetest.register_alias("obsidian_block" .. ":" .. t[1] .. t[2] .. "_block", "default" .. ":" .. t[1] .. "_" .. "obsidian_block" .. t[2])
minetest.register_alias("tinblock" .. ":" .. t[1] .. "_block" .. t[2], "default" .. ":" .. t[1] .. "_" .. "tinblock" .. t[2])
minetest.register_alias("twigs" .. ":" .. t[1] .. "_block" .. t[2], "trunks" .. ":" .. t[1] .. "_" .. "twigs" .. t[2])
minetest.register_alias("illuna_stonebrick" .. ":" .. t[1] .. "_block" .. t[2], "illuna" .. ":" .. t[1] .. "_" .. "stonebrick" .. t[2])
minetest.register_alias("ethereal_willow_trunk" .. ":" .. t[1] .. "_block" .. t[2], "ethereal" .. ":" .. t[1] .. "_" .. "willow_trunk" .. t[2])
end