Blocks
Trainer Spawner
The Trainer Spawner is a craftable block that allows to define a spot for a specific trainer to spawn.
A Trainer Spawner must be configured to specify the target trainer. This can be achieved by right clicking the block with any of the pre-defined items for the desired trainer. Note that the item in the center will be lost if the block is broken.
The items supported by a Trainer Spawner (and the trainers they spawn) are configurable (see trainerSpawnerItems
) yet the default configuration provides definitions for all trainers that are required for the progression. The Trainer Card will show a list of all possible items for trainers that can be spawned with the Trainer Spawner.
The screenshot above shows that the next key trainer (obfuscated name) can be spawned with a Trainer Spawner that has been configured with a
Hard Stone
.
The Trainer Spawner follows similar rules as the Trainer Spawning System in the sense that it will lower the chance to spawn trainers based of the level difference to players (see maxLevelDiff
) and wether players meet the conditions to fight them or not.
Other notable features:
- Trainers will have a matching Trainer Spawner nearby set as their
HomePos
(this is the case for any trainers, regardless if spawned by the spawner or any other means). - For trainers to spawn on (or track to) a Trainer Spawner the
2
blocks above it must beair
(this allows to easily toggle a Trainer Spawner using Redstone). - Like the natural spawning system the Trainer Spawner will never spawn a trainer if another entity with the same trainer identity already exists in the world.
- The range of a Trainer Spawner is 2/3 of
maxHorizontalDistanceToPlayers
.