Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- protocal = "FUEL"
- --rednet.loockup(protocal, turtle)
- while(true)
- do
- if(rednet.isOpen()) then
- id,mes = rednet.receive(protocal, 0)
- if(mes == "ended") then
- break
- elseif(mes == nil) then
- else
- print(mes)
- end
- else
- break
- end
- if(redstone.getInput("left")) then
- rednet.send(4, "EXIT", protocal)
- end
- end
- rednet.close("right")
Add Comment
Please, Sign In to add comment