Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mon = peripheral.wrap("right")
- 2.mon.clear()
- 3.mon.setTextScale(1.5)
- 4.mon.setCursorPos(2,1)
- 5.mon.write("Spawner =")
- 6.mon.setCursorPos(2,3)
- 7.mon.write("Grinder =")
- 8.mon.setCursorPos(2,5)
- 9.mon.write("Drawbridges =")
- 10.
- 11. while true do
- 12. event,side,x,y = os.pullEvent("monitor_touch")
- 13.
- 14. elseif x > 1 and x < 11 and y == 1 and rs.getOutput("top") == false then
- 15. rs.setOutput("top",true)
- 16. mon.setCursorPos(2,1)
- 17. mon.clearLine()
- 18. mon.blit("Spawner = OFF","0000000000000","ddddddddddddd")
- 19.
- 20. elseif x > 1 and x < 11 and y == 1 and rs.getOutput("top") == true then
- 21. rs.setOutput("top",false)
- 22. mon.setCursorPos(2,1)
- 23. mon.clearLine()
- 24. mon.blit("Spawner = ON","000000000000","eeeeeeeeeeee")
- 25.
- 26. elseif x > 1 and x < 7 and y == 3 and rs.getOutput("bottom") == false then
- 27. rs.setOutput("bottom",true)
- 28. mon.setCursorPos(2,3)
- 29. mon.clearLine()
- 30. mon.blit("Grinder = OFF","0000000000000","ddddddddddddd")
- 31.
- 32. elseif x > 1 and x < 7 and y == 3 and rs.getOutput("bottom") == true then
- 33. rs.setOutput("bottom",false)
- 34. mon.setCursorPos(2,3)
- 35. mon.clearLine()
- 36. mon.blit("Grinder = ON","000000000000","eeeeeeeeeeee")
- 37. elseif x > 1 and x < 15 and y == 5 and rs.getOutput("left") == false then
- 38. rs.setOutput("left",true)
- 39. mon.setCursorPos(2,3)
- 40. mon.clearLine()
- 41. mon.blit("Drawbridges = OFF","0000000000000","ddddddddddddd")
- 42.
- 43. elseif x > 1 and x < 7 and y == 3 and rs.getOutput("left") == true then
- 44. rs.setOutput("left",false)
- 45. mon.setCursorPos(2,3)
- 46. mon.clearLine()
- 47. mon.blit("Drawbridges = ON","000000000000","eeeeeeeeeeee")
- 48. end
- 49.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement