minecraft:max_stack_size for you with a switch.Get GodCraftOverview
minecraft:max_stack_size is an item component: it goes in the components object of a custom item. Sets how many of this item fit in one inventory slot.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
value | integer | 1 | The stack limit, from 1 to 64. Use 1 for tools and weapons, 16 for things like eggs.Range: 1 to 64 |
Example
Inside the components object of BP/items/<name>.json (values are the defaults or placeholders):
BP/items/<name>.json
{
"minecraft:max_stack_size": {
"value": 1
}
}