Skip to content

Item Count

Provides how many items are in an item stack.

Type ID: kaya:item/count

Format

Field Type Default Description
item Item Provider The item stack to get the amount of items of.

Example

{
    "type": "kaya:item/count",
    "item": "item_in_container"
}

This example provides the amount of items of the item stack provided by the kaya:item_in_container context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.