Advertisement
Guest User

startup.lua

a guest
Apr 10th, 2023
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.21 KB | None | 0 0
  1. local modem = peripheral.find("modem")
  2. local monitor = peripheral.wrap("front")
  3. monitor.clear()
  4. monitor.setTextScale(0.5)
  5. term.clear()
  6. term.setCursorPos(1,1)
  7. repeat
  8.  
  9. while redstone.getAnalogInput("left") <= 8
  10. do rs.setOutput("back",false)
  11. modem.transmit(3,4,"Feed Active")
  12. monitor.setBackgroundColor(colors.green)
  13. monitor.setCursorPos(8, 4)
  14. monitor.write("Automated Fuel Control")
  15. print("Automated Fuel Control")
  16. monitor.setCursorPos(8, 5)
  17. monitor.write("-=-=-=-=-=-=-=-=-=-=-=")
  18. print("-=-=-=-=-=-=-=-=-=-=-=-")
  19. monitor.setCursorPos(8, 6)
  20. monitor.write("Fuel Feed Active")
  21. print("Fuel Feed Active")
  22. sleep(1)
  23. monitor.clear()
  24. term.clear()
  25. term.setCursorPos(1,1)
  26. end
  27.  
  28.  
  29. while rs.getAnalogInput("left") >= 9
  30. do rs.setOutput("back",true)
  31. modem.transmit(3,4,"Standby")
  32. monitor.setBackgroundColor(colors.red)
  33. monitor.setCursorPos(8, 4)
  34. monitor.write("Automated Fuel Control")
  35. print("Automated Fuel Control")
  36. monitor.setCursorPos(8, 5)
  37. monitor.write("-=-=-=-=-=-=-=-=-=-=-=")
  38. print("-=-=-=-=-=-=-=-=-=-=-=-")
  39. monitor.setCursorPos(8, 6)
  40. monitor.write("Fuel Feed Inactive")
  41. print("Fuel Feed Inactive")
  42. sleep(1)
  43. monitor.clear()
  44. term.clear()
  45. term.setCursorPos(1,1)
  46. end
  47. until rs.getAnalogInput("top") == 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement