Add mixed color tiled blocks
32
init.lua
|
@ -92,3 +92,35 @@ for i=1,#cc.colors do
|
|||
})
|
||||
|
||||
end
|
||||
|
||||
local complementary = { { "yellow", "blue"}, {"aqua", "redviolet"}, {"red", "cyan"}, {"light_gray", "dark_gray"}, {"green", "magenta"}, {"orange", "skyblue"}, {"lime", "violet"}, {"black", "white"}, {"orange", "brown"} }
|
||||
local complementary_names = { "yellow/blue tiled abstract block", "aqua/red-violet tiled abstract block", "red/cyan tiled abstract block", "light/dark gray tiled abstract block", "green/magenta tiled abstract block", "orange/skyblue tiled abstract block", "lime/violet tiled abstract block", "black/white tiled abstract block", "orange/brown tiled abstract block" }
|
||||
|
||||
for i=1,#complementary do
|
||||
local c1, c2
|
||||
c1 = complementary[i][1]
|
||||
c2 = complementary[i][2]
|
||||
local nodeid = "colorcubes:"..c1.."_"..c2.."_tiled"
|
||||
local tex = "colorcubes_4c_"..c1.."_"..c2..".png"
|
||||
local texR90 = tex .. "^[transformR90"
|
||||
minetest.register_node(nodeid, {
|
||||
description = complementary_names[i],
|
||||
tiles = { tex, tex, tex, tex, texR90, texR90 },
|
||||
groups = { dig_immediate = 2 },
|
||||
sounds = { footstep = { name = "colorcubes_block_footstep", gain = 0.5 } }
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = nodeid,
|
||||
recipe = {
|
||||
{"colorcubes:"..c1.."_single", "colorcubes:"..c2.."_single" },
|
||||
{"colorcubes:"..c2.."_single", "colorcubes:"..c1.."_single" },
|
||||
},
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = nodeid,
|
||||
recipe = {
|
||||
{"colorcubes:"..c2.."_single", "colorcubes:"..c1.."_single" },
|
||||
{"colorcubes:"..c1.."_single", "colorcubes:"..c2.."_single" },
|
||||
},
|
||||
})
|
||||
end
|
||||
|
|
After Width: | Height: | Size: 405 B |
After Width: | Height: | Size: 408 B |
After Width: | Height: | Size: 380 B |
After Width: | Height: | Size: 368 B |
After Width: | Height: | Size: 382 B |
After Width: | Height: | Size: 425 B |
After Width: | Height: | Size: 423 B |
After Width: | Height: | Size: 387 B |
After Width: | Height: | Size: 404 B |
After Width: | Height: | Size: 436 B |