Stack Max
Information | |
---|---|
Type | Data Function |
Namespace | moxlib:api/helpers/inventory/stack_max |
Versions | 1.17+ |
Overview
Returns the maximum stack size of the given item id.
Example
data modify storage moxlib:api/helpers/inventory/stack_max target set value "minecraft:ender_pearl"
function moxlib:api/helpers/inventory/stack_max
Output of storage moxlib:api/helpers/inventory/stack_max
{
output: 16b
}
API
Expects
- String
target
A namespaced item id.
Returns
- Byte
output
The maximum stack size of the given item.