Send Condition (Item Condition Type)
Asks an apoli:receive_condition power on the item's holder for the answer.
Asks an apoli:receive_condition power on whoever is holding the stack, which answers with its item_condition.
Type ID: apoli:send_condition (also shappoli:send_condition)
Fields
| Field | Type | Default | Description |
|---|---|---|---|
receiver | Identifier | required | The id of a power on the same entity. Nothing happens if the entity does not have it, if it is suppressed, if its own condition fails, or if it is not the right receiving type. |
Example
{
"type": "apoli:receive_condition",
"item_condition": {
"type": "apoli:ingredient",
"ingredient": { "tag": "minecraft:planks" }
}
} {
"type": "apoli:prevent_item_use",
"item_condition": {
"type": "apoli:send_condition",
"receiver": "mypack:is_forbidden_material"
}
}