Initial commit
|
@ -0,0 +1 @@
|
|||
Several colorful abstract blocks.
|
|
@ -0,0 +1,37 @@
|
|||
local cc = {}
|
||||
cc.colors = { "yellow", "orange", "brown", "red", "rose", "violet", "magenta", "blue", "cyan", "green", "dark_green", "white", "light_gray", "dark_gray", "black" }
|
||||
cc.human_colors = { "yellow", "orange", "brown", "red", "rose", "violet", "magenta", "blue", "cyan", "green", "dark green", "white", "light gray", "dark gray", "black" }
|
||||
|
||||
for i=1,#cc.colors do
|
||||
local c = cc.colors[i]
|
||||
local h = cc.human_colors[i]
|
||||
local nodedef1 = {
|
||||
description = h.." abstract block",
|
||||
tiles = { "colorcubes_"..c..".png" },
|
||||
groups = { dig_immediate = 2 },
|
||||
sounds = { footstep = { name = "colorcubes_block_footstep", gain = 0.5 } }
|
||||
}
|
||||
local nodedef4 = {
|
||||
description = h.." tiled abstract block",
|
||||
tiles = { "colorcubes_"..c.."4.png" },
|
||||
groups = { dig_immediate = 2 },
|
||||
sounds = { footstep = { name = "colorcubes_block_footstep", gain = 0.5 } }
|
||||
}
|
||||
local nodedef_inward = {
|
||||
description = h.." inward abstract block",
|
||||
tiles = { "colorcubes_"..c.."_inward.png" },
|
||||
groups = { dig_immediate = 2 },
|
||||
sounds = { footstep = { name = "colorcubes_block_footstep", gain = 0.5 } }
|
||||
}
|
||||
minetest.register_node("colorcubes:"..c, nodedef1)
|
||||
minetest.register_node("colorcubes:"..c.."_tiled", nodedef4)
|
||||
minetest.register_node("colorcubes:"..c.."_inward", nodedef_inward)
|
||||
|
||||
minetest.register_craft({
|
||||
output = "colorcubes:"..c.."_tiled 4",
|
||||
recipe = {
|
||||
{"colorcubes:"..c, "colorcubes:"..c },
|
||||
{"colorcubes:"..c, "colorcubes:"..c },
|
||||
},
|
||||
})
|
||||
end
|
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 230 B |
After Width: | Height: | Size: 283 B |
After Width: | Height: | Size: 273 B |
After Width: | Height: | Size: 193 B |
After Width: | Height: | Size: 419 B |
After Width: | Height: | Size: 213 B |
After Width: | Height: | Size: 531 B |
After Width: | Height: | Size: 296 B |
After Width: | Height: | Size: 373 B |
After Width: | Height: | Size: 209 B |
After Width: | Height: | Size: 455 B |
After Width: | Height: | Size: 252 B |
After Width: | Height: | Size: 434 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 558 B |
After Width: | Height: | Size: 285 B |
After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 363 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 422 B |
After Width: | Height: | Size: 220 B |
After Width: | Height: | Size: 546 B |
After Width: | Height: | Size: 283 B |
After Width: | Height: | Size: 438 B |
After Width: | Height: | Size: 222 B |
After Width: | Height: | Size: 560 B |
After Width: | Height: | Size: 282 B |
After Width: | Height: | Size: 361 B |
After Width: | Height: | Size: 201 B |
After Width: | Height: | Size: 468 B |
After Width: | Height: | Size: 257 B |
After Width: | Height: | Size: 401 B |
After Width: | Height: | Size: 346 B |
After Width: | Height: | Size: 497 B |
After Width: | Height: | Size: 261 B |
After Width: | Height: | Size: 466 B |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 567 B |
After Width: | Height: | Size: 293 B |
After Width: | Height: | Size: 385 B |
After Width: | Height: | Size: 221 B |
After Width: | Height: | Size: 476 B |
After Width: | Height: | Size: 261 B |
After Width: | Height: | Size: 347 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 440 B |
After Width: | Height: | Size: 238 B |
After Width: | Height: | Size: 414 B |
After Width: | Height: | Size: 201 B |
After Width: | Height: | Size: 543 B |
After Width: | Height: | Size: 291 B |
After Width: | Height: | Size: 227 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 314 B |
After Width: | Height: | Size: 150 B |
After Width: | Height: | Size: 441 B |
After Width: | Height: | Size: 346 B |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 295 B |