Skip to content

Min

Gets the lowest number from all the number values and uses it as the provided number value.

Type ID: kaya:min

Note

This number meta type can only provide the same kind of value of the field where it was used. (e.g: if the field is a float provider, the number provider to specify should be a float provider or if the field is an int provider, the number provider to specify should be an int provider)

Format

Field Type Default Description
values Array of Number Providers The numbers to get the highest number from.

Example

{
    "type": "kaya:min",
    "values": [
        {
            "type": "kaya:entity/attribute",
            "attribute": "minecraft:armor",
            "entity": "this"
        },
        4
    ]
}

This example is an float provider that will get the lowest float between the value of the minecraft:armor attribute of the entity provided by the kaya:this_entity context parameter and $4$.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.