Trial Spawner Config
Trial spawner configurations define the trial behavior of trial spawners (mob spawning + post-trial loot). Java Edition only.
Definition Format
Registry TRIAL_SPAWNER_CONFIG, data pack path trial_spawner (files in data/<namespace>/trial_spawner/; tags in tags/trial_spawner/).
items_to_drop_when_ominous— loot table for items inside ominous item spawners generated by active ominous trial spawners (defaultspawners/trial_chamber/items_to_drop_when_ominous).loot_tables_to_eject— weighted list of{data (loot table), weight (>0)}for post-trial rewards (default:spawners/trial_chamber/consumables+spawners/trial_chamber/key, weight 1). One table is drawn, then loot ejects once per participating player.simultaneous_mobs(≥0, default 2) — minimum simultaneously alive mobs (one player).simultaneous_mobs_added_per_player(≥0, default 1) — max simultaneous = ⌊t + p(n−1)⌋.spawn_potentials(default empty) — weighted list of{data (spawn data), weight (>0)}; after each spawn attempt the game picks the next spawn's data from it.spawn_range(1–128, default 4) — Chebyshev spawn range (closer to the spawner = more likely).total_mobs(≥0, default 6) — minimum total spawned (one player).total_mobs_added_per_player(≥0, default 2) — total = ⌊t + p(n−1)⌋.ticks_between_spawn(≥0, default 40) — min interval between spawn attempts.
Behavior
Definitions load once at server startup (restart required). The config sits in the trial spawner's block entity as normal_config (block state ominous false) or ominous_config (true); unset fields use defaults.
Loot Ejection
Both loot behaviors use the empty loot context — the tables must not use any loot context parameters. Ominous item spawners: one item generated with count 1. Post-trial rewards: one table drawn, items ejected once per participating player.