Guest User

CurrentCode

a guest
May 28th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. function up()
  2. x = x+1
  3. end
  4. function down()
  5. x = x-1
  6. end
  7.  
  8.  
  9. while true do
  10. if x == 1 then
  11. term.setCursorPos(0,0)
  12. term.setBackGroundColor(colors.blue)
  13. term.write("Wither Skeletons: "..wstat)
  14. elseif x ~= not 1 then
  15. term.setCursorPos(0,0)
  16. term.setBackGroundColor(colors.black)
  17. term.write("Wither Skeletons: "..wstat)
  18. end
  19. if x == 2 then
  20. term.setCursorPos(0,1)
  21. term.setBackGroundColor(colors.blue)
  22. term.write("Zombie Pigmen: "..zpstat)
  23. elseif x ~= not 2 then
  24. term.setCursorPos(0,1)
  25. term.setBackGroundColor(colors.black)
  26. term.write("Zombie Pigmen: "..zpstat)
  27. end
  28. if x == 3 then
  29. term.setCursorPos(0,2)
  30. term.setBackGroundColor(colors.blue)
  31. term.write("Blazes: "..blstat)
  32. elseif x ~= not 3 then
  33. term.setCursorPos(0,2)
  34. term.setBackGroundColor(colors.black)
  35. term.write("Blazes: "..blstat)
  36. end
  37.  
  38.  
  39.  
  40.  
  41.  
  42. local event, key = os.pullEvent("key")
  43. if key == 38 then
  44. up()
  45. end
  46. if key == 40 then
  47. down()
  48. end
  49. if x == 1 and key == 13 then
  50. wsstat = not wsstat
  51. rs.setOutput("back", wsstat)
  52. elseif x == 2 and key == 13 then
  53. zpstat = not zpstat
  54. rs.setOutput("top", zpstat)
  55. elseif x == 3 and key == 13 then
  56. blstat = not blstat
  57. rs.setOutput("left", blstat)
  58.  
  59. end
  60. end
Advertisement
Add Comment
Please, Sign In to add comment