Define monsters with stats, behaviors, and spawn rules.
Mobs & AI
The Mobs editor lets you create enemies and creatures. Each mob has combat stats, AI behavior, abilities, loot, and a visual appearance.
Creating a Mob
| Property | Description |
|---|---|
| Name | Display name (e.g., "Forest Slime") |
| HP, Mana | Health and mana pools |
| Attack, Defense | Physical combat stats |
| Magic Power, Magic Resist | Magical combat stats |
| Level | Mob level (affects XP granted and difficulty) |
| AI Behavior | How the mob acts (see below) |
| Abilities | Which attacks/spells it can use |
| Loot Table | What items it drops when defeated |
| Sprite | Visual appearance and animations |
| Light Emission | Optional glow effect |
AI Behaviors
| Behavior | Description |
|---|---|
| Aggressive | Attacks players on sight within its detection range |
| Docile | Won't attack unless attacked first |
| Cowardly | Flees when HP drops below a threshold |
| Patrolling | Walks a set route, attacks if provoked |
| Sleeping | Stationary until disturbed |
How Mob AI Works
Each mob follows a state machine:
- Idle — standing at spawn, looking for targets within its detection range
- Patrol — walking a predefined route
- Chase — running toward a detected player
- Combat — using abilities from its skill rotation
- Return — walking back to spawn if it gets too far away (leash range)
- Detection radius — how far the mob can spot players (in tiles)
- Leash range — max distance from spawn before it resets and walks back
- Flee threshold — HP percentage that triggers retreat for cowardly mobs
Monster Parties
Group up to 5 mobs into a Monster Party with assigned roles:
- Tank — high HP, draws attention
- Damage — high attack, less durable
- Support — heals or buffs other mobs
Spawn Rules
Control where and when mobs appear:
| Setting | Description |
|---|---|
| Zone | Which zone to spawn in |
| Biome | Only spawn in specific biomes (e.g., Desert only) |
| Max count | Maximum alive at one time |
| Respawn interval | Seconds between respawns after being killed |
| Time condition | Day only, night only, or any time |
| Weather condition | Only spawn during specific weather types |
Equipment
Mobs can equip up to 4 gear pieces, which affect their appearance and stats. Equipped items can also appear in the mob's loot table.