Download Player scale picker — Minecraft Mods — MetaMods

Player scale picker

Active

Downloads

0

Last update

1 year ago

Versions

1.20.5 — 1.21
Server
Utils

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 scale without the set parameter resets the player's size to the standard 1x
  • Players with the no_scaling tag 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 /trigger parameter)
  • 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

  1. Execute the function /function scaler:uninstall
  2. Disable the datapack using the command /datapack disable ... or remove it from the corresponding directory
  3. 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.

Project members
penguinencounter

penguinencounter

Developer

Created: 10 Jul 2024

ID: 25942