Trial Spawner

Revision as of 03:16, 2 January 2025 by 砂塵嵐 (talk | contribs) (improved Infobox)
Jump to navigation Jump to search
For the more difficult variant, see Ominous Trial Spawner. For other uses, see Monster Spawner.
Trial Spawner
Renewable

No

Stackable

Yes (64)

Tool

None

Blast resistance

50

Hardness

50

Luminous
  • Yes, when not inactive
    • Waiting for players: 4
    • Active: 8
Transparent

Partial

Flammable

No

Catches fire from lava

No

Map color (Java)


  11 STONE

A trial spawner is a type of spawner found only within trial chambers. It spawns mobs in waves, which increase in number the more Survival/Adventure mode players are nearby. When all of its spawned mobs are defeated, it ejects a combination of consumable items and/or trial keys, then goes inactive for 30 minutes. It cannot be obtained as an item or moved by a piston. A trial spawner converts into an ominous trial spawner during an ominous trial.

Obtaining

Trial spawners cannot be obtained in Survival, even with Silk Touch, and can not be moved with a piston.

Natural generation

Trial spawners generate naturally in every chamber and every corridor of trial chambers, except for the entrance chamber.

Breaking

A trial spawner can be broken but it does not drop itself as an item and takes a long time to break. It can be obtained only via the Creative inventory, the /give command, or by using pick block whilst in creative mode.

Due to their high blast resistance, trial spawners are immune to explosions, but can still be destroyed by the ender dragon, the wither's block-breaking attack and blue wither skulls.

Block Trial Spawner
Hardness 50
Breaking time (secs)
Default 250
Legend
  • incorrect tool, drops nothing
  • correct tool, drops nothing or something other than the block itself
  • correct tool, drops the block itself
  • italicized can be instant mined

Usage

A trial spawner summons a limited number of mobs, scaled based on the number of nearby players. When these mobs are defeated, the spawner drops a reward for each player and enters a cooldown period.

Activation

The trial spawner has a required player range of 14 blocks. Any player in Survival or Adventure mode activates the spawner if the distance between the player's center and the spawner's center becomes less than the required player range, and the spawner has a direct line of sight to the player. Once activated, the spawner begins summoning copies of the mob set in it, and no longer requires the player to be within range or maintain line of sight.

The line of sight check for trial spawners can pass through transparent solid blocks, such as copper grates and glass. This differs from the line of sight check for hostile mobs, which cannot pass through these blocks.

Trial spawners do not activate if the game rule doMobSpawning is false.[1]

When a trial spawner first activates, it shoots spark-like particles up into the air. While active, it emits smoke and flame particles around itself and any entities it summons.

The light level around a trial spawner does not affect how it summons entities.

Mob spawning

A breeze and two skeletons spawning from a trial spawner.

When a player enters the trial spawner's range, the spawner attempts to spawn 1 mob every 40 game ticks (2 seconds). With 1 player, it does not spawn a mob if there are already 2 mobs from the spawner that are still alive. It spawns a total of 6 mobs before ejecting loot and going into cooldown. The number of living mobs required to prevent further mob spawning is called the simultaneous mob count. The number of mobs spawned before going into cooldown is the total mob count. These numbers are summarized in § Spawning values.

This duration of time between each mob being spawned is the spawn interval. If the spawner can't spawn a mob, it waits for the duration of the spawn interval and tries again. Once the number of living mobs spawned by the spawner has reached the simultaneous mob count, it stops trying to spawn mobs. Mobs spawned by the spawner do not naturally despawn, but the spawner does not detect or count living mobs from unloaded chunks. Therefore, moving mobs into unloaded chunks causes them to build up and the spawner to continue spawning more.

A trial spawner also stops spawning mobs if the number of living mobs spawned by it reached the total mob count. The spawner doesn't need to detect these mobs being alive, and therefore still counts them if they are in unloaded chunks. The spawner detects the death of the mobs only for the total mob count, and it always detects the death of the mobs even if it is not in a loaded chunk.

Both the simultaneous mob count and the total mob count increase if another player comes within the spawner's range. For each additional player present, the simultaneous mob count increases by 1, and the total mob count increases by 2. For example, with 2 players, 8 mobs spawn in total with 3 at once, and with 3 players, 10 mobs spawn in total with 4 at once.

If a player leaves the detection range of a trial spawner, these values do not scale back down.

The values described above are the default values used when trial spawners are placed manually. Naturally generated spawners in trial chambers use different values. Additionally, these numbers can be configured by modifying the block's NBT data.

Naturally generating trial spawners in trial chambers use different values for the spawn interval, the total mob count, and the simultaneous mob count. The quantity that the last 2 values change by with additional players is also different for different types of spawners. All naturally generated spawners attempt to spawn mobs every 20 game ticks (1 second), or every 160 game ticks (8 seconds) for the slow versions of the spawners. Additionally, naturally generated breeze spawners allow 1 breeze to exist at once (+0.5 for each additional player present) and stop after spawning 2 mobs (+1 for each additional player present). Baby zombie spawners allow 2 baby zombies to exist at once (+0.5 for each additional player present) and stop after spawning 6 mobs (+2 for each additional player present). All other spawners generated in trial chambers use the default value of 6 total mobs, plus 2 for each additional player present, and 3 simultaneous mobs, plus 2 for each additional player present. This is summarized in § Spawning values.

Spawning values

Type Spawn interval Total mobs (base) Total mobs added per player Simultaneous mobs (base) Simultaneous mobs added per player
Default values 40 game ticks (2 seconds) 6 2 2 1
Breeze 20 game ticks (1 second) 2 1 1 0.5
Baby zombie 20 game ticks (1 second) Default Default Default 0.5
All others in trial chambers 20 game ticks (1 second) Default Default 3 0.5
Slow versions (those that appear in chamber_8) 160 game ticks (8 seconds) Default Default 4 2

Mobs spawn in positions that have a line of sight to the spawner, in a 4-block spherical radius. This is different from the monster spawner, which has a larger, rectangular spawning box, and no line-of-sight requirement. Otherwise, the standard mob spawning rules apply (mobs cannot collide with blocks, guardians and elder guardians spawn only in water, etc.)

Completion

All mobs spawned by the trial spawner must be defeated before the trial spawner can drop loot. A mob is considered defeated when is either killed or transformed into another entity (excepting the transformation of creepers into charged creepers; the charged creeper must be defeated before completion of the trial spawner).

If a mob spawns more mobs upon death, only the initial mob must be defeated to complete the spawner (i.e. slimes and magma cubes).

Cooldown

Upon completion, the trial spawner enters a cooldown state for 30 minutes (36000 game ticks) before it can be activated again.[2]

Custom trial spawners

Using a spawn egg on a trial spawner sets the trial spawner's type to that egg's entity.

Trial spawners placed by players have the same loot data as those found in trial chambers.

Loot

When all mobs have been killed, the spawner waits 40 ticks (2 seconds). Then, every 30 ticks (1.5 seconds), it ejects random items from the loot table. It does this for every detected player. It has a 50% chance of picking the trial key, in which case it drops for all players. The other 50% of the time it drops one of the other items for each player. In Java Edition and Bedrock Edition, each trial chambers trial spawner contains 1 item stack, with the following distribution:

Item Stack Size [A] Weight [B] Chance [C] Avg.
per spawner
[D]
[hide] Avg. # spawners
to defeat
[E]
Trial Key 1102050.0%0.5002.0
Bread 1–332015.0%0.3006.7
Cooked Chicken 132015.0%0.1506.7
Baked Potato 1–322010.0%0.20010.0
Potion of Regeneration 11205.0%0.05020.0
Potion of Swiftness 11205.0%0.05020.0
  1. The size of stacks (or for unstackable items, number) of this item on any given roll.
  2. The weight of this item relative to other items in the pool.
  3. The odds of finding any of this item in a single chest.
  4. The number of items expected per chest, averaged over a large number of chests.
  5. The average number of chests the player should expect to search to find any of this item.

Ominous trial

Main article: Ominous Trial Spawner

A player with Bad Omen that is within the activation range of a trial spawner is given the Trial Omen effect, starting an ominous trial. During an ominous trial, trial spawners near a player with Trial Omen are converted into ominous trial spawners. When a trial spawner becomes ominous, all of its existing mobs are despawned. If the spawner was on cooldown and was not ominous before going on cooldown, the cooldown is skipped when becoming ominous.

Sounds

Generic

Java Edition:

[hide]BlockSprite trial-spawner.png: Sprite image for trial-spawner in Minecraft trial_spawner sound type
SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
​Block brokenBlocksOnce the block has been brokenblock.trial_spawner.breaksubtitles.block.generic.break0.90.816
​Block placedBlocksWhen the block is placedblock.trial_spawner.placesubtitles.block.generic.place1.00.816
​Block breakingBlocksWhile the block is in the process of being brokenblock.trial_spawner.hitsubtitles.block.generic.hit0.250.516
​Something falls on a blockEntity-DependentFalling on the block with fall damageblock.trial_spawner.fallsubtitles.block.generic.fall0.50.7516
​FootstepsEntity-DependentWalking on the blockblock.trial_spawner.stepsubtitles.block.generic.footsteps0.151.016

Bedrock Edition:

[hide]BlockSprite trial-spawner.png: Sprite image for trial-spawner in Minecraft trial_spawner sound type
SoundSourceDescriptionResource locationVolumePitch
BlocksOnce the block has brokentrial_spawner.break1.00.8
BlocksWhen the block is placedtrial_spawner.place1.00.8
BlocksWhile the block is in the process of being brokentrial_spawner.hit0.380.5
BlocksFalling on the block with fall damagetrial_spawner.step0.41.0
BlocksWalking on the blocktrial_spawner.step0.151.0
BlocksJumping from the blocktrial_spawner.step0.121.0
BlocksFalling on the block without fall damagetrial_spawner.step0.21.0

Unique

Java Edition

[hide]Sounds
SoundSubtitlesSourceDescriptionResource locationTranslation keyVolumePitchAttenuation
distance
​Trial Spawner cracklesBlocksRandomly while activeblock.trial_spawner.ambientsubtitles.block.trial_spawner.ambient0.75-1.00.5-1.516
​Trial Spawner charges upBlocksWhen a trial spawner is approached by a valid playerblock.trial_spawner.detect_playersubtitles.block.trial_spawner.detect_player1.0Varies[sound 1]16
​Trial Spawner spawns a mobBlocksWhen a trial spawner spawns a mobblock.trial_spawner.spawn_mobsubtitles.block.trial_spawner.spawn_mob1.00.8-1.216
​Trial Spawner opensBlocksWhen a trial spawner's shutter opensblock.trial_spawner.open_shuttersubtitles.block.trial_spawner.open_shutter1.01.016
​Trial Spawner closesBlocksWhen a trial spawner's shutter closesblock.trial_spawner.close_shuttersubtitles.block.trial_spawner.close_shutter1.01.016
​Trial Spawner ejects itemsBlocksWhen a trial spawner ejects an itemblock.trial_spawner.eject_itemsubtitles.block.trial_spawner.eject_item1.00.8-1.216
​Omen engulfs Trial SpawnerFriendly CreaturesWhen a trial spawner becomes ominousblock.trial_spawner.ominous_activatesubtitles.block.trial_spawner.ominous_activateVaries[sound 2]0.8-1.216
  1. Can be 0.8-1.2 or 0.76-1.14 for each sound
  2. Plays two sounds of 0.3 and 1.0 simultaneously

Bedrock Edition:

[hide]Sounds
SoundSourceDescriptionResource locationVolumePitch
BlocksRandomly while activetrial_spawner.ambient0.75-1.00.5-1.5
BlocksWhen a trial spawner is approached by a valid playertrial_spawner.detect_player1.00.76-1.14
BlocksWhen a trial spawner spawns a mobtrial_spawner.spawn_mob1.00.8-1.2
BlocksWhen a trial spawner's shutter openstrial_spawner.open_shutter1.01.0
BlocksWhen a trial spawner's shutter closestrial_spawner.close_shutter1.01.0
BlocksWhen a trial spawner ejects an itemtrial_spawner.eject_item1.00.8-1.1
BlocksWhen a trial spawner becomes ominoustrial_spawner.charge_activate1.01.0

Data values

ID

Java Edition:

NameIdentifierForm[hide]Translation key
BlockSprite trial-spawner.png: Sprite image for trial-spawner in Minecraft Trial Spawnertrial_spawnerBlock & Itemblock.minecraft.trial_spawner
Name[hide]Identifier
BlockSprite trial-spawner.png: Sprite image for trial-spawner in Minecraft Block entitytrial_spawner

Bedrock Edition:

NameIdentifierNumeric ID FormItem ID[i 1][hide]Translation key
BlockSprite trial-spawner.png: Sprite image for trial-spawner in Minecraft Trial Spawnertrial_spawner-315Block & Giveable Item[i 2]Identical[i 3]tile.trial_spawner.name
  1. ID of block's direct item form, which is used in savegame files and addons.
  2. Available with /give command.
  3. The block's direct item form has the same ID as the block.
Name[hide]Savegame ID
BlockSprite trial-spawner.png: Sprite image for trial-spawner in Minecraft Block entityTrialSpawner

Block states

See also: Block states

Java Edition:

Name Default value Allowed values [hide]Description
ominousfalse false
true
Controls whether this trial spawner is an ominous trial spawner.
trial_spawner_stateinactive activeWhen the spawner is active.
cooldownWhen the spawner is on cooldown.
ejecting_rewardWhile ejecting reward.
inactiveWhen no mob is set.
waiting_for_playersWhen no players are nearby, not on cooldown, and a mob is set.
waiting_for_reward_ejectionPrior to reward ejection.

Bedrock Edition:

NameMetadata Bits Default value Allowed valuesValues for
Metadata Bits
[hide]Description
ominousNot Supportedfalsefalse
true
UnsupportedControls whether this trial spawner is an ominous trial spawner.
trial_spawner_stateNot Supported0 0UnsupportedWhen no mob is set.
1UnsupportedWhen no players are nearby, not on cooldown, and a mob is set.
2UnsupportedWhen the spawner is active.
3UnsupportedPrior to reward ejection.
4UnsupportedWhile ejecting reward.
5UnsupportedWhen the spawner is on cooldown.


Block data

A trial spawner has a block entity associated with it that holds additional data about the block.

Java Edition:

  • [NBT Compound / JSON Object] Block entity data
    • Tags common to all block entities see Template:Nbt inherit/blockentity/template[show]
    • [Int] required_player_range: Between 1 and 128. Defaults to 14. — Maximum distance in blocks for players to join the battle.
    • [Int] target_cooldown_length: Defaults to 36000. — Time in ticks of the cooldown period. Includes the time spend dispensing the reward.
    • [String][NBT Compound / JSON Object] normal_config: (optional) An [String] ID of a Trial spawner configuration definition or a [NBT Compound / JSON Object] NBT Compound with raw SNBT data; see configuration for defaults. — The configuration to use when not ominous.
    • [String][NBT Compound / JSON Object] ominous_config: (optional) An [String] ID of a Trial spawner configuration definition or a [NBT Compound / JSON Object] NBT Compound with raw SNBT data; see configuration for defaults. — The configuration to use when ominous.
      The following fields are used to keep track of the current state of the trial spawner.
    • [NBT List / JSON Array] registered_players: A set of player UUIDs. — All the players that have joined the battle. The length of this array determines the amount of mobs and amount of reward.
      • [Int Array]: A UUID.
    • [NBT List / JSON Array] current_mobs: A set of mob UUIDs. — The mobs that were spawned by this spawner and are still alive.
      • [Int Array]: A UUID.
    • [Long] cooldown_ends_at: Gametime in ticks when the cooldown ends. 0 if not currently in cooldown.
    • [Long] next_mob_spawns_at: Gametime in ticks when the next spawn attempt happens. 0 if not currently active.
    • [Int] total_mobs_spawned: The total amount of mobs that have already been spawned in this cycle. 0 if not currently active.
    • [NBT Compound / JSON Object] spawn_data: The next mob to attempt to spawn. Selected from [NBT List / JSON Array] spawn_potentials after the last attempt. Determines the mob displayed in the spawner.
    • [String] ejecting_loot_table: A resource location to the loot table that is given as reward. Unset if not currently giving rewards. Selected from [NBT List / JSON Array] loot_tables_to_eject after all mobs are defeated.

Bedrock Edition:

See Bedrock Edition level format/Block entity format.

Advancements

IconAdvancementIn-game descriptionActual requirements (if different)
How Did We Get Here?Have every effect applied at the same time

The source of the effects is irrelevant for the purposes of this advancement. Other status effects may be applied to the player, but are ignored for this advancement.

This is a hidden advancement, meaning that it can be viewed by the player only after completing it, regardless of if its child advancement(s), if any, have been completed.

Video

History

October 15, 2023 Trial spawners are announced at Minecraft Live 2023.
[hide]Java Edition
1.20.3
Experiment
Update 1.21
23w45a Added trial spawners.
1.20.5
Experiment
Update 1.21
24w04aNo longer ignores the custom_spawn_rules data field.
24w11aNow appears more frequently in the trial chambers corridors.
24w13aCan now become an ominous trial spawner if the player who activates it has trial omen.
The ejected loot table has been modified.
Now increase the amount of mobs present at once by 0.5 for each additional player instead of 2.
Baby Zombie spawners now have 2 mobs present at once to start with instead of 3.
Can now activate only when a player is in line of sight.
Pre-release 1 Updated textures to match ominous trial spawners.
1.2124w18aTrial spawners are now available without using the "Update 1.21" experimental data pack.
24w19a Updated textures to be more consistent across all states as well as the ominous trial spawner.
Pre-release 2 Updated bottom texture to match Bedrock Edition.
[hide]Bedrock Edition
1.20.60
Experiment
Update 1.21
Preview 1.20.60.20 Added trial spawners.
1.21.0
Experiment
Update 1.21
Preview 1.21.0.20Can now become an ominous trial spawner if the player who activates it has trial omen.
Can now activate only when a player is in line of sight.
1.21.0Preview 1.21.0.22Trial spawners are now available without using the "Update 1.21" experimental toggle.
Updated textures to match ominous trial spawners as well as introduce a new design for the bottom face.
1.21.20Preview 1.21.10.20 Updated textures to be more consistent across all states as well as the ominous trial spawner.
1.21.30Preview 1.21.30.22Trial spawner collision size is now a full block.[3]

Issues

Issues relating to "Trial Spawner" are maintained on the bug tracker. Issues should be reported and viewed there.

Trivia

  • Trial spawners placed by hand have both spawn_potentials and spawn_data data. Right clicking the trial spawner with a spawn egg changes its spawn_data. Changing its spawn_potentials without removing its spawn_data causes the trial spawner to stop functioning.
  • If there are multiple entities listed within the spawn_potentials data of a trial spawner, the icon displayed by the trial spawner reflects the next entity to be spawned.
  • The line of sight check for trial spawners was implemented to prevent mobs from spawning outside of the room, or outside trial chambers' structure, such as inside caves.[4]

Gallery

Renders

Development images

In other media

See also

References

  1. MC-266487 — Trial Spawners will not activate/spawn mobs if gamerule "doMobSpawning" is set to "false"
  2. MC-277624 — Trial Spawner still count down their 30 minutes cooldown when unloaded
  3. MCPE-178305
  4. "ALL ABOUT THE TRIAL CHAMBERS" – Minecraft on YouTube

External links

Navigation