bojan4416

Untitled

Nov 22nd, 2019
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. rednet.open("left",1)
  2. local gorivo
  3. local coordx=0
  4. local coordy=0
  5. local coordz=0
  6.     local primljeno="stop"
  7.     while primljeno!="start" do
  8.         primljeno=rednet.receive()
  9.     end
  10.     if (coordx==0) and (coordy==0) and (coordz==0)
  11.         rednet.brodcast("Unesi pocetne koordinate")
  12.         coordx=rednet.receive()
  13.         coordy=rednet.receive()
  14.         coordz=rednet.receive()
  15.         rednet.brodcast("ODOH NA KOORDINATE")
  16.     else
  17.         rednet.brodcast("Pocetne koordinate su xyz")
  18.     end
  19.     gorivo=turtle.getFuelLevel()
  20.     rednet.brodcast(gorivo)
  21. if(gorivo==0)
  22.     turtle.refuel()
  23. end
  24. for i=1..10
  25.     turtle.forward()
  26. end
Add Comment
Please, Sign In to add comment