Item Stack v3 - RealMegaMinds/ActionInventoryMod GitHub Wiki
This is an object.
Looks like:
{
"item": "",
"count": 0,
"damage": 0,
"customNbt": "",
"customName": {},
"lore": [],
"color": 0,
"enchantments": {},
"hideFlags": [],
"attributes": []
}
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"
.
This is the number of items in the stack. This is an integer.
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.
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.
This is the display name of the item stack. This is a text object. See Common Types v3.
This is the lore for the item stack. This is an array of text. See Common Types v3.
This is the color of the item stack. Not all items use this. This is an int.
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
}
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"
These are the attributes that the item stack modifies. This is an array of objects. See Common Types v3.