Keep a score in range
Pull someone's score up to a lowest or down to a highest number if it is outside them.
A Minecraft element (a step) in Scoreboards & teams. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player takes damage → Take from a score: lives → Keep a score in range: lives, 0 to 5.
Also called
clamp score, min max score, limit score, cap score
Works as a data pack?
No. This one needs the Elementium plugin on a Paper server.
What you give it
- Objective
- Who
- Lowest
- Highest
What it gives back
- Score