Advertisement
noah6644

Reaktorsteuerung

Nov 25th, 2015
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. term.cear()
  2. term.setCursorPos(1,1)
  3. print("Reaktorensteuerung")
  4. print("+ Reactor 1)
  5. print("+ Reactor 2)
  6. print("+ Reactor 3)
  7. print("+ Reactor 4)
  8.  
  9. while true do
  10. local event, button, x, y = os,pullEvent("mouse_click")
  11. XY= X..","..Y
  12.  
  13. if XY == "1,2" and button == 1 then
  14. redstone.setBundledOutput("back",color.white)
  15. end
  16.  
  17. if XY == "1,3" and button == 1 then
  18. redstone.setBundledOutput("back",color.orange)
  19. end
  20.  
  21. if XY == "1,4" and button == 1 then
  22. redstone.setBundledOutput("back",color.magenta)
  23. end
  24.  
  25. if XY == "1,5" and button == 1 then
  26. redstone.setBundledOutput("back",color.light_blue)
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement