CobbleSpawnRegions
CobbleSpawnRegions 是 CobbleSpawners 的延续与替代品。
它延续了为服务器管理员提供更好控制 Cobblemon 生成机制的理念,但将其迁移至更灵活的基于区域的系统中。
CobbleSpawnRegions 是一款适用于 Cobblemon 的 Fabric 模组,允许服务器管理员和地图制作者通过区域来控制宝可梦的生成。创建自定义区域、限制自然生成、添加区域性宝可梦生成,并通过配置文件和游戏内 GUI 管理所有内容。
依赖项
功能
- 基于区域的生成控制:创建命名区域并控制其中 Cobblemon 的生成行为。
- 坐标与区块认领:使用认领棒(claim sticks)选择确切的方块位置或完整的基于区块的区域。
- 重叠区域的优先级系统:高优先级的区域优先控制重叠区域,较小区域作为平局时的决胜条件。
- 自然生成限制:完全禁用自然生成、阻止特定物种、屏蔽 Cobblemon 标签,或通过扫描条件字符串排除宝可梦。
- 玩家拥有的宝可梦豁免:可选地允许玩家拥有的宝可梦无视区域限制。
- 自定义区域生成:配置区域按计时器自动生成其专属的宝可梦。
- 生成数量控制:设置每个计时周期内一个区域尝试生成的宝可梦数量。
- 高级宝可梦自定义:配置物种、形态、方面、生成几率、几率类型、等级、个体值(IV)、努力值(EV)奖励、大小、携带物品、捕获规则、招式以及每条目的生成上限。
- 时间、天气与方块条件:根据昼夜、天气以及允许的生成方块(如
#solid、#water、#air 或特定方块 ID)限制生成。
- 区域与条目生成上限:限制每个区域和每个宝可梦条目的总存活自定义生成宝可梦数量。
- 留在区域内行为:生成的宝可梦可以使用随机、中心或最近的目标返回方式路径规划回到其所属区域。
- 捕获限制:使区域生成的宝可梦不可捕获,或将其限制为特定的精灵球。
- 自定义 EV 奖励:击败区域生成的宝可梦时,覆盖所 awarded 的努力值(EV)。
- 玩家激活范围:可选地在玩家靠近该区域之前暂停自定义生成。
- 受限的强制区块加载:可选地将区域区块强制加载至可配置的安全上限。
- 持久化生成追踪:跨区块卸载跟踪生成的宝可梦,以确保上限保持准确。
- GUI 管理:通过游戏内 GUI 管理区域、自然限制、自定义生成、宝可梦设置、标签、黑名单和全局选项。
- 管理员实用命令:传送至区域、检查附近的宝可梦、强制生成、克隆区域设置、添加/移除宝可梦条目以及清除已生成的宝可梦。
- 粒子可视化:切换区域可视化以在游戏内查看已认领的区域。
- 性能感知的生成扫描:生成点随时间从已加载的区块中扫描,而不是每次生成尝试都进行沉重的搜索。
命令
主要命令为 /csr。
| 命令 |
权限 |
描述 |
/csr giveclaimstick coords |
OP / 命令访问 |
给予一个坐标选择棒,用于精确选择方块位置。 |
/csr giveclaimstick chunk |
OP / 命令访问 |
给予一个区块选择棒,用于基于区块的区域选择。 |
/csr create <name> |
OP / 命令访问 |
根据当前选择棒的选区创建区域。 |
/csr clone <sourceRegion> <newName> |
OP / 命令访问 |
将源区域的设置和宝可梦条目复制到你当前的选择区域中。 |
/csr list |
OP / 命令访问 |
列出所有已配置的区域。 |
/csr info <regionId> |
OP / 命令访问 |
显示区域的详细信息。 |
/csr delete <regionId> |
OP / 命令访问 |
删除区域并清除其追踪数据。 |
/csr rename <regionId> <newName> |
OP / 命令访问 |
重命名区域的显示名称。 |
/csr visualize <regionId> |
OP / 命令访问 |
切换区域的粒子可视化效果。 |
/csr edit <regionId> |
OP / 命令访问 |
打开特定区域的编辑器 GUI。 |
/csr gui |
OP / 命令访问 |
打开主区域列表 GUI。 |
/csr teleport <regionId> |
OP / 命令访问 |
传送至区域的中心点。 |
/csr tp <regionId> |
OP / 命令访问 |
/csr teleport 的别名。 |
/csr priority <regionId> <value> |
OP / 命令访问 |
设置区域优先级,范围为 -1000 到 1000。 |
/csr addmon <region> <pokemon> [form] [aspects] |
OP / 命令访问 |
向区域添加一个默认的自定义宝可梦条目。 |
/csr removemon <region> <pokemon> [form] [aspects] |
OP / 命令访问 |
从区域中移除匹配的宝可梦条目。 |
/csr forcespawn <regionId> [amount] |
OP / 命令访问 |
立即尝试在区域中进行自定义生成。 |
/csr killspawned <regionId> [loaded|tracked] |
OP / 命令访问 |
移除已生成的宝可梦,或同时清除追踪的生成记录。 |
/csr setspawnamount <regionId> <amount> |
OP / 命令访问 |
设置每个生成周期该区域尝试生成的宝可梦数量。 |
/csr playeractivation <regionId> <true|false> [range] |
OP / 命令访问 |
切换玩家范围激活功能,并可选地设置范围。 |
/csr forcechunks <regionId> <true|false> [maxChunks] |
OP / 命令访问 |
切换区域的受限强制区块加载功能。 |
/csr inspectnearest |
OP / 命令访问 |
打印最近宝可梦的详细信息和条件字符串。 |
/csr check |
OP / 命令访问 |
显示控制你当前位置的区域。 |
/csr reload |
OP / 命令访问 |
重新加载配置文件并重建生成扫描数据。 |
配置
CobbleSpawnRegions 使用位于 config/cobblespawnregions/ 的多文件配置系统。
config.jsonc: 模组的全局设置。
/regions/: 每个已配置区域的独立 .jsonc 文件。
tracked_spawns.json: 区域生成宝可梦的持久化追踪数据。
全局设置
| 设置项 |
描述 |
debugEnabled |
启用详细的调试日志记录。 |
showUnimplementedPokemonInGui |
控制是否在选择 GUI 中显示未实现的物种。 |
showFormsInGui |
控制是否在 GUI 选择菜单中显示形态。 |
showAspectsInGui |
控制是否在 GUI 选择菜单中显示特性(Aspect)。 |
killTrackedPokemonOnServerStop |
服务器停止时移除已追踪的宝可梦。 |
区域设置
| 设置项 |
描述 |
regionId |
命令和配置文件中使用的内部 ID。 |
regionName |
在 GUI 和消息中显示的显示名称。 |
pos1 / pos2 |
区域的两个角点坐标。 |
dimension |
区域所属的维度。 |
mode |
创建模式:COORDS(坐标)或 CHUNK(区块)。 |
priority |
控制当区域重叠时哪个区域优先。 |
spawnTimerTicks |
自定义生成尝试之间的延迟(刻)。 |
spawnAmountPerSpawn |
每个生成周期尝试生成的宝可梦数量。 |
maxTotalSpawns |
该区域允许存在的最大自定义生成宝可梦数量。0 表示无限制。 |
requirePlayerInRange |
如果为 true,则仅在附近有待机玩家时才运行自定义生成。 |
playerActivationRange |
检查附近玩家的额外范围,相对于区域边界。 |
forceChunkLoading |
如果为 true,则强制加载区域区块直至配置的上限。 |
maxForceLoadedChunks |
该区域最多可强制加载的区块数量。 |
selectedPokemon |
该区域可以生成的自定义宝可梦条目列表。 |
spawnRestrictions |
自然生成限制设置。 |
自然生成限制
| 设置项 |
描述 |
disableAll |
阻止在此区域控制位置的所有 Cobblemon 自然生成。 |
excludeOwnedPokemon |
允许已拥有的宝可梦绕过限制。 |
disallowedSpecies |
禁止自然生成的物种 ID。 |
disallowedLabels |
禁止的 Cobblemon 标签。 |
exclusionConditions |
用于阻止自然生成的已扫描宝可梦属性字符串。 |
宝可梦条目选项
| 设置项 |
描述 |
pokemonName |
要生成的宝可梦物种。 |
formName |
可选的形态名称。 |
aspects |
可选的特性,例如闪光或形态相关特性。 |
spawnChance |
生成几率或权重。 |
spawnChanceType |
COMPETITIVE(竞争性)加权选择或 INDEPENDENT(独立性)百分比判定。 |
minLevel / maxLevel |
生成的宝可梦等级范围。 |
maxSpawnCount |
此条目允许的最大存活宝可梦数量。0 表示无限制。 |
spawnSettings |
时间、天气及允许生成的方块设置。 |
wanderingSettings |
在区域内停留的路径行为设置。 |
captureSettings |
可捕获性及所需的精灵球类型。 |
ivSettings |
可选的自定义个体值(IV)范围。 |
evSettings |
被击败时可选的自定义努力值(EV)奖励。 |
sizeSettings |
可选的最小/最大缩放修正值。 |
heldItemsOnSpawn |
可选的初始携带物品几率。 |
moves |
可选的自定义初始招式,包括强制指定的招式。 |
CobbleSpawnRegions
CobbleSpawnRegions is the continuation and replacement for CobbleSpawners.
It takes the same idea of giving server owners better control over Cobblemon spawning, but moves it into a more flexible region-based system.
CobbleSpawnRegions is a Fabric mod for Cobblemon that lets server owners and map makers control Pokémon spawning by region. Create custom areas, restrict natural spawns, add regional Pokémon spawns, and manage everything through configs and in-game GUIs.
Dependencies
Features
- Region-Based Spawn Control: Create named regions and control how Cobblemon spawning behaves inside them.
- Coordinate & Chunk Claiming: Use claim sticks to select exact block positions or full chunk-based regions.
- Priority System for Overlapping Regions: Higher-priority regions control overlapping areas first, with smaller regions used as a tie-breaker.
- Natural Spawn Restrictions: Disable natural spawns entirely, block specific species, block Cobblemon labels, or exclude Pokémon by scanned condition strings.
- Owned Pokémon Bypass: Optionally allow player-owned Pokémon to ignore region restrictions.
- Custom Regional Spawns: Configure regions to spawn their own Pokémon automatically on timers.
- Spawn Amount Control: Set how many Pokémon a region attempts to spawn each timer cycle.
- Advanced Pokémon Customization: Configure species, forms, aspects, spawn chance, chance type, levels, IVs, EV rewards, size, held items, capture rules, moves, and per-entry spawn caps.
- Time, Weather & Block Conditions: Limit spawns by day/night, weather, and allowed spawn blocks such as
#solid, #water, #air, or specific block IDs.
- Region and Entry Spawn Caps: Limit total live custom-spawned Pokémon per region and per Pokémon entry.
- Stay-In-Region Behavior: Spawned Pokémon can path back into their region using random, center, or closest return targeting.
- Capture Restrictions: Make region-spawned Pokémon uncatchable or restrict them to specific Poké Balls.
- Custom EV Rewards: Override EVs awarded when region-spawned Pokémon are defeated.
- Player Activation Range: Optionally pause custom spawning unless a player is near the region.
- Capped Force Chunk Loading: Optionally force-load region chunks up to a configurable safety cap.
- Persistent Spawn Tracking: Spawned Pokémon are tracked across chunk unloads so caps remain accurate.
- GUI Management: Manage regions, natural restrictions, custom spawns, Pokémon settings, labels, blocklists, and global options through in-game GUIs.
- Admin Utility Commands: Teleport to regions, inspect nearby Pokémon, force spawns, clone region settings, add/remove Pokémon entries, and clear spawned Pokémon.
- Particle Visualization: Toggle region visualization to see claimed areas in-game.
- Performance-Aware Spawn Scanning: Spawn points are scanned from loaded chunks over time instead of doing heavy searches every spawn attempt.
Commands
The primary command is /csr.
| Command |
Access |
Description |
/csr giveclaimstick coords |
OP / command access |
Gives a coordinate claim stick for selecting exact block positions. |
/csr giveclaimstick chunk |
OP / command access |
Gives a chunk claim stick for selecting chunk-based regions. |
/csr create <name> |
OP / command access |
Creates a region from your current claim stick selection. |
/csr clone <sourceRegion> <newName> |
OP / command access |
Copies a region's settings and Pokémon entries onto your current claim selection. |
/csr list |
OP / command access |
Lists all configured regions. |
/csr info <regionId> |
OP / command access |
Shows detailed information about a region. |
/csr delete <regionId> |
OP / command access |
Deletes a region and clears its tracking data. |
/csr rename <regionId> <newName> |
OP / command access |
Renames a region's display name. |
/csr visualize <regionId> |
OP / command access |
Toggles particle visualization for a region. |
/csr edit <regionId> |
OP / command access |
Opens the editor GUI for a specific region. |
/csr gui |
OP / command access |
Opens the main region list GUI. |
/csr teleport <regionId> |
OP / command access |
Teleports you to the center of a region. |
/csr tp <regionId> |
OP / command access |
Alias for /csr teleport. |
/csr priority <regionId> <value> |
OP / command access |
Sets region priority from -1000 to 1000. |
/csr addmon <region> <pokemon> [form] [aspects] |
OP / command access |
Adds a default custom Pokémon entry to a region. |
/csr removemon <region> <pokemon> [form] [aspects] |
OP / command access |
Removes a matching Pokémon entry from a region. |
/csr forcespawn <regionId> [amount] |
OP / command access |
Immediately attempts custom spawns in a region. |
/csr killspawned <regionId> [loaded|tracked] |
OP / command access |
Removes loaded spawned Pokémon, or clears tracked spawn records too. |
/csr setspawnamount <regionId> <amount> |
OP / command access |
Sets how many Pokémon the region attempts per spawn cycle. |
/csr playeractivation <regionId> <true|false> [range] |
OP / command access |
Toggles player-range activation and optionally sets the range. |
/csr forcechunks <regionId> <true|false> [maxChunks] |
OP / command access |
Toggles capped force chunk loading for a region. |
/csr inspectnearest |
OP / command access |
Prints details and condition strings for the nearest Pokémon. |
/csr check |
OP / command access |
Shows which region controls your current position. |
/csr reload |
OP / command access |
Reloads config files and rebuilds spawn scan data. |
Configuration
CobbleSpawnRegions uses a multi-file configuration system located in config/cobblespawnregions/.
config.jsonc: Global settings for the mod.
/regions/: Individual .jsonc files for each configured region.
tracked_spawns.json: Persistent tracking data for region-spawned Pokémon.
Global Settings
| Setting |
Description |
debugEnabled |
Enables detailed debug logging. |
showUnimplementedPokemonInGui |
Controls whether unimplemented species appear in selection GUIs. |
showFormsInGui |
Controls whether forms are shown in GUI selection menus. |
showAspectsInGui |
Controls whether aspects are shown in GUI selection menus. |
killTrackedPokemonOnServerStop |
Removes loaded tracked Pokémon when the server stops. |
Region Settings
| Setting |
Description |
regionId |
Internal ID used by commands and config files. |
regionName |
Display name shown in GUIs and messages. |
pos1 / pos2 |
The two corners of the region. |
dimension |
The dimension the region belongs to. |
mode |
Creation mode: COORDS or CHUNK. |
priority |
Controls which region wins when regions overlap. |
spawnTimerTicks |
Delay between custom spawn attempts. |
spawnAmountPerSpawn |
Number of Pokémon attempted each spawn cycle. |
maxTotalSpawns |
Maximum live custom-spawned Pokémon from this region. 0 means unlimited. |
requirePlayerInRange |
If true, custom spawning only runs when a player is nearby. |
playerActivationRange |
Extra range around the region bounds checked for nearby players. |
forceChunkLoading |
If true, force-loads region chunks up to the configured cap. |
maxForceLoadedChunks |
Maximum number of chunks this region may force-load. |
selectedPokemon |
List of custom Pokémon entries this region can spawn. |
spawnRestrictions |
Natural spawn restriction settings. |
Natural Spawn Restrictions
| Setting |
Description |
disableAll |
Blocks all natural Cobblemon spawns where this region controls the position. |
excludeOwnedPokemon |
Allows owned Pokémon to bypass restrictions. |
disallowedSpecies |
Species IDs blocked from naturally spawning. |
disallowedLabels |
Cobblemon labels to block. |
exclusionConditions |
Scanned Pokémon property strings used to block natural spawns. |
Pokémon Entry Options
| Setting |
Description |
pokemonName |
Pokémon species to spawn. |
formName |
Optional form name. |
aspects |
Optional aspects such as shiny or form-related aspects. |
spawnChance |
Spawn chance or weight. |
spawnChanceType |
COMPETITIVE weighted selection or INDEPENDENT percentage roll. |
minLevel / maxLevel |
Level range for spawned Pokémon. |
maxSpawnCount |
Maximum live Pokémon for this entry. 0 means unlimited. |
spawnSettings |
Time, weather, and allowed spawn block settings. |
wanderingSettings |
Stay-in-region pathing behavior. |
captureSettings |
Catchability and required Poké Balls. |
ivSettings |
Optional custom IV ranges. |
evSettings |
Optional custom EV rewards when defeated. |
sizeSettings |
Optional min/max scale modifiers. |
heldItemsOnSpawn |
Optional held item chances. |
moves |
Optional custom initial moves, including forced moves. |
评论 0
登录后参与评分
还没有评论,来抢沙发吧