Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- modem = peripheral.wrap("left")
- modem.open(201)
- while true do
- turtle.select(1)
- turtle.refuel()
- turtle.select(2)
- print("Wanting for orders...")
- event, modemSide, sendingChannel, replyChannel, message, sendingDistance = os.pullEvent("modem_message")
- if message == "turn on" then
- print("Turning on connection")
- turtle.placeDown()
- else
- print("Turning off connection")
- turtle.digDown()
- turtle.down()
- turtle.suck()
- turtle.up()
- end
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement