Skip to content

Item Count Max

Provides the maximum amount of items of an item stack.

Type ID: kaya:item/count/max

Format

Field Type Default Description
item Item Provider The item stack to get the maximum amount from.

Example

{
    "type": "kaya:item/count/max",
    "item": "used_item"
}

This example provides the max stack size of the item provided by the kaya:used_item context parameter.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.