Advertisement
melzneni

Turti helper commands

Aug 15th, 2023 (edited)
2,208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. local args = { ... }
  2.  
  3. if args[1] == "restart" then
  4.     fs.delete("program.turti.stack")
  5.     os.reboot()
  6. elseif args[1] == "deleteStorage" then
  7.     for _, file in ipairs(fs.list("program.turti_persistent")) do
  8.         fs.delete("program.turti_persistent/" .. file)
  9.     end
  10.     print("success")
  11. elseif args[1] == "identify" then
  12.     if args[2] == "item" then
  13.         if args[3] then
  14.             turtle.select(tonumber(args[3]))
  15.         end
  16.         print(turtle.getItemDetail().name)
  17.     end
  18. elseif args[1]=="inspectStack" then
  19.     local core = require("core")
  20.     print("inspectStack", core.printTable)
  21.  
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement