Resource
Provides the value of a power that uses the Resource Float power type.
Type ID: kaya:resource
Format
| Field | Type | Default | Description |
|---|---|---|---|
power |
Power Identifier | The resource power to get the value of. | |
entity |
Entity Provider | The entity to get the power from. |
Example
{
"type": "kaya:resource",
"power": "example:resource_awesome_sauce_but_as_float",
"entity": "this"
}
This example will provide the integer value of the example:resource_awesome_sauce_but_as_float power from the entity provided by the kaya:this_entity context parameter.
History
| Minecraft | Mod | Changelog |
| 1.21.5 | 0.1.0 | Added the type. |