Skip to main content

Crate Option

The crate option lets administrators create placeable structure items.

A crate is usually an item that, when placed or activated, creates a Structory structure in the world.

Basic format

options:
crate:
item:
material: CHEST
name: "Altar Crate"
lore:
- "Place this item to create an altar."
direction: DIRECT
consume: true
auto-activate: false

Main fields

FieldDescription
itemItem shown/given as the crate.
directionHow placement direction is calculated.
consumeWhether the crate item is consumed when used.
soundOptional sound played on crate use.
auto-activateWhether the crate activates automatically.
auto-activate-offsetOffset used for automatic activation.
overrideHow existing blocks are handled.
dropWhat happens when the structure is removed or repacked.
buildBuilder instructions used to place the structure.

Direction values

ValueAliasMeaning
OPPOSITEOOpposite of player direction.
DIRECTDSame as player/structure direction.
LEFTLRotated left.
RIGHTRRotated right.
NORTHNFixed north.
SOUTHSFixed south.
EASTEFixed east.
WESTWFixed west.

Override behavior

The override field controls what happens if blocks are already present where the crate wants to build.

Common modes:

ModeMeaning
checkOnly place if the area is clear.
replaceReplace existing blocks.
dropBreak existing blocks naturally before building.

Use check for normal survival servers. Use replace or drop only where overwriting terrain is intended.

Drop behavior

The drop field controls what happens when a crate-built structure is removed.

Common modes:

ModeMeaning
none, empty, defaultDo not drop a special crate item.
dropBreak blocks naturally.
pack, repackRemove blocks and return the crate item.

Messages

Crates can define messages such as:

invalid-world-message: "You cannot place this structure in this world."
clear-message: "The area must be clear."
confirm-message: "Break again to confirm."
place-message: "Structure placed."

Use short, direct messages.

Build example

options:
crate:
item:
material: CHEST
name: "Small Altar Crate"
direction: DIRECT
consume: true
override: check
drop: repack
build:
levels:
level0:
level: 0
builders:
types:
A:
class: place
material: CRYING_OBSIDIAN
B:
class: place
material: AMETHYST_BLOCK
main:
- "ABA"
- " B "
- "ABA"

Recommendations

  • Use override: check unless you intentionally want crates to replace blocks.
  • Test each crate in all allowed worlds.
  • Keep messages clear for players.
  • Use validworlds together with crates if the structure should only be placeable in specific worlds.
  • Avoid very large crate-built structures until you have tested performance.