2024-06-28 15:44:25 +03:00
|
|
|
local Ombrellone_n_list = {
|
|
|
|
{ "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"},
|
|
|
|
}
|
|
|
|
|
|
|
|
for i in ipairs(Ombrellone_n_list) do
|
|
|
|
local Ombrellone_ndesc = Ombrellone_n_list[i][1]
|
|
|
|
local colour = Ombrellone_n_list[i][2]
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
2024-06-29 13:00:14 +03:00
|
|
|
wield_image = "ombo_"..colour.."_r.png" ,
|
2024-06-28 15:44:25 +03:00
|
|
|
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},
|
|
|
|
--sounds = default.node_sound_glass_defaults(),
|
|
|
|
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,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
2024-06-29 13:00:14 +03:00
|
|
|
wield_image = "ombc_"..colour.."_r.png",
|
2024-06-28 15:44:25 +03:00
|
|
|
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},
|
|
|
|
--sounds = default.node_sound_glass_defaults(),
|
|
|
|
drop = "summer:ombrellone_n_"..colour,
|
|
|
|
on_rightclick = function(pos, node, clicker)
|
|
|
|
node.name = "summer:Ombrellone_n_"..colour..""
|
|
|
|
minetest.set_node(pos, node)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|