Keep the highest number
Save a number only if it beats the saved one, like a personal best. Nothing saved counts as beaten.
A Minecraft element (a step) in Saved data. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a round ends → Keep the highest number: player, best_score, {node.s.points}.
Also called
high score, personal best, record, max, best, keep best
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- Player
- Entity
- Block
- New number
What it gives back
- Best
- Beat the record