Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left",1)
- local gorivo
- local coordx=0
- local coordy=0
- local coordz=0
- local primljeno="stop"
- while primljeno!="start" do
- primljeno=rednet.receive()
- end
- if (coordx==0) and (coordy==0) and (coordz==0)
- rednet.brodcast("Unesi pocetne koordinate")
- coordx=rednet.receive()
- coordy=rednet.receive()
- coordz=rednet.receive()
- rednet.brodcast("ODOH NA KOORDINATE")
- else
- rednet.brodcast("Pocetne koordinate su xyz")
- end
- gorivo=turtle.getFuelLevel()
- rednet.brodcast(gorivo)
- if(gorivo==0)
- turtle.refuel()
- end
- for i=1..10
- turtle.forward()
- end
Add Comment
Please, Sign In to add comment