Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ID = "C01"
- local port = 15354
- local modem = peripheral.wrap("right")
- modem.open(port)
- while true do
- local side,sender,reply,message,distance = os.pullEvent("modem_message")
- if message == ID then
- print("Received")
- turtle.place()
- redstone.setOutput("front",true)
- sleep(3)
- redstone.setOutput("front",false)
- turtle.dig()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement