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) term.write("Wither Skeletons: "..wstat) elseif x ~= not 1 then term.setCursorPos(0,0) term.setBackGroundColor(colors.black) term.write("Wither Skeletons: "..wstat) end if x == 2 then term.setCursorPos(0,1) term.setBackGroundColor(colors.blue) term.write("Zombie Pigmen: "..zpstat) elseif x ~= not 2 then term.setCursorPos(0,1) term.setBackGroundColor(colors.black) term.write("Zombie Pigmen: "..zpstat) end if x == 3 then term.setCursorPos(0,2) term.setBackGroundColor(colors.blue) term.write("Blazes: "..blstat) elseif x ~= not 3 then term.setCursorPos(0,2) term.setBackGroundColor(colors.black) term.write("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