Advertisement
NickSProud

go_to.lua

Jun 26th, 2022
706
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None
  1. nsp_core = require("nsp_core")
  2. nsp_turtle = require("nsp_turtle")
  3. local args = { ... }
  4.  
  5. if #args==1 and type(args[1])=="string"then
  6.     local location = nsp_core.unserialize_location(args[1])
  7.     if location == nil then
  8.         print("Location not found")
  9.     else
  10.         nsp_turtle.prime_turtle()
  11.         nsp_turtle.goTo(location)
  12.     end
  13. else
  14.     print("Please state which location to go to")
  15. end
  16.  
Advertisement
RAW Paste Data Copied
Advertisement