Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sleep(1)
- local c = peripheral.wrap "back".canvas()
- local w,h = c.getSize()
- local out = c.addText({9, h - 16}, "NO TPS")
- while true do
- local tps = switchcraft.tps()
- out.setText(string.format("TPS: %.2f", tps))
- local c
- if tps > 19 then c = 0x00FF00FF
- elseif tps > 15 then c = 0xFFFF00FF
- elseif tps > 10 then c = 0xFF8800FF
- else c = 0xFF0000FF end
- out.setColor(c)
- sleep(1)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement