import mcpi.minecraft as minecraft mc = minecraft.Minecraft.create() x, y, z = mc.player.getPos() mc.setBlock(x+1, y, z, 35, 0) mc.setBlock(x+1, y+1, z, 35, 1) mc.setBlock(x+1, y+2, z, 35, 2)
import mcpi.minecraft as minecraft mc = minecraft.Minecraft.create() x, y, z = mc.player.getPos() colors = [3, 9, 2, 4, 11, 1, 5] for i in range(7): mc.setBlocks(x+i, y-1, z-3, x+i, y-1, z+3, 35, colors[i])