import mcpi.minecraft as minecraft
mc = minecraft.Minecraft.create()
x, y, z = mc.player.getPos()
colors = [2, 5, 10, 1, 7, 3, 14, 9, 0, 4, 8, 15, 13, 6, 12, 11]
colors_count = len(colors)
w = colors_count - 1
x += colors_count
for i in range(colors_count):
mc.setBlocks(x-w+i, y+i, z-w+i, x+w-i, y+1, z+w-i, 35, colors[i])
|