Advertisement
Guest User

Masternew

a guest
Jul 12th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.17 KB | None | 0 0
  1. mon = peripheral.wrap("top")
  2. modem = peripheral.wrap("right")
  3. mon.clear()
  4. mon.setCursorPos(1,2)
  5. mon.blit("Pulverizer","0000000000","dddddddddd")
  6. redstone.setOutput("right", true)
  7. Pulverizer = true
  8. mon.setCursorPos(1,4)
  9. mon.write("Furnice","0000000","ddddddd")
  10. redstone.setOutput("left", true)
  11. local Furnice = true
  12. mon.setCursorPos(1,6)
  13. mon.write("Injection Chamber","00000000000000000","ddddddddddddddddd")
  14. local Injection_Chamber = true
  15. redstone.setOutput("top",true)
  16. mon.setCursorPos(1,8)
  17. mon.write("Metalurgig InFuser","000000000000000000","dddddddddddddddddd")
  18. local Metalurgig_InFuser = true
  19. redstone.setOutput("bottom", true)
  20. while true do
  21.   event,side,x,y = os.pullEvent("monitor_touch")
  22.  
  23.  
  24.   if x > 1 and x < 11 and y == 2 and Pulverizer == true then
  25.     mon.setCursorPos(1,2)
  26.     mon.clearLine()
  27.     mon.blit("Pulverizer","0000000000","eeeeeeeeee")
  28.     redstone.setOutput("right", false)
  29.     Pulverizer = false
  30.      
  31.  elseif x > 1 and x < 11 and y == 2 and Pulverizer == false then
  32.    mon.setCoursorPos(1,2)
  33.    mon.clearLine()
  34.    mon.blit("Pulverizer","0000000000","dddddddddd")
  35.    redstone.setOutput("right", true)
  36.    Pulverizer = true
  37.   end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement