minecraft:bundle_interaction for you with a switch.Get GodCraftOverview
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
| Field | Type | Default | Description |
|---|---|---|---|
num_viewable_slots | integer | 12 | How 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
}
}