<filename>vecIterator.py
from mcpi.minecraft import Vec3

def vecItereator(posA: Vec3, posB: Vec3, step: int = 3):
    for x in range(posA.x, posB.x, step):
        for z in range(posA.z, posB.z, step):
            yield Vec3(x,posA.y,z)
<filename>vecIterator.py
from mcpi.minecraft import Vec3

def vecItereator(posA: Vec3, posB: Vec3, step: int = 3):
    for x in range(posA.x, posB.x, step):
        for z in range(posA.z, posB.z, step):
            yield Vec3(x,posA.y,z)