In this video we will create a moving platform to get across the lava using loops and timers.
#Jump Pad import mcpi.minecraft as minecraft import mcpi.block as block import time mc = minecraft.Minecraft.create() mc.postToChat("Get Ready") startPos = mc.player.getPos() time.sleep(2) counter = 0 while (counter < 10): playerPos = mc.player.getPos() mc.postToChat("Jump!") counter = counter + 2 mc.setBlock(startPos.x,startPos.y-1,startPos.z+counter,block.AIR) time.sleep(.01) mc.setBlock(startPos.x,startPos.y-1,startPos.z+counter+2,block.GOLD_BLOCK) time.sleep(1) mc.setBlock(startPos.x,startPos.y-1,startPos.z+counter+4,block.GOLD_BLOCK) time.sleep(1)