Advertisement
augustclear

turtlefg

Nov 20th, 2020 (edited)
872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. local w = require("lib.turtlelib")
  2. local command = nil;
  3.  
  4. term.setCursorPos(1,1)
  5. term.write("Awaiting orders...")
  6.  
  7. while command ~= "close" do
  8.     command = w.take_orders()
  9.     term.setCursorPos(1,2)
  10.     term.clearLine()
  11.     term.write("[COMMAND]:" .. command)
  12. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement