2024-06-28 15:44:25 +03:00
|
|
|
local granite = {
|
2024-11-27 10:11:00 +03:00
|
|
|
{ "granite", "Granite grey" },
|
|
|
|
{ "graniteR", "Granite corten" },
|
|
|
|
{ "graniteA", "Granite avory" },
|
|
|
|
{ "graniteP", "Granite pink" },
|
|
|
|
{ "graniteB", "Granite black" },
|
|
|
|
{ "graniteBC", "Granite black center" },
|
2024-06-28 15:44:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
local stairs_mod = minetest.get_modpath("stairs")
|
|
|
|
local stairsplus_mod = minetest.get_modpath("moreblocks")
|
|
|
|
and minetest.global_exists("stairsplus")
|
|
|
|
|
|
|
|
for _, granite in pairs(granite) do
|
2024-11-27 10:11:00 +03:00
|
|
|
if stairsplus_mod then
|
2024-06-28 15:44:25 +03:00
|
|
|
stairsplus:register_all("summer", granite[1], "summer:" .. granite[1], {
|
|
|
|
description = granite[2] .. " Summer",
|
2024-11-27 10:11:00 +03:00
|
|
|
tiles = { granite[1] .. ".png" },
|
|
|
|
groups = { cracky = 3 },
|
2024-06-28 15:44:25 +03:00
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
stairsplus:register_alias_all("summer", granite[1], "summer", granite[1])
|
2024-11-27 10:11:00 +03:00
|
|
|
minetest.register_alias("stairs:slab_summer_" .. granite[1], "summer:slab_baked_granite_" .. granite[1])
|
|
|
|
minetest.register_alias("stairs:stair_summer_" .. granite[1], "summer:stair_baked_granite_" .. granite[1])
|
2024-06-28 15:44:25 +03:00
|
|
|
|
2024-11-27 10:11:00 +03:00
|
|
|
-- register all stair types for stairs redo
|
2024-06-28 15:44:25 +03:00
|
|
|
elseif stairs_mod and stairs.mod then
|
|
|
|
stairs.register_all("summer_" .. granite[1], "summer:" .. granite[1],
|
2024-11-27 10:11:00 +03:00
|
|
|
{ cracky = 3 },
|
|
|
|
{ granite[1] .. ".png" },
|
2024-06-28 15:44:25 +03:00
|
|
|
granite[2] .. " Summer",
|
|
|
|
default.node_sound_stone_defaults())
|
|
|
|
|
2024-11-27 10:11:00 +03:00
|
|
|
-- register stair and slab using default stairs
|
2024-06-28 15:44:25 +03:00
|
|
|
elseif stairs_mod then
|
2024-11-27 10:11:00 +03:00
|
|
|
stairs.register_stair_and_slab("summer_" .. granite[1], "summer:" .. granite[1],
|
|
|
|
{ cracky = 3 },
|
|
|
|
{ granite[1] .. ".png" },
|
2024-06-28 15:44:25 +03:00
|
|
|
granite[2] .. " Summer Stair",
|
|
|
|
granite[2] .. " Summer Slab",
|
|
|
|
default.node_sound_stone_defaults())
|
|
|
|
end
|
|
|
|
end
|
2024-11-27 10:11:00 +03:00
|
|
|
|
|
|
|
--GRANITE
|
2024-06-28 15:44:25 +03:00
|
|
|
minetest.register_node("summer:granite", {
|
|
|
|
description = "Granite",
|
2024-11-27 10:11:00 +03:00
|
|
|
tiles = { "granite.png" },
|
|
|
|
--material = minetest.digprop_constanttime(1),
|
|
|
|
groups = { cracky = 3, stone = 1 },
|
2024-06-28 15:44:25 +03:00
|
|
|
--drop ='"summer:mattoneG" 9',
|
|
|
|
stack_max = 9999,
|
|
|
|
--legacy_mineral = true,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
2024-11-27 10:11:00 +03:00
|
|
|
|
2024-06-28 15:44:25 +03:00
|
|
|
minetest.register_node("summer:graniteA", {
|
|
|
|
description = "GraniteA",
|
2024-11-27 10:11:00 +03:00
|
|
|
tiles = { "graniteA.png" },
|
|
|
|
--material = minetest.digprop_constanttime(1),
|
|
|
|
groups = { cracky = 3, stone = 1 },
|
2024-06-28 15:44:25 +03:00
|
|
|
--drop ='"summer:mattoneA" 9',
|
|
|
|
stack_max = 9999,
|
|
|
|
--legacy_mineral = true,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
2024-11-27 10:11:00 +03:00
|
|
|
|
2024-06-28 15:44:25 +03:00
|
|
|
minetest.register_node("summer:graniteP", {
|
|
|
|
description = "GraniteP",
|
2024-11-27 10:11:00 +03:00
|
|
|
tiles = { "graniteP.png" },
|
|
|
|
--material = minetest.digprop_constanttime(1),
|
|
|
|
groups = { cracky = 3, stone = 1 },
|
2024-06-28 15:44:25 +03:00
|
|
|
--drop ='"summer:mattoneP" 9',
|
|
|
|
stack_max = 9999,
|
|
|
|
--legacy_mineral = true,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
2024-11-27 10:11:00 +03:00
|
|
|
|
2024-06-28 15:44:25 +03:00
|
|
|
minetest.register_node("summer:graniteR", {
|
|
|
|
description = "GraniteR",
|
2024-11-27 10:11:00 +03:00
|
|
|
tiles = { "graniteR.png" },
|
|
|
|
--material = minetest.digprop_constanttime(1),
|
|
|
|
groups = { cracky = 3, stone = 1 },
|
2024-06-28 15:44:25 +03:00
|
|
|
--drop ='summer:mattoneR 9',
|
|
|
|
stack_max = 9999,
|
|
|
|
--legacy_mineral = true,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
2024-11-27 10:11:00 +03:00
|
|
|
minetest.register_node("summer:graniteBC", {
|
2024-06-28 15:44:25 +03:00
|
|
|
description = "Granite",
|
2024-11-27 10:11:00 +03:00
|
|
|
tiles = { "graniteBC.png" },
|
|
|
|
--material = minetest.digprop_constanttime(1),
|
|
|
|
groups = { cracky = 3, stone = 1 },
|
2024-06-28 15:44:25 +03:00
|
|
|
--drop ='"summer:mattoneG" 9',
|
|
|
|
stack_max = 9999,
|
|
|
|
--legacy_mineral = true,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
2024-11-27 10:11:00 +03:00
|
|
|
|
|
|
|
minetest.register_node("summer:graniteB", {
|
2024-06-28 15:44:25 +03:00
|
|
|
description = "Granite",
|
2024-11-27 10:11:00 +03:00
|
|
|
tiles = { "graniteB.png" },
|
|
|
|
--material = minetest.digprop_constanttime(1),
|
|
|
|
groups = { cracky = 3, stone = 1 },
|
2024-06-28 15:44:25 +03:00
|
|
|
--drop ='"summer:mattoneG" 9',
|
|
|
|
stack_max = 9999,
|
|
|
|
--legacy_mineral = true,
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|