Lesson 5: Redstone Torch

Activate the maze gate


In this video we will use our mc.setBlock() command once again to place down a redstone torch to open the Iron gates


#PLACE DOWN REDSTONE TORCH
import mcpi.minecraft as minecraft
import mcpi.block as block
mc = minecraft.Minecraft.create()
playerPos = mc.player.getPos()
mc.setBlock(playerPos.x,playerPos.y, playerPos.z+1, 76)