-
Notifications
You must be signed in to change notification settings - Fork 3
vault_randomizing_processor
finnsetchell edited this page Aug 15, 2026
·
2 revisions
Sets the loot table and key item on a placed vault, and clears the runtime state so the vault generates unopened. Use it to give vaults in your structures their own rewards without baking loot table ids into every NBT, and to keep one processor list shared across a set of rooms.
Requires MC 1.21 or later. The processor is not registered on the 1.20 branches.
{
"processor_type": "moogs_structures:vault_randomizing_processor",
"loot_table": "mmr:desert_mineshaft/vault",
"ominous_loot_table": "mmr:desert_mineshaft/vault_ominous"
}| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
loot_table |
resource location | yes | Loot table for normal vaults. | |
ominous_loot_table |
resource location | no | (falls back to loot_table) |
Loot table for ominous vaults. |
key_item |
item id | no | minecraft:trial_key |
Key that opens normal vaults. |
ominous_key_item |
item id | no | minecraft:ominous_trial_key |
Key that opens ominous vaults. |
Normal versus ominous is decided by the vault's ominous blockstate as saved in your NBT. The processor reads it and never changes it, so it cannot turn a normal vault ominous.
-
The two ominous fields fall back differently. Omit
ominous_loot_tableand ominous vaults reuse yourloot_table. Omitominous_key_itemand they fall back to vanillaminecraft:ominous_trial_key, not to yourkey_item. If you set a customkey_item, setominous_key_itemtoo or your ominous vaults will want a vanilla key. -
The key item is rewritten as a plain item. Any components you baked onto the key in the NBT (custom name, enchantments, custom data) are replaced by a bare id and a count of 1. Other
configvalues you set in the build world, like the display loot table or activation ranges, are kept. - Set the
ominousblockstate in the build world when you save the piece. Supplyingominous_loot_tablealone does nothing if no vault in the piece is ominous.
- Structure Processors overview.
-
trial_spawner_randomizing_processorfor the trial spawners that usually sit alongside vaults.
Getting started
Core concepts
- pillar
- spawner_randomizing
- trial_spawner_randomizing
- vault_randomizing
- equip_armor_stand
- close_off_fluid_sources
- flood_with_water
- remove_floating_blocks
- random_replace_with_properties
- super_gravity
Advanced
- versioned_single_pool_element
- Nether jigsaw structures
- Enhanced terrain adaptation
- Entity processor framework
- Debug commands
- Advanced Topics
Examples