1. Wiki
  2. /Items
  3. /minecraft:max_stack_size

minecraft:max_stack_size

Don't want to write this by hand? GodCraft sets minecraft:max_stack_size for you with a switch.Get GodCraft

Overview

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

FieldTypeDefaultDescription
valueinteger1The 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
  }
}

Items: Behavior pack

We use cookies to improve your experience and analyse site traffic. Learn more