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

minecraft:bundle_interaction

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

Overview

minecraft:bundle_interaction is an item component: it goes in the components object of a custom item. Gives the item bundle behavior: the special open and close controls and a tooltip showing what is inside. The item also needs minecraft:storage_item to hold things.

It is experimental: it only works in worlds with the matching experiment turned on, and it may change in future versions.

Fields

FieldTypeDefaultDescription
num_viewable_slotsinteger12How many stored items the tooltip shows at once, from 1 to 64.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:bundle_interaction": {
    "num_viewable_slots": 12
  }
}

Items: Behavior pack

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