Player scale picker
Provides a mechanism (`/trigger scale`) for players to adjust their size.
Player scale picker
Allows all players (including non-operators) to adjust their `generic.scale` attribute. Minimum and maximum values are configurable by operators.
Features
* `/trigger scale set <value>` to set your scale. Value is 10x* the actual scale. (e.g. 10 is 1x, 5 is 0.5x, 20 is 2x, etc.) * `/trigger scale` (with no `set`) to reset the scale of the player to 1x. * Players tagged by operators or other datapacks with the tag `no_scaling` are not permitted to adjust their scale. * Operators can force a scale change by manually adjusting the scoreboard: `/scoreboard players set <player> scale <value>` (0 to reset, otherwise identical to `/trigger` parameter) * Operators can change the minimum scale: `/scoreboard players set $minScale scale.conf <value>` and maximum scale: `/scoreboard players set $maxScale scale.conf <value>`
*see below to change this
Defaults
* Minimum scale: 0.1x * Maximum scale: 10x
Uninstallation
1. Run `/function scaler:uninstall` 2. Disable the datapack (`/datapack disable ...`) or remove it from the datapack directory 3. Reload datapacks (`/reload`)
Advanced configuration
* Adjust the scale factor (i.e. ratio between input value and resulting scale): In `/data/scaler/function/pre_invoke.mcfunction` and its equivalent in the overlay, the scale factor is managed by the `execute store` line. The default, 0.1, means that inputting 10 results in 100% scale; 0.01 would mean 100 = 100% scale, etc. If you change the scale factor, it might be necessary to change the reset scale on line 4.