Skip to main content

Scale (Command)

Reads and changes the scales stored on entities. A value set here stays on the entity, survives relogs and dimension changes, and multiplies with any apoli:scale power the entity holds.

It needs permission level 2, or the apoli.command.scale node, and has no short alias.

apoli:scale get <targets> [<scale_type>]
apoli:scale set <targets> <scale_type> <value> [<ticks>] [<easing>]
apoli:scale add <targets> <scale_type> <value> [<ticks>] [<easing>]
apoli:scale subtract <targets> <scale_type> <value> [<ticks>] [<easing>]
apoli:scale multiply <targets> <scale_type> <value> [<ticks>] [<easing>]
apoli:scale divide <targets> <scale_type> <value> [<ticks>] [<easing>]
apoli:scale power <targets> <scale_type> <value> [<ticks>] [<easing>]
apoli:scale reset <targets>
apoli:scale list
ArgumentMeaning
<targets>Any entity selector. Scales work on every entity, mobs included.
<scale_type>A Scale Type. get defaults to apoli:base.
<value>The right-hand side of the operation, from 0.0001 to 10000.
<ticks>How long the change takes. Leaving it out, or 0, applies it straight away.
<easing>How the change is spread over <ticks>. It defaults to linear.

get prints the final value, with the stored value, powers and parent scales combined, which is what the game uses. reset clears every stored scale on the target and doesn't touch scales that come from a power.

apoli:scale set @s apoli:base 2
apoli:scale set @s apoli:base 0.25 40 ease_out_cubic
apoli:scale multiply @e[type=zombie,distance=..8] apoli:height 1.5
apoli:scale get @s apoli:model_height
apoli:scale reset @a