Trial spawner configuration is used to configure a trial spawner.
Trial spawner configurations can be defined in data packs, as part of the directory structure below.
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
- [NBT List / JSON Array] loot_tables_to_eject: Defaults to a list of
minecraft:spawners/trial_chamber/consumables and minecraft: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.
- [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.