2015-09-28 20:44:01 -05:00
|
|
|
local block_type1 = { -- desc2, obj, texture
|
|
|
|
{"Sphere", "sphere", 'concrete'},
|
|
|
|
{"Suzanne", "suzanne", 'concrete'},
|
|
|
|
{'Dragon', 'dragon', 'dragon'}
|
2015-09-27 19:19:46 -05:00
|
|
|
}
|
|
|
|
for i in ipairs (block_type1) do
|
|
|
|
local desc2 = block_type1[i][1]
|
|
|
|
local obj = block_type1[i][2]
|
2015-09-28 20:44:01 -05:00
|
|
|
local tex = block_type1[i][3]
|
2015-09-27 19:19:46 -05:00
|
|
|
|
|
|
|
local color_tab = {
|
|
|
|
{"black", "Black", "^[colorize:black:150"},
|
|
|
|
{"blue", "Blue", "^[colorize:#0404B4:100"},
|
|
|
|
{"brown", "Brown", "^[colorize:#190B07:100"},
|
|
|
|
{"cyan", "Cyan", "^[colorize:cyan:100"},
|
|
|
|
{"dark_green", "Dark Green", "^[colorize:#071907:150"},
|
|
|
|
{"dark_grey", "Dark Grey", "^[colorize:black:150"},
|
|
|
|
{"green", "Green", "^[colorize:green:100"},
|
|
|
|
{"grey", "Grey", "^[colorize:black:100"},
|
|
|
|
{"magenta", "Magenta", "^[colorize:magenta:100"},
|
|
|
|
{"orange", "Orange", "^[colorize:orange:100"},
|
|
|
|
{"pink", "Pink", "^[colorize:#FE2E9A:100"},
|
|
|
|
{"red", "Red", "^[colorize:#B40404:100"},
|
|
|
|
{"violet", "Violet", "^[colorize:#2F0B3A:100"},
|
|
|
|
{"white", "White", "^[colorize:white:100"},
|
|
|
|
{"yellow", "Yellow", "^[colorize:yellow:100"},
|
|
|
|
{"cement", "Concrete", ""},
|
|
|
|
}
|
|
|
|
for i in ipairs (color_tab) do
|
|
|
|
local col = color_tab[i][1]
|
|
|
|
local coldesc = color_tab[i][2]
|
|
|
|
local alpha = color_tab[i][3]
|
|
|
|
|
|
|
|
minetest.register_node('mylandscaping:column_t_'..obj.."_"..col, {
|
2015-09-28 20:44:01 -05:00
|
|
|
description = desc2..' topper',
|
2015-09-27 19:19:46 -05:00
|
|
|
drawtype = 'mesh',
|
|
|
|
mesh = 'mylandscaping_column_t_'..obj..'.obj',
|
2015-09-28 20:44:01 -05:00
|
|
|
tiles = {name='mylandscaping_'..tex..'.png'..alpha},
|
2015-10-01 11:40:51 -05:00
|
|
|
groups = {cracky=2, not_in_creative_inventory=visible, ml=1},
|
2015-09-27 19:19:46 -05:00
|
|
|
paramtype = 'light',
|
|
|
|
paramtype2 = 'facedir',
|
|
|
|
sounds = default.node_sound_stone_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|