Skip to main content

đŸ“Ļ Simple Storage Furniture

Simple Storage Furniture adds a chest-like inventory to a piece of furniture. Right-click to open a GUI where players can place and take items.

Example​

furniture:
default:storage_core:
behavior:
type: simple_storage_furniture
title: "<dark_gray>Storage Core" # GUI title, supports MiniMessage formatting (default "<lang:container.chest>")
rows: 3 # number of rows, 1~6 (default 1)
data_key: "craftengine:simple_storage_contents" # NBT key for persistent data (value shown is the default)
sounds:
open: minecraft:block.iron_trapdoor.open # sound played when GUI opens (optional)
close: minecraft:block.iron_trapdoor.close # sound played when GUI closes (optional)

Per-variant interaction hitboxes​

You can attach interaction hitboxes directly to a simple_storage_furniture behavior through variants.<variant>.hitboxes. These hitboxes belong to the behavior itself, not the furniture's default hitboxes, and only trigger this behavior's storage GUI.

This is useful when:

  • The furniture should have no default hitboxes (hitboxes: []), and each behavior defines its own clickable area.
  • You want multiple simple_storage_furniture behaviors on the same piece of furniture, each with a different data_key, creating independent storage slots.
furniture:
default:double_drawer:
settings:
item: default:double_drawer
variants:
ground:
elements:
- item: default:double_drawer
hitboxes: [] # no default furniture hitboxes
behavior: # list of furniture behaviors
- type: simple_storage_furniture
title: "<dark_gray>Left Drawer"
data_key: "left_drawer"
rows: 2
variants:
ground:
hitboxes:
- type: interaction
position: -0.25,0.5,0
width: 0.5
height: 1
interactive: true
- type: simple_storage_furniture
title: "<dark_gray>Right Drawer"
data_key: "right_drawer"
rows: 2
variants:
ground:
hitboxes:
- type: interaction
position: 0.25,0.5,0
width: 0.5
height: 1
interactive: true
FieldTypeRequiredDefaultDescription
variantsmapNo—Variant names mapped to a hitboxes list. These hitboxes are created by this behavior and open its storage GUI when clicked.