Spawn System
# I. Fixed Spawn Point Feature (spawns)
Configuration folder location: spawns
Used to define monster fixed spawn points, including coordinates, time, etc.
# Configuration Example
# This is a spawn point example file (spawns)
# Each spawn point binds to a template via mobId
# Spawn point key, customizable; final spawnId = filename#key
TestSpawnPoint:
# Corresponds to template key in mobs (pure key, globally unique)
mobId: "TestTemplate"
# Whether enabled
enable: true
# Spawn time in seconds
time: 10
# Last spawn time
lastSpawnTime: 0
# Spawn quantity
number: 1
# Maximum spawn quantity
maxNumber: 1
# Whether to show HD hologram countdown
hdTip: true
# Spawn level range
level: "10,30"
# Spawn coordinates
world: "world"
x: -321
y: 64.0
z: -7
# Configuration Details
# 1. Basic Configuration
- Spawn Point Key: Custom name, must be unique, final spawnId = filename#key
- mobId: Bound monster template key (corresponds to templates in mobs folder)
- enable: Whether to enable this spawn point
true: Enabledfalse: Disabled
# 2. Spawn Control
- time: Spawn interval time (unit: seconds)
- lastSpawnTime: Last spawn time (automatically recorded by system, no manual setup needed)
- number: Number of monsters spawned each time
- maxNumber: Maximum existence quantity, stops spawning when monster quantity in area reaches this value
# 3. Visual Effects
- hdTip: Whether to show hologram countdown
true: Show countdown hologramfalse: Do not show
# 4. Monster Level
- level: Spawn level range
- Format:
"min_level,max_level" - Example:
"10,30"means randomly spawn monsters level 10-30 - If level is defined in template, this can serve as a floating range
- Format:
# 5. Coordinate Configuration
- world: World name
- x: X-axis coordinate
- y: Y-axis coordinate
- z: Z-axis coordinate
# II. Quick Spawn Template Feature (fastSpawn.yml)
Configuration file location: fastSpawn.yml
Used to quickly generate preset monster combinations, suitable for events or temporary needs
# Configuration Example
# Soldier quick spawn template
soldier:
# Spawn time
time: 60
# Spawn quantity
number: 3
# Maximum quantity
maxNumber: 10
# Level
level: 1,20
# Elite quick spawn template
boss:
# Spawn time
time: 3600
# Spawn quantity
number: 1
# Maximum quantity
maxNumber: 1
# Level
level: 100
# Configuration Details
# 1. Basic Configuration
- Template Key: Custom name, used for command invocation
- time: Spawn interval time (unit: seconds)
- number: Number of monsters spawned each time
- maxNumber: Maximum existence quantity
# 2. Monster Level
- level: Level range
- Format:
"min_level,max_level" - Example:
1,20means level 1-20 - Single number:
100means fixed level 100
- Format:
# III. Notes
Relationship between mobs and spawns
- mobs define monster abilities (skills, attributes, etc.)
- spawns define spawn locations and times
- Both work together to achieve complete functionality
ID Naming Rules
- All keys must be globally unique
- Avoid using special characters
- Chinese or English is recommended