Skip to main content

Send Condition (Item Condition Type)

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

FieldTypeDefaultDescription
receiverIdentifierrequiredThe ID of a power on the holder. The condition is false if the holder doesn't have it, if it is suppressed, if its own condition fails, or if it isn't the right receiving type.

Example

The receiver defines which materials are forbidden:

{
  "type": "apoli:receive_condition",
  "item_condition": {
    "type": "apoli:ingredient",
    "ingredient": { "tag": "minecraft:planks" }
  }
}

A power that blocks using them asks it:

{
  "type": "apoli:prevent_item_use",
  "item_condition": {
    "type": "apoli:send_condition",
    "receiver": "mypack:is_forbidden_material"
  }
}