Skip to content

Quotient

Divides a number and uses the quotient as the provided number value.

Type ID: kaya:quotient

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
dividend Number Provider The number to divide.
divisor Number Provider The number used to divide the dividend.

Example

{
    "type": "kaya:quotient",
    "dividend": {
        "type": "kaya:from_int",
        "value": {
            "type": "kaya:player/food",
            "entity": "this"
        }
    },
    "divisor": 20
}

This example is a float provider that will divide the food level of the player provided by the kaya:this_entity context parameter by $20$ and provides it as the value.

$(Value = FoodLevel \div 20)$

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.