20 lines
518 B
Python
20 lines
518 B
Python
from mcpi.minecraft import Minecraft
|
|
mc = Minecraft.create()
|
|
twoDimensionalRainbowList = [[0, 0, 0],
|
|
[1, 1, 1],
|
|
[2, 2, 2],
|
|
[3, 3, 3],
|
|
[4, 4, 4],
|
|
[5, 5, 5]]
|
|
pos = mc.player.getTilePos()
|
|
x = pos.x
|
|
y = pos.y
|
|
z = pos.z
|
|
startingX = x
|
|
for row in twoDimensionalRainbowList:
|
|
for color in row:
|
|
mc.setBlock(x, y, z, 35, color)
|
|
x += 1
|
|
y += 1
|
|
x = startingX
|