• check_circle Advancements
  • check_circle Functions
  • 5,833 views, 7 today
  • 782 downloads, 1 today
  • 8
  • 6
  • 6
Frogster's Avatar Frogster
Level 34 : Artisan Waffle
5
Thanks to @2mal3 was able to make this. The ingenious method used to get a pretty accurate view of the server TPS has helped a ton. I’ve no clue if he was first to use it, but his system I adapted to suit standalone.

To check the TPS run “/trigger TPS” and the server will give you the average TPS in the last set of 200 game ticks. Helps when you have those weird lag spikes and you’re wondering if it’s you or the server (in my experience it’s generally you. But then again I run five smaller mods on an already not amazing PC :/).

Text reported in chat will be Dark Green for 18+ TPS, Light Green for 15-17 TPS, Yellow for 10-14 TPS, Orange for 5-9 TPS, and Red for 0-4

To uninstall run "/function tps:uninstall"
CreditVanillaTweaks as I used their colors from their “rainbow ping” resource pack in the logo of my datapack
CompatibilityMinecraft 1.13
toMinecraft 1.19
Tags

1 Update Logs

v1.0 Datapack Conventions : by Frogster 10/04/2022 10:29:06 pmOct 4th, 2022

Added:
  • Datapack advancement to be aligned with the datapack advancement convention
  • Uninstall function (/function tps:uninstall)

Create an account or sign in to comment.

Jsut_a_bird
10/26/2022 8:03 pm
Level 1 : New Miner
Jsut_a_bird's Avatar
Doesnt give tps after i do /trigger TPS,

It just says Triggered [​Current TPS]

then doesnt do anything after
1
Frogster
10/26/2022 8:41 pm
Level 34 : Artisan Waffle
Frogster's Avatar
Hello! I will need a bit more context to figure this one out. When you run "/trigger TPS" you said it will give you confirmation that it triggered but doesn't run, correct? If this is the case, I will need to ask if you could tab auto-complete the field. If you can, then it's on the datapack's end. If not, I'd advise running "/reload" to go load the pack again.

Also, the pack will take ten seconds for the first reading after launch so it won't have anything to send to you if that is the case.
1
Jsut_a_bird
10/26/2022 10:47 pm
Level 1 : New Miner
Jsut_a_bird's Avatar
Thanks for replying! I restarted the server and it appears to work correctly! Thanks for this useful datapack.
2
Timongcraft
09/16/2022 8:16 am
Level 20 : Expert Engineer
Timongcraft's Avatar
Could you make that it also shows from last 1m and 5m and 10m?
1
Frogster
09/16/2022 8:47 am
Level 34 : Artisan Waffle
Frogster's Avatar
Likely will in the next update. Was originally going to have a log to show what the average tps of the previous “x” checks. Then got really confused because I didn’t want to hardcode all of that so I just settled on this. That’s why the version is v0.6 - I never got around to changing the development version :)
1
Timongcraft
09/17/2022 5:38 pm
Level 20 : Expert Engineer
Timongcraft's Avatar
ok
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome