Advertisement
SpaceRanger4321

Printer

Oct 7th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.59 KB | None | 0 0
  1. term.setBackgroundColor(colors.white)
  2. term.clear()
  3. local printer = peripheral.find("printer3d")
  4. if not printer then
  5.     lUtils.popup("Error","No printer found.",27,9,{"Quit"})
  6.     return
  7. end
  8. filename = lUtils.explorer("User/Models","SelFile false")
  9. if not filename then return end
  10. a = {lUtils.inputbox("Printer","How many instances do you want to print?",29,11,{"Done"})}
  11. if a[1] == nil or a[1] == "" or tonumber(a[1]) == nil then return end
  12. term.setBackgroundColor(colors.white)
  13. term.clear()
  14. term.setCursorPos(1,1)
  15. term.setTextColor(colors.black)
  16. shell.run("print3d "..filename.." "..a[1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement