Item Stack v3 - RealMegaMinds/ActionInventoryMod GitHub Wiki

Item Stack

This is an object.
Looks like:

{
  "item": "",
  "count": 0,
  "damage": 0,
  "customNbt": "",
  "customName": {},
  "lore": [],
  "color": 0,
  "enchantments": {},
  "hideFlags": [],
  "attributes": []
}

Item

This is the type of the item stack. This is a string. You can use this to search for ids. This will look something like "minecraft:stick".

Count

This is the number of items in the stack. This is an integer.

Damage

This is the amount of damage that has been applied to the item. For example, 0 damage means the item is fully healed. The max amount is the item's durability. This is an integer.

Custom Nbt

This is the custom nbt of the item stack in snbt. This is a string. See here for snbt and here for specifically item stacks.

Custom Name

This is the display name of the item stack. This is a text object. See Common Types v3.

Lore

This is the lore for the item stack. This is an array of text. See Common Types v3.

Color

This is the color of the item stack. Not all items use this. This is an int.

Enchantments

These are the enchantments for the item stack. This is an object of enchantment identifier keys mapped to integers (the level for the enchantment).
Ex:

{
  "minecraft:sharpness": 5,
  "minecraft:thorns" 3
}

Hide Flags

These the parts of the item stack tooltip you can hide. This is a string.

Types
  • "ENCHANTMENTS"
  • "MODIFIERS"
  • "UNBREAKABLE"
  • "CAN_DESTROY"
  • "CAN_PLACE"
  • "ADDITIONAL"
  • "DYE"

Attributes

These are the attributes that the item stack modifies. This is an array of objects. See Common Types v3.

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