Language

Player scale picker

Modrinth

Provides a mechanism (`/trigger scale`) for players to adjust their size.

318 downloads 1 followers updated 23mo ago
latest v1.0 Modrinth
Datapack 1.20.5 – 1.21 Utility

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.

Versions

Release
1.0
datapack · 1.20.5, 1.20.6, 1.21 · 23mo ago
318

Comments 0

No comments yet. Be the first to share your thoughts.

Download Player scale picker

Files are served directly from the original source. Modgrid does not host or modify them.