In [ ]:
import mcpi.minecraft as minecraft
import mcpi.block as block

world = minecraft.Minecraft.create()

[x0,y0,z0] = world.player.getPos()

for