Skip to content

Power

Provides a float value raised to the power of another float.

Type ID: kaya:power

Format

Field Type Default Description
base Float Provider The base float value to raise to the power of an exponent.
exponent Float Provider The exponent to raise the value of the base value.

Example

{
    "type": "kaya:power",
    "base": 2.5,
    "exponent": 4.0
}

This example provides $2.5$ raised to the power of $4.0$, which will be $39.0625$. $(2.5 * 2.5 * 2.5 * 2.5 = 39.06)$

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.