ItemConsumable v3 - RealMegaMinds/ActionInventoryMod GitHub Wiki

Item Consumable (added: 3.1)

Item consumables consume items.

They look like:

{
  ...common fields...
  "stack": {},
  "amount": 0,
  "tags": [],
  "tagOption": ""
}

(common fields are specified in Consumables v3)

Stack (default accepts any item)

This is the item stack that player items are checked against. This is an item stack matcher. See Common Types v3.

Amount (defaults to 0)

This is the amount of items to take.

Tags (defaults to none)

These are the tags to check an item stack for. This is an array of identifiers. See Common Types v3.

Tag Option (defaults to "ANY")

This specifies how the tags are checked. This is a string.

Options
  • "ANY" true if any tags match
  • "NONE" true if none of the tags match
  • "ALL" true if all of the tags match
  • "EXACT" true if all of the tags match and there are no others

Note

Items must match both the stack and the tags.

⚠️ **GitHub.com Fallback** ⚠️