Skip to content

From Float

Stringifies a float and uses it as the provided value.

Type ID: kaya:from_float

Format

Field Type Default Description
value Float Provider The float to stringify.

Example

{
    "type": "kaya:from_float",
    "value": {
        "type": "kaya:player/saturation",
        "entity": "this"
    }
}

This example stringifies the food saturation value of the player provided by the kaya:this_entity context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.