Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem")
- modem.open(2)
- modem.open(42069)
- while true do
- local event, character = os.pullEvent("char")
- if character == 'b' then
- modem.transmit(42069, 42069, "b")
- break
- end
- local x,z,y = gps.locate()
- local WhereToGo = {math.floor(x),math.floor(z),math.floor(y)}
- modem.transmit(42069, 42069, WhereToGo)
- end
- modem.closeAll()
Add Comment
Please, Sign In to add comment