# Dynasty Spawn
**Control mob spawning per town, district or custom zone. Towns are safe: monsters can't break a single block inside them.**
Made for the Dynasty Craft RPG server (Fabric 1.21.1). **Server-side only**: players don't need to install anything.
## Features
### 🎚️ Spawn rates per place
Set a spawn rate on any place, from `none` to 300%:
- **Towns** from Dynasty Villes
- **Districts** from Dynasty Home Sweet Home
- **Custom zones**: a circle around you, any radius
- **Everywhere** (global rate)
Rates can target **all mobs**, **monsters only** or **animals only**. When places overlap, the most precise one wins: zone > district > town > everywhere.
The rate applies to natural spawning (vanilla and modded mobs) and to special spawns: phantoms, pillager patrols, zombie sieges, cats and the wandering trader. Spawners, spawn eggs and `/summon` are not affected.
### 🛡️ Monster-proof towns
A monster that spawns elsewhere and walks into a town, district, house or zone **cannot damage any block**, even during a fight:
- no creeper, ghast or wither explosion damage
- no endermen stealing blocks
- no zombies breaking doors, ravagers breaking leaves or blazes setting fires
- no trampled crops, no silverfish infesting stone
Players, villagers (farmers still harvest), golems and animals are not affected.
### 🗺️ What counts as a town?
- Its Dynasty Home districts and houses
- Chunks claimed with **Open Parties and Claims** by its residents (FTB Teams party)
- Optionally, OPAC server claims and a radius around the town center
## Commands (in French)
| Command | Effect |
|---|---|
| `/setspawn <place> <rate> [tous\|monstres\|animaux]` | Set a rate, e.g. `/setspawn MoonSisters Coven none` |
| `/setspawn ici` | Show what applies where you stand |
| `/setspawn liste` | List all rules and zones |
| `/setspawn retirer <place>` | Back to normal |
| `/setspawn zone creer <name> <radius>` | Create a zone around you |
| `/setspawn zone supprimer <name>` | Delete a zone |
| `/setspawn recharger` | Reload config |
Rates: `none`, `25%`, `50%`, `normal`, `150%`, `200%`, `x2`…
## Permissions (LuckPerms)
- `dynasty.spawn.admin`: everything, everywhere (op level 4 without LuckPerms)
- `dynasty.spawn.utiliser`: own town and its districts only (town founders)
## Requirements
- Fabric Loader ≥ 0.16, Fabric API, Minecraft 1.21.1
- Optional: Dynasty Villes, Dynasty Home Sweet Home, Open Parties and Claims, LuckPerms
## Config
`config/dynasty_spawn.json`: toggle each protection, default category, max rate, special spawns, founder restriction.
Rules are saved per world in `world/dynasty_spawn.json`.

