Hello!
I'm learning Advetures in Minecraft Second Edition and am stuck on a weird error saying that a name is not defined.
The problem block of code is below:
for blockBetween in blocksBetween[:-1]:
friend = blockBetween.clone()
friend.y = c.getHeight(friend.x, friend.z)
mc.setBlock(friend.x, friend.y, friend.z,
time.sleep(0.25)
target = friend.clone()
time.sleep(0.25)
After running the code I get an error message like this:
for blockBetween in blocksBetween[:-1]:
NameError: name 'blocksBetween' is not defined
I was carefully following the book before this error occured and the code worked perfectly before this last cycle :)
Any help is greatly appreciated!
Thnaks!