Описание
# Tensura Race Spawn Settings
(Tensura Race Spawns or just TRSS for short)
A small addon for **Tensura Reincarnated** that lets you configure custom spawn locations for each race.
The main idea is simple: different races can start in different dimensions, biomes, or structures. This also works with races added by other addons, as long as you know their registry id.
## What it does
The addon can:
- set a race-specific initial spawn point;
- search for configured biomes (or tags);
- search for configured structures (or tags);
- optionally use **Async Locator Refined** for async biome/structure search;
- assign found spawn locations to specific players if configured;
Configuration is stored in:
```text
config/tensura/race_spawns.toml
```
Example:
```toml
[settings]
spawnRadius=6400
useAsyncLocator=true
[Races]
[Races.slime]
spawnDimension="minecraft:overworld"
spawnBiome=["#minecraft:is_overworld"]
spawnStructure=[]
onlyInitial=true
assignedToPlayer=false
[Races."exampleaddon:custom_race"]
spawnDimension="minecraft:overworld"
spawnBiome=["minecraft:swamp", "#is_taiga"]
spawnStructure=["#minecraft:village", "minecraft:mineshaft"]
onlyInitial=false
assignedToPlayer=true
```
## Config behavior
Empty values mean “ignore this option and use the default spawn logic”.
```toml
spawnDimension=""
spawnBiome=[]
spawnStructure=[]
```
If all three spawn fields are empty, the player uses the normal world spawn.
`onlyInitial=true` means the found point is used like a normal `/spawnpoint` or bed spawn.
`onlyInitial=false` makes the configured spawn behave more like a personal world spawn for that player.
`assignedToPlayer=true` prevents the same configured biome/structure location from being reused for another player.
Also you can hot-reload your config in-game:
```mcfunction
/tensuraracespawns reload
```
## Optional dependency
- [Async Locator Refined](https://modrinth.com/project/LUIHK4LD) is optional, but highly recommended. The addon should still work without it.