import collections
import mcpi.block as block
import time
from mcpi.minecraft import Minecraft
from collections.abc import Iterable
mc = Minecraft.create()
collections.Iterable = Iterable
while True:
pos = mc.player.getPos()
mc.setBlock(pos.x, pos.y, pos.z, block.WATER.id)
time.sleep(0.5)