Trial spawner
How to Craft / Obtain
Uses for this Item (Recipes Including This)
This item is not used as an ingredient in any known crafting recipes.
About
A trial spawner is a specialized type of spawner natively found within every chamber and corridor of trial chambers, excluding entrance and intersection rooms. Players can also obtain them using the Creative inventory, pick block, or by executing commands. When placed, no tool can accelerate the breaking process, and destroying a trial spawner yields no drops. Furthermore, trial spawners cannot be pushed or pulled by pistons or sticky pistons, and they emit a light level of 4 while in waiting mode, increasing to 8 when active. During an ominous trial, a trial spawner will convert into an active ominous trial spawner, even if it was previously on cooldown.
The activation of a trial spawner requires a player in Survival or Adventure mode to come within a 14-block range where the distance between the player center and spawner center is less than the required range, accompanied by a direct line of sight that cannot pass through visual boxes. When first activated, it shoots spark-like particles into the air, and while active, it emits smoke and flame particles around itself and its summoned entities, though the surrounding light level does not affect entity summoning. The spawner attempts to spawn one mob every 40 game ticks for manually placed variants, or every 20 game ticks for standard chambers and 160 game ticks for slow versions. Spawning ceases once the simultaneous mob count or total mob count is reached, and spawned mobs do not naturally despawn unless specific chunk conditions allow.
Both the simultaneous mob count and total mob count scale upward with additional players, increasing by 1 for simultaneous count and 2 for total count per extra player, though these values do not scale back down if a player leaves detection range. Naturally generated spawners use different preset values, such as breeze spawners allowing 1 breeze initially and stopping after 2 mobs, or baby zombie spawners allowing 2 baby zombies and stopping after 6 mobs. All mobs spawn in positions with a line of sight to the trial spawner within a 4-block spherical radius, adhering to standard mob spawning rules while differing from classic monster spawners that feature larger rectangular spawning boxes and no line-of-sight requirements.
Once summoned mobs are defeated by being killed, entering a block, transitioning dimensions, or transforming, the trial spawner enters a 30-minute cooldown state that ticks down even if unloaded. Defeated mobs trigger the spawner to wait 40 ticks and then eject random items every 30 ticks for each detected player. There is a 50 percentage chance of dropping a trial key for all players, while the remaining 50 percentage chance drops one of the other items from the table for each individual player. Custom trial spawners can be configured using spawn eggs, and naming a spawn egg on an anvil before use ensures all spawned mobs carry that name.
During an ominous trial, any player with Bad Omen within the activation range triggers the Trial Omen effect, converting nearby trial spawners into ominous trial spawners. This conversion instantly despawns existing mobs and skips any active cooldown periods unless the spawner was already ominous. Hand-placed trial spawners contain both spawn_potentials and spawn_data, and while right-clicking with a spawn egg updates spawn_data, altering spawn_potentials without removing spawn_data causes the spawner to break and stop functioning. Additionally, trial spawners can successfully eject their loot even if all spawned mobs were converted to other variants instead of being formally defeated.