NoMonsInMyWorld
NoMonsInMyWorld 是一款轻量但功能强大的 Cobblemon 服务端工具,让你能够精确地针对每个世界控制宝可梦的生成与骑乘。无论你是需要创建一个无宝可梦的枢纽区域、禁止特定物种在某个维度生成,还是阻止玩家在特定世界中骑乘传说宝可梦,这个模组都提供了一个简单、基于配置文件的解决方案。
依赖项
功能
- 按世界划分的生成规则:为每个维度创建独特的生成规则。完全禁用枢纽区域的生成,允许其他区域仅生成特定类型的宝可梦,并让主世界保持原样不受影响。
- 高级生成过滤:使用简单的物种名称(例如
cobblemon:zubat)来阻挡宝可梦,或使用强大的条件按类型(type=flying)、稀有度(legendary=true)或属性(shiny=true)进行过滤。
- 按世界划分的骑乘规则:独立控制每个维度中可以骑乘的宝可梦。完全禁用事件世界中的骑乘,或将某些强大的坐骑列入生存世界的黑名单。
- 已拥有宝可梦保护:智能过滤器允许玩家即使在禁用了该物种野生生成的维度中,也能派出自己的宝可梦。
- 实时重载:一条简单的命令即可即时应用配置更改,无需重启服务器。
- 100% 服务端运行:玩家加入服务器时无需安装任何内容。
命令
本模组主要通过其配置文件进行管理,并提供一个便捷命令。
| 命令 |
权限 |
描述 |
/nomonsinmyworld reload |
nomonsinmyworld.reload |
从磁盘重新加载 config.json 文件,立即应用所有更改。 |
配置
NoMonsInMyWorld 使用位于 config/nomonsinmyworld/config.json 的单个易于理解的配置文件。整个配置都在一个 worlds 对象中管理,你可以在其中为要控制的每个维度添加一个条目。
示例配置
{
"version": "1.0.0",
"worlds": {
// 主世界的规则
"minecraft:overworld": {
"spawning": {
"disallowedSpecies": ["cobblemon:rattata", "cobblemon:pidgey"],
"exclusionConditions": ["type=ghost", "shiny=true"],
"disableAll": false,
"excludeOwnedPokemon": true
},
"riding": {
"disallowedSpecies": ["cobblemon:charizard"],
"exclusionConditions": ["legendary=true"],
"disableAll": false,
"excludeOwnedPokemon": false
}
},
// 枢纽世界的规则(例如来自另一个模组)
"some_mod:hub_world": {
"spawning": {
"disableAll": true, // 用于阻止所有野生生成的总开关
"excludeOwnedPokemon": true // 仍允许玩家派出自己的宝可梦
},
"riding": {
"disableAll": true // 用于阻止所有骑乘的总开关
}
}
}
}
生成控制 (spawning 部分)
此部分控制哪些野生宝可梦可以在某个维度中生成。
| 设置 |
描述 |
disableAll |
总开关。如果设为 true,则此世界中不会生成任何野生宝可梦,且所有其他生成规则将被忽略。 |
disallowedSpecies |
按名称阻止的宝可梦物种列表。示例:["cobblemon:zubat", "cobblemon:magikarp"]。 |
exclusionConditions |
(强大功能!) 用于过滤生成的条件列表。语法为 key=value。这允许你阻止整类宝可梦。示例:["type=dragon"]、["legendary=true"]、["shiny=true"]。 |
excludeOwnedPokemon |
关键的安全特性。如果设为 true(默认值),生成阻止规则将不适用于玩家从精灵球中派出的宝可梦。这可以防止模组干扰玩家自己的队伍。 |
骑乘控制 (riding 部分)
此部分控制玩家可以在某个维度中骑乘哪些宝可梦。
| 设置 |
描述 |
disableAll |
总开关。如果设为 true,玩家将无法在此世界中骑乘任何宝可梦。 |
disallowedSpecies |
不能骑乘的特定宝可梦物种列表。非常适合禁止某些强大或大型坐骑。示例:["cobblemon:rayquaza"]。 |
exclusionConditions |
用于阻止骑乘的条件列表。这对于创建全服规则非常有用。示例:["legendary=true"] 将阻止任何人骑乘传说宝可梦。 |
excludeOwnedPokemon |
对于骑乘而言,这通常设置为 false,因为意图是控制玩家骑乘自己宝可梦的能力。如果设为 true,骑乘规则将被忽略。 |
NoMonsInMyWorld
NoMonsInMyWorld is a lightweight but powerful server-side utility for Cobblemon that gives you precise, per-world control over both Pokémon spawning and riding. Whether you need to create a Pokémon-free hub, ban specific species from a dimension, or prevent players from riding legendaries in certain worlds, this mod provides a simple, config-driven solution.
Dependencies
Features
- Per-World Spawning Rules: Create unique spawning rules for each dimension. Completely disable spawning in your hub, allow only specific types in another, and leave the main world untouched.
- Advanced Spawn Filtering: Block Pokémon using simple species names (e.g.,
cobblemon:zubat) or use powerful conditions to filter by type (type=flying), rarity (legendary=true), or attribute (shiny=true).
- Per-World Riding Rules: Independently control which Pokémon can be ridden in each dimension. Completely disable riding in event worlds or blacklist specific powerful mounts from your survival worlds.
- Owned Pokémon Protection: A smart filter allows players to send out their own Pokémon, even in dimensions where wild spawns of that species are disabled.
- Live Reload: A simple command lets you apply configuration changes instantly without needing a server restart.
- 100% Server-Side: No installation is required for players to join your server.
Commands
The mod is designed to be managed primarily through its configuration file, with a single command for convenience.
| Command |
Permission |
Description |
/nomonsinmyworld reload |
nomonsinmyworld.reload |
Reloads the config.json file from disk, applying any changes immediately. |
Configuration
NoMonsInMyWorld uses a single, easy-to-understand configuration file located at config/nomonsinmyworld/config.json. The entire configuration is managed within a worlds object, where you can add an entry for each dimension you want to control.
Example Configuration
{
"version": "1.0.0",
"worlds": {
// Rules for the Overworld
"minecraft:overworld": {
"spawning": {
"disallowedSpecies": ["cobblemon:rattata", "cobblemon:pidgey"],
"exclusionConditions": ["type=ghost", "shiny=true"],
"disableAll": false,
"excludeOwnedPokemon": true
},
"riding": {
"disallowedSpecies": ["cobblemon:charizard"],
"exclusionConditions": ["legendary=true"],
"disableAll": false,
"excludeOwnedPokemon": false
}
},
// Rules for a hub world (e.g., from another mod)
"some_mod:hub_world": {
"spawning": {
"disableAll": true, // Master switch to block all wild spawns
"excludeOwnedPokemon": true // Still allows players to send out their own Pokémon
},
"riding": {
"disableAll": true // Master switch to block all riding
}
}
}
}
Spawning Control (spawning section)
This section controls which wild Pokémon are allowed to spawn in a dimension.
| Setting |
Description |
disableAll |
The master switch. If true, no wild Pokémon will spawn in this world, and all other spawning rules are ignored. |
disallowedSpecies |
A list of Pokémon species to block by name. Example: ["cobblemon:zubat", "cobblemon:magikarp"]. |
exclusionConditions |
(Powerful!) A list of conditions used to filter spawns. The syntax is key=value. This allows you to block entire categories of Pokémon. Examples: ["type=dragon"], ["legendary=true"], ["shiny=true"]. |
excludeOwnedPokemon |
A critical safety feature. If true (default), the spawn-blocking rules will not apply to Pokémon being sent out of a Poké Ball by a player. This prevents the mod from interfering with a player's own team. |
Riding Control (riding section)
This section controls which Pokémon players are allowed to mount and ride in a dimension.
| Setting |
Description |
disableAll |
The master switch. If true, players will be unable to mount or ride any Pokémon in this world. |
disallowedSpecies |
A list of specific Pokémon species that cannot be ridden. Perfect for banning certain powerful or large mounts. Example: ["cobblemon:rayquaza"]. |
exclusionConditions |
A list of conditions to prevent riding. This is extremely useful for creating server-wide rules. Example: ["legendary=true"] would prevent anyone from riding a legendary Pokémon in this dimension. |
excludeOwnedPokemon |
This is typically set to false for riding, as the intention is to control the player's ability to mount their own Pokémon. If true, the riding rules would be ignored. |
评论 0
登录后参与评分
还没有评论,来抢沙发吧