DubSlime

Panneau Zone

Aug 31st, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. m = peripheral.wrap("left")
  2. m.setBackgroundColor(colours.black)
  3. m.clear()
  4. x = 2
  5. phase = 1
  6. m.setTextColor(colours.yellow)
  7. m.setTextScale(1)
  8. m.setCursorPos(1,1)
  9. m.write("+---------------------------+")
  10. m.setCursorPos(1,2)
  11. m.write("| Traitement des minerais |")
  12. m.setCursorPos(1,3)
  13. m.write("| |")
  14. m.setCursorPos(1,4)
  15. m.write("| Processus autocrafting |")
  16. m.setCursorPos(1,5)
  17. m.write("+---------------------------+")
  18. while true do
  19. m.setCursorPos(x, 3)
  20. m.write(" --- ")
  21. sleep(0.1)
  22. if phase == 1 then
  23. x = x + 1
  24. elseif phase == 0 then
  25. x = x - 1
  26. end
  27. if x <= 2 then
  28. phase = 1
  29. x = 3
  30. elseif x >= 24 then
  31. phase = 0
  32. x = 23
  33. end
  34. end
Add Comment
Please, Sign In to add comment