2024-06-28 15:44:25 +03:00
|
|
|
local Ombrellone_n_list = {
|
2024-11-27 10:11:00 +03:00
|
|
|
{ "Red Ombrellone_n", "red" },
|
|
|
|
{ "Orange Ombrellone_n", "orange" },
|
|
|
|
{ "Black Ombrellone_n", "black" },
|
|
|
|
{ "Yellow Ombrellone_n", "yellow" },
|
|
|
|
{ "Green Ombrellone_n", "green" },
|
|
|
|
{ "Blue Ombrellone_n", "blue" },
|
|
|
|
{ "Violet Ombrellone_n", "violet" },
|
|
|
|
{ "White Ombrellone_n", "white" },
|
2024-06-28 15:44:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
for i in ipairs(Ombrellone_n_list) do
|
|
|
|
local Ombrellone_ndesc = Ombrellone_n_list[i][1]
|
|
|
|
local colour = Ombrellone_n_list[i][2]
|
2024-11-27 10:11:00 +03:00
|
|
|
|
|
|
|
minetest.register_node("summer:ombrellone_n_" .. colour .. "", {
|
|
|
|
description = Ombrellone_ndesc .. "",
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "omb_n_o.obj",
|
|
|
|
tiles = { "Ombrellone_n_" .. colour .. ".png",
|
|
|
|
},
|
|
|
|
inventory_image = "ombo_" .. colour .. "_r.png",
|
|
|
|
|
|
|
|
wield_image = "ombo_" .. colour .. "_r.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.25, -0.5, -0.25, 0.25, 0.5, 0.25 },
|
|
|
|
},
|
|
|
|
groups = { snappy = 2, cracky = 3, oddly_breakable_by_hand = 3, not_in_creative_inventory = 0 },
|
2024-06-28 15:44:25 +03:00
|
|
|
--sounds = default.node_sound_glass_defaults(),
|
2024-11-27 10:11:00 +03:00
|
|
|
drop = "summer:ombrellone_n_" .. colour .. "_ch",
|
|
|
|
on_rightclick = function(pos, node, clicker)
|
|
|
|
node.name = "summer:Ombrellone_n_" .. colour .. "_ch"
|
|
|
|
minetest.set_node(pos, node)
|
|
|
|
end,
|
2024-06-28 15:44:25 +03:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2024-11-27 10:11:00 +03:00
|
|
|
minetest.register_node("summer:ombrellone_n_" .. colour .. "_ch", {
|
|
|
|
description = Ombrellone_ndesc .. " ch",
|
|
|
|
drawtype = "mesh",
|
|
|
|
mesh = "omb_n_c.obj",
|
|
|
|
tiles = { "Ombrellone_n_" .. colour .. ".png",
|
|
|
|
},
|
|
|
|
inventory_image = "ombc_" .. colour .. "_r.png",
|
|
|
|
|
|
|
|
wield_image = "ombc_" .. colour .. "_r.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.25, -0.5, -0.25, 0.25, 0.5, 0.25 },
|
|
|
|
},
|
|
|
|
groups = { snappy = 2, cracky = 3, oddly_breakable_by_hand = 3, not_in_creative_inventory = 0 },
|
2024-06-28 15:44:25 +03:00
|
|
|
--sounds = default.node_sound_glass_defaults(),
|
2024-11-27 10:11:00 +03:00
|
|
|
drop = "summer:ombrellone_n_" .. colour,
|
|
|
|
on_rightclick = function(pos, node, clicker)
|
|
|
|
node.name = "summer:Ombrellone_n_" .. colour .. ""
|
|
|
|
minetest.set_node(pos, node)
|
|
|
|
end,
|
2024-06-28 15:44:25 +03:00
|
|
|
})
|
|
|
|
end
|