Add mixed color tiled blocks

master
Wuzzy 2016-07-03 05:57:09 +02:00
parent 39fc272119
commit 3f72ed8154
11 changed files with 32 additions and 0 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 408 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 368 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 382 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 425 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B