Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 1
- function up()
- x = x+1
- end
- function down()
- x = x-1
- end
- while true do
- if x == 1 then
- term.setCursorPos(0,0)
- term.setBackGroundColor(colors.blue)
- print("Wither Skeletons: "..wstat)
- else
- term.setCursorPos(0,0)
- term.setBackGroundColor(colors.black)
- print("Wither Skeletons: "..wstat)
- end
- if x == 2 then
- term.setCursorPos(0,1)
- term.setBackGroundColor(colors.blue)
- print("Zombie Pigmen: "..zpstat)
- else
- term.setCursorPos(0,1)
- term.setBackGroundColor(colors.black)
- print("Zombie Pigmen: "..zpstat)
- end
- if x == 3 then
- term.setCursorPos(0,2)
- term.setBackGroundColor(colors.blue)
- print("Blazes: "..blstat)
- else
- term.setCursorPos(0,2)
- term.setBackGroundColor(colors.black)
- print("Blazes: "..blstat)
- end
- local event, key = os.pullEvent("key")
- if key == 38 then
- up()
- end
- if key == 40 then
- down()
- end
- if x == 1 and key == 13 then
- wsstat = not wsstat
- rs.setOutput("back", wsstat)
- elseif x == 2 and key == 13 then
- zpstat = not zpstat
- rs.setOutput("top", zpstat)
- elseif x == 3 and key == 13 then
- blstat = not blstat
- rs.setOutput("left", blstat)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment