Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c=peripheral.wrap("right")
- while true do
- e,player,y = os.pullEvent("chat")
- print(player..y)
- if player=="ecco7777" then
- if y=="Forward" then
- turtle.forward()
- end
- if y=="Back" then
- turtle.back()
- end
- if y=="Left" then
- turtle.turnLeft()
- end
- if y=="Right" then
- turtle.turnRight()
- end
- if y=="Up" then
- turtle.up()
- end
- if y=="Down" then
- turtle.down()
- end
- if y=="Dig" then
- turtle.dig()
- end
- if y=="Place" then
- turtle.place()
- end
- if y=="Shutdown" then
- if peripheral.getType("front")=="computer" or peripheral.getType("front")=="turtle" then
- c=peripheral.wrap("front")
- c.shutdown()
- end
- end
- if y=="Slot1" then
- turtle.select(1)
- end
- if y=="Slot2" then
- turtle.select(2)
- end
- if y=="Slot3" then
- turtle.select(3)
- end
- if y=="Slot4" then
- turtle.select(4)
- end
- if y=="Slot5" then
- turtle.select(5)
- end
- if y=="Slot6" then
- turtle.select(6)
- end
- if y=="Slot7" then
- turtle.select(7)
- end
- if y=="Slot8" then
- turtle.select(8)
- end
- if y=="Slot9" then
- turtle.select(9)
- end
- if y=="Redstone" then
- rs.setOutput("front",true)
- sleep(0.5)
- rs.setOutput("front",false)
- end
- sleep(0.2)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement