import mcpi.minecraft as minecraft
mc = minecraft.Minecraft.create()
x, y, z = mc.player.getPos()
colors = [
[0, 0, 15, 15, 15, 15, 15, 15, 0, 0],
[0, 15, 4, 4, 4, 4, 4, 4, 15, 0],
[15, 4, 4, 15, 4, 4, 15, 4, 4, 15],
[15, 4, 4, 15, 4, 4, 15, 4, 4, 15],
[15, 4, 4, 4, 4, 4, 4, 4, 4, 15],
[15, 4, 15, 4, 4, 4, 4, 15, 4, 15],
[15, 4, 15, 4, 4, 4, 4, 15, 4, 15],
[15, 4, 4, 15, 15, 15, 15, 4, 4, 15],
[0, 15, 4, 4, 4, 4, 4, 4, 15, 0],
[0, 0, 15, 15, 15, 15, 15, 15, 0, 0]
]
height = len(colors)
for i in range(height):
row = colors[i]
width = len(row)
|