Pebble 的 Cobblemon 生成事件
适用于 Fabric 和 Forge Minecraft 1.20.1 版本的 Pebble Spawn Events 模组
请确保已安装 Fabric Language Kotlin(或 Kotlin For Forge)!
Architechtury API 也是必需的依赖项。
创建动态且可配置的生成事件,根据分配的权重从池中随机选择玩家和宝可梦。玩家随机选择器会尽量降低最近两名玩家的优先级(如果在线玩家超过 2 人),因此你不会看到同一事件频繁发生在相同的玩家身上。
命令
/spawnevent:打开包含实时事件和所有事件历史的生成事件用户界面
/spawnevent reload:需要 OP 权限(权限等级 >=2),重新加载生成事件配置。建议重启更安全,因为事件循环机制复杂,如果你进行了重大更改,谁知道会发生什么 :v
重要提示
某些交互(例如与 CobbleClear 的交互)可能会产生意外结果。最好将事件中的宝可梦物种列入自动清除的白名单,以防止被误清除。
配置
首次启动时,会在 config/pebbles-spawnevents 中生成一个配置文件夹
{
"enabled": true,
"minPlayers": 1, // 触发事件所需的最少在线玩家数
"spawnInterval": 1 // 每次掷骰生成事件之间的间隔时间(分钟)
}
event-history/event-history-config.json 允许自定义事件结束时的显示标签。
{
"enabled": true,
"capturedStatus": "<green>已捕获",
"killedStatus": "<red>已击杀",
"despawnedStatus": "<yellow>已消失",
"unknownStatus": "<gray>未知"
}
event-history/event-history-screen.json 允许灵活自定义屏幕显示,你也可以使用位图标题作为自定义叠加层。请参阅截图以了解屏幕的外观。
{
"title": "<blue>传说级生成历史",
"liveSpawnSlot": 4,
"liveSpawnLores": [
"{pokemon}",
"<gray>在 {dimension} <aqua>{player_name.spawned}</aqua> 附近生成 <red>{time_passed}</red> 前",
"<gray>生物群系: <yellow>{biome}"
],
"historySlots": [18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],
"historyLores": [
"{pokemon}",
"<gray>在 {dimension} <aqua>{player_name.spawned}</aqua> 附近生成 <red>{time_passed}</red> 前",
"<gray>生物群系: <yellow>{biome}",
"状态: {status} by {player_name.acted}"
],
"navForwardSlots": [
37
],
"navForwardStack": {
"displayName": "<aqua>下一页",
"material": "minecraft:arrow",
"amount": 1,
"nbt": "",
"lore": [
"<yellow>点击查看下一页"
]
},
"navBackSlots": [
36
],
"navBackStack": {
"displayName": "<aqua>上一页",
"material": "minecraft:arrow",
"amount": 1,
"nbt": "",
"lore": [
"<yellow>点击查看上一页"
]
},
"emptySlotStack": {
"displayName": "<gray>",
"material": "minecraft:gray_stained_glass_pane",
"amount": 1,
"nbt": "",
"lore": [
""
]
}
}
spawns/ 包含所有的生成事件。首次启动时会生成一个 Zapdos 示例,你可以自由复制文件并创建任意数量的不同事件。权重决定了概率。例如,如果你有 Zapdos(权重 1)、Moltres(权重 1)和 Articuno(权重 2),那么 Zapdos 生成的几率是 1/4(25%),Moltres 是 1/4(25%),Articuno 是 1/2(50%)。
{
"pokemonProperties": "zapdos lvl=50 special_attack_iv=31",
"broadcast": {
"spawn": "<blue>神话实体 <yellow>Zapdos</yellow> 已在 <light_purple>{biome}</light_purple> 被发现!\n<gray>它将在接下来的 <green>{duration}</green> 分钟内可供捕捉。</gray>\n\n<blue>最近的玩家: <aqua>{player_name.spawned}</aqua>",
"despawn": "<blue>神话实体 <yellow>Zapdos</yellow> 已消失。</blue>",
"capture": "<blue>神话实体 <yellow>Zapdos</yellow> 已被 <aqua>{player_name.acted}</aqua> 捕获!</blue>",
"kill": "<blue>神话实体 <yellow>Zapdos</yellow> 已被 <aqua>{player_name.acted}</aqua> 击杀!</blue>"
},
"spawnWeight": 1,
"despawnTimerMinutes": 10,
"sound": "minecraft:entity.lightning_bolt.thunder"
}
支持者:
Cobblehaven 的 Osu 资助了本模组的开发。
Pebble's Cobblemon Spawn Events
Pebble's Spawn Events mod for Fabric and Forge Minecraft version 1.20.1
Make sure you have Fabric Language Kotlin installed (or Kotlin For Forge)!
Architechtury API is also a requirement.
Create dynamic and configurable spawnevents that chooses random players and Pokemon from the pool based on assigned weights. The randomiser for player tries to deprioritise the 2 latest players if more than 2 players are online so you won't see the same events happening on the same players constantly.
Commands
/spawnevent: Opens the spawn events UI containing live event and all the event history
/spawnevent reload: Requires OP (permission level >=2), reloads the spawn event configuration. Preferably a restart is safer as the event cycles and who knows what happens if you make huge changes :v
Important
Certain interactions such as that with CobbleClear might give unexpected result. It is best that the event Pokemon species gets whitelisted from being autocleared.
Configurations
On first launch, a config folder is generated in config/pebbles-spawnevents
{
"enabled": true,
"minPlayers": 1, // Minimum online players for event to trigger
"spawnInterval": 1 //Spawn interval in minute between each event being rolled in
}
event-history/event-history-config.json Allows for custom label on how the event was ended on the display screen.
{
"enabled": true,
"capturedStatus": "<green>Captured",
"killedStatus": "<red>Killed",
"despawnedStatus": "<yellow>Despawned",
"unknownStatus": "<gray>Unknown"
}
event-history/event-history-screen.json Allows for flexible screen customisation, you can also use a bitmap title for custom overlay. Look at screenshot for how the screen appears.
{
"title": "<blue>Legendary Spawn History",
"liveSpawnSlot": 4,
"liveSpawnLores": [
"{pokemon}",
"<gray>Spawned near <aqua>{player_name.spawned}</aqua> in {dimension} <red>{time_passed}</red> ago",
"<gray>Biome: <yellow>{biome}"
],
"historySlots": [18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],
"historyLores": [
"{pokemon}",
"<gray>Spawned near <aqua>{player_name.spawned}</aqua> in {dimension} <red>{time_passed}</red> ago",
"<gray>Biome: <yellow>{biome}",
"Status: {status} by {player_name.acted}"
],
"navForwardSlots": [
37
],
"navForwardStack": {
"displayName": "<aqua>Next Page",
"material": "minecraft:arrow",
"amount": 1,
"nbt": "",
"lore": [
"<yellow>Click to view next page"
]
},
"navBackSlots": [
36
],
"navBackStack": {
"displayName": "<aqua>Previous Page",
"material": "minecraft:arrow",
"amount": 1,
"nbt": "",
"lore": [
"<yellow>Click to view previous page"
]
},
"emptySlotStack": {
"displayName": "<gray>",
"material": "minecraft:gray_stained_glass_pane",
"amount": 1,
"nbt": "",
"lore": [
""
]
}
}
spawns/ Contains all the spawn events. A Zapdos example is generated on first launch, feel free to copy the file and make as many different events as you want. The weight determines the chance. For example, if you have Zapdos (1 weight), Moltres (1 weight) and Articuno (2 weight), the odds for Zapdos spawning is 1/4 (25%), Moltress is 1/4 (25%) and Articuno is 1/2 (50%)
{
"pokemonProperties": "zapdos lvl=50 special_attack_iv=31",
"broadcast": {
"spawn": "<blue>The mythical entity, <yellow>Zapdos</yellow>, has been spotted in <light_purple>{biome}!\n<gray>It will be available for the next <green>{duration}</green> minutes.</gray>\n\n<blue>Closest player: <aqua>{player_name.spawned}</aqua>",
"despawn": "<blue>The mythical entity, <yellow>Zapdos</yellow>, has despawned.</blue>",
"capture": "<blue>The mythical entity, <yellow>Zapdos</yellow>, has been captured by <aqua>{player_name.acted}</aqua>!</blue>",
"kill": "<blue>The mythical entity, <yellow>Zapdos</yellow>, has been killed by <aqua>{player_name.acted}</aqua>!</blue>"
},
"spawnWeight": 1,
"despawnTimerMinutes": 10,
"sound": "minecraft:entity.lightning_bolt.thunder"
}
Supporter:
Osu of Cobblehaven helped fund this mod.
评论 0
登录后参与评分
还没有评论,来抢沙发吧