import mcpi.minecraft as minecraft mc = minecraft.Minecraft.create() x, y, z = mc.player.getPos() mc.setBlock(x+1, y+1, z+1, 1)