Advertisement
Trapcrafter22

Bloodmagic

Feb 21st, 2017
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. mon = peripheral.wrap("front")
  2. mon.clear()
  3. mon.setTextScale(1.5)
  4.  
  5. mon.setCursorPos(2,1)
  6. mon.write("Vilager")
  7. mon.setCursorPos(2,3)
  8. mon.write("Well of Suffering")
  9.  
  10.  
  11. while true do
  12. event,side,x,y = os.pullEvent("monitor_touch")
  13.  
  14. if x > 1 and x < 9 and y == 1 and rs.getOutput("left") == false then
  15. rs.setOutput("left",true)
  16. mon.setCursorPos(2,1)
  17. mon.clearLine()
  18. mon.blit("Vilager","0000000","ddddddd")
  19. elseif x > 1 and x < 9 and y == 1 and rs.getOutput("left") == true then
  20. rs.setOutput("left",false)
  21. mon.setCursorPos(2,1)
  22. mon.clearLine()
  23. mon.blit("Vilager","0000000","eeeeeee")
  24.  
  25. elseif x > 1 and x < 19 and y == 3 and rs.getOutput("right") == false then
  26. rs.setOutput("right",true)
  27. mon.setCursorPos(2,3)
  28. mon.clearLine()
  29. mon.blit("Well of Suffering","00000000000000000","ddddddddddddddddd")
  30. elseif x > 1 and x < 19 and y == 3 and rs.getOutput("right") == true then
  31. rs.setOutput("right",false)
  32. mon.setCursorPos(2,3)
  33. mon.clearLine()
  34. mon.blit("Well of Suffering","00000000000000000","eeeeeeeeeeeeeeeee")
  35.  
  36. end
  37. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement