Player scale picker
This datapack provides all players including non-operators with the ability to adjust their size via the generic.scale attribute. Server operators can configure the minimum and maximum allowable scale change values.
Key Features
- Command
/trigger scale set <value>allows you to set your current size. The value is specified as ten times the actual scale (for example, 10 corresponds to 1x, 5 to 0.5x, 20 to 2x, and so on) /trigger scalewithout thesetparameter resets the player's size to the standard 1x- Players with the
no_scalingtag added by operators or other datapacks cannot change their size - Operators can forcibly change any player's scale via the scoreboard editing command:
/scoreboard players set <player> scale <value>(0 to reset, otherwise corresponds to the/triggerparameter) - Boundary settings: operators can change the minimum size via
/scoreboard players set $minScale scale.conf <value>and maximum via/scoreboard players set $maxScale scale.conf <value>
Default Settings
- Minimum size: 0.1x
- Maximum size: 10x
Uninstallation
- Execute the function
/function scaler:uninstall - Disable the datapack using the command
/datapack disable ...or remove it from the corresponding directory - Reload datapacks with the command
/reload
Advanced Configuration
Adjusting the scaling factor: In files /data/scaler/function/pre_invoke.mcfunction and similar ones in the overlay, the scale factor is managed by the execute store line. The default value of 0.1 means that entering the number 10 gives 100% size; 0.01 would mean a ratio of 100 = 100% size, and so on. When changing the coefficient, it might be necessary to change the reset size in line 4 of the corresponding file.