In this video we will create a glowstone that follows the player and lights our way through the dark maze
#Illuminate import mcpi.minecraft as minecraft import mcpi.block as block import time mc = minecraft.Minecraft.create() mc.postToChat("Illuminate: Active") time.sleep(2) while(True): playerPos = mc.player.getPos() mc.setBlock(playerPos.x,playerPos.y+5,playerPos.z,89) time.sleep(.1) mc.setBlock(playerPos.x,playerPos.y+5,playerPos.z,0) standBlock = mc.getBlock(playerPos.x,playerPos.y-1,playerPos.z) if standBlock == 57: break