Customize Visitor Spawn Rates and Behavior
Accessing Configuration
The mod's behavior is controlled through a configuration file. Use /visitors reload to apply changes immediately without restarting your world.
Key Settings to Adjust
Spawn Frequency: spawnCheckIntervalSeconds controls how often the mod checks whether to spawn new visitors.
Population Requirements: minVillagersForSpawn and minGolemsForSpawn set the thresholds your settlement must meet.
Spawn Limits: maxSpawnsPerCycle caps how many visitors can arrive in one spawn cycle, and maxWanderingVisitors limits total wandering guests in the area.
Baby Visitors: minAdultsForBaby sets how many adult visitors must be present before babies spawn, and babySpawnPercentage adjusts how often babies appear.
Trading: defaultVisitorTradeChance changes the likelihood that generic visitors will offer trades.
Testing Changes
After editing the config, run /visitors reload to apply changes. Use /visitors population <qty> <radius> to test spawn behavior without waiting for natural cycles.