Product
Multiplies all the number values and uses the product as the provided number value.
Type ID: kaya:product
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 product of. |
Example
{
"type": "kaya:product",
"values": [
{
"type": "kaya:entity/attribute",
"attribute": "minecraft:armor",
"entity": "this"
},
0.1
]
}
This example is a float provider that would multiply the value of the minecraft:armor attribute of the entity provided by the kaya:this_entity context parameter by $0.1$.
$(Value = AttributeValue * 0.1)$
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |