Items v2 - RealMegaMinds/ActionInventoryMod GitHub Wiki

Items


Action items are what actually do things in an action inventory. Action items are displayed as itemstacks. Action items can have requirements for viewing/using and actions that occur when clicked. ALL requirements must be met for actions to be executed.

Action items are represented by a json object. All action items have:

Slot

key = 'slot'
This is an int. This determines where the action item is placed in the inventory. Must be between 0 and the inventory rows * 9 (includes 0).

Representation

key = 'representation'
This is a object. This is an item stack. This is what the action item is displayed as in the inventory.
Contains:

Item

key = 'item'
This is a string. This is the identifier of this item stack's item.

Count

key = 'count'
This is an int. This is the number of items this item stack has.

NBT

key = 'nbt'
This is a string. This is the item stack's custom nbt in snbt format.

Requirements

key = 'requirements'
This is an array of objects. See Requirements v2 page for more information.

Actions

key = 'actions'
This is an array of objects. See Actions v2 page for more information.

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