Trial spawner configuration
Minecraft Wiki article. Categories: Java_Edition, Data_packs
📌 Mirrored from Minecraft Wiki
This article is reproduced from Trial spawner configuration on the Minecraft Wiki. Mirrored from revision 3259142. It is licensed CC BY-NC-SA 3.0 by the Minecraft Wiki contributors — not under the Codex’s CC BY-SA 4.0, and it may not be used commercially. Edits belong upstream, not here.
On this page
This feature is exclusive to Java Edition.
Trial spawner configuration is used to configure a trial spawner.
Definition
Trial spawner configurations can be defined in data packs, as part of the directory structure below.
data pack name.zip or
data pack name
pack.mcmeta
data
namespace
trial_spawner
<name>.json
- More directories…
JSON Format
Trial spawner configurations are defined using the following format:
- [NBT Compound / JSON Object] The root object.
- [Int] spawn_range: Between 1 and 128. Defaults to 4 — Maximum distance in blocks that mobs can spawn.
- [Float] total_mobs: Defaults to 6 — Total amount of mobs spawned before cooldown for a single player.
- [Float] simultaneous_mobs: Defaults to 2 — The amount of spawned mobs from this spawner that are allowed to exist simultaneously.
- [Float] total_mobs_added_per_player: Defaults to 2 — Amount of total mobs added for each additional player.
- [Float] simultaneous_mobs_added_per_player: Defaults to 1 — Amount of simultaneous mobs added for each additional player.
- [Int] ticks_between_spawn: Defaults to 40 — Time in ticks between spawn attempts.
- [NBT List / JSON Array] spawn_potentials: Defaults to an empty list — List of possible entities to spawn.
- [NBT Compound / JSON Object]: A potential future spawn. After the spawner makes an attempt at spawning, it chooses one of these entries at random and uses it to prepare for the next spawn.
- [Int] weight: The chance that this spawn gets picked in comparison to other spawn weights. Must be positive and at least 1.
- [NBT Compound / JSON Object] data
- Spawn Data see Template:Nbt inherit/spawn data/template
- [NBT Compound / JSON Object]: A potential future spawn. After the spawner makes an attempt at spawning, it chooses one of these entries at random and uses it to prepare for the next spawn.
- [NBT List / JSON Array] loot_tables_to_eject: Defaults to a list of
minecraft:spawners/trial_chamber/consumablesandminecraft:spawners/trial_chamber/key, both with weight 1 — List of possible loot tables to give as reward.- [NBT Compound / JSON Object]: A potential loot table.
- [Int] weight: The chance that this loot table gets picked in comparison to other loot table weights. Must be positive and at least 1.
- [String] data: A resource location to a loot table.
- [NBT Compound / JSON Object]: A potential loot table.
- [String] items_to_drop_when_ominous: Defaults to
minecraft:spawners/trial_chamber/items_to_drop_when_ominous— A resource location to a loot table. Determines the items used by ominous item spawners spawned during the active phase when ominous. Ignored in normal mode.
History
| Java Edition | |||||||
|---|---|---|---|---|---|---|---|
| 1.21.2 | 24w35a | Trial spawner configurations can now be defined in datapacks, instead of only in the Trial spawner block entity | |||||
Navigation
Sources
- Trial spawner configuration — Minecraft Wiki, CC BY-NC-SA 3.0, revision 3259142.