Cobble Paste
这是一个服务端模组,支持将 Pokepast.es 中的宝可梦导入或导出至 Cobblemon。它允许玩家轻松与他人分享他们的宝可梦,或将网络上的宝可梦导入游戏中。
注意:从 Pokepast.es 导入和导出宝可梦的功能仅对拥有相应权限的玩家可用。如果您不确定自己的权限,请咨询您的服务器管理员。
依赖项
- Matthiesen Core
- Cobblemon
- Fabric API(仅限 Fabric)
- Forge Config API Port(仅限 Fabric)
待办事项
- 确定如何正确处理所有物种形态,包括地区形态、超级进化以及其他特殊情况。
快速开始
Cobble Paste 是一个用于将 Cobblemon 队伍导入或导出至 Pokepast.es 的服务端模组。
命令
在服务器控制台或作为拥有所需权限的玩家在游戏中使用以下命令:
/cobble-paste import <url>:获取一个 Pokepast.es URL 并将该队伍导入调用者的队伍中。/cobble-paste preview <url>:打开只读的库存预览以查看该队伍。/cobble-paste export:将当前队伍导出至 Pokepast.es 并返回一个可分享的链接。
配置
Cobble Paste 将其配置文件存储在 <游戏目录>/config/cobble_paste/ 下。
server.toml
控制导出时显示的粘贴作者名称以及导入/导出期间使用的物品名称映射。
[general]
pasteAuthor = "CobblePaste"
itemMappings = [
"Leftovers=cobblemon:leftovers",
"Choice Band=cobblemon:choice_band",
"Booster Energy=UNMAPPED:booster_energy"
]
general.pasteAuthor:导出时在 Pokepast.es 上显示的作者名称。general.itemMappings:一组Showdown 物品名称=注册表 ID键值对列表。- 使用
UNMAPPED:<name>跳过不受支持的物品映射,而不是在导入/导出时直接失败。
permissions.toml
控制哪些权限级别可以运行每个命令。
[permissions]
commandPasteImportPermLevel = "ALL_COMMANDS"
commandPasteExportPermLevel = "ALL_COMMANDS"
commandPastePreviewPermLevel = "ALL_COMMANDS"
这些值是基于枚举的权限级别,来自服务器权限系统。
cobble_paste.command.cobble-paste.import:运行导入命令所需的权限。cobble_paste.command.cobble-paste.export:运行导出命令所需的权限。cobble_paste.command.cobble-paste.preview:运行预览命令所需的权限。
Cobblemon NPC 队伍提供程序
Cobble Paste 还为 Cobblemon 添加了一个新的 NPC 队伍提供程序,允许通过 Pokepast.es URL 定义 NPC 的队伍。
有关 NPC 预设和队伍提供程序的更多信息,请参阅 Cobblemon NPC API 文档
在您的 Cobblemon NPC 数据包 JSON 文件中,您可以使用以下格式来定义 NPC 的队伍:
{
"party": {
"type": "cobble_paste:pokepaste",
"isStatic": true,
"pokePasteId": "your-paste-id-or-url"
}
}
文档
本模组的文档位于 mods.matthiesen.dev
版本兼容性
| Minecraft 版本 | Matthiesen Core 版本 | Cobblemon 版本 | 模组版本 |
|---|---|---|---|
| 1.21.1 | 1.x.x | 1.7.3 | 1.0.0-beta.1+ |
| 1.21.1 | 1.2.7+ | 1.8.x+ | 1.0.0-beta.7+ |
| 1.21.1 | 1.3.0+ | 1.8.x+ | 1.0.0-beta.12+ |
| 1.21.1 | 2.0.0+ | 1.8.x+ | 1.0.0-beta.14+ |
FastStats 指标
本模组使用 FastStats 收集匿名使用统计数据。这有助于开发者了解本模组的使用情况并随时间推移进行改进。您可以通过访问 FastStats: Information 了解更多关于收集的数据及其用途的信息。
您还可以在 FastStats: Cobble Paste 页面上查看此模组收集的数据。
若要退出数据收集,请将 <游戏目录>/config/faststats/config.properties 文件中的 enabled 属性设置为 false。
许可证
MIT - 见 LICENSE。
Cobble Paste
This is a Server-side mod that adds support for importing and exporting Pokémon from Pokepast.es into Cobblemon. It allows players to easily share their Pokémon with others or import Pokémon from the web into their game.
Note: Importing and exporting Pokémon from Pokepast.es is only available for players with appropriate permissions. Please check with your server administrator if you are unsure about your permissions.
Requirements
- Matthiesen Core
- Cobblemon
- Fabric API (Fabric only)
- Forge Config API Port (Fabric only)
TODO
- Figure out how to properly handle all species forms including regional forms, mega evolutions, and other special cases.
Quick Start
Cobble Paste is a server-side mod for importing and exporting Cobblemon teams to Pokepast.es.
Commands
Use these commands from the server console or in-game as a player with the required permissions:
/cobble-paste import <url>: fetches a Pokepast.es URL and imports the team into the caller's party./cobble-paste preview <url>: opens a read-only inventory preview of the team./cobble-paste export: exports the current party to Pokepast.es and returns a shareable link.
Configuration
Cobble Paste stores its config files in your game directory under config/cobble_paste/.
server.toml
Controls the exported paste author and item name mappings used during import/export.
[general]
pasteAuthor = "CobblePaste"
itemMappings = [
"Leftovers=cobblemon:leftovers",
"Choice Band=cobblemon:choice_band",
"Booster Energy=UNMAPPED:booster_energy"
]
general.pasteAuthor: the author name shown on Pokepast.es when exporting.general.itemMappings: a list ofShowdown Item Name=registry_idpairs.- Use
UNMAPPED:<name>to skip unsupported item mappings instead of hard-failing on import/export.
permissions.toml
Controls which permission levels can run each command.
[permissions]
commandPasteImportPermLevel = "ALL_COMMANDS"
commandPasteExportPermLevel = "ALL_COMMANDS"
commandPastePreviewPermLevel = "ALL_COMMANDS"
These values are enum-based permission levels from the server permissions system.
cobble_paste.command.cobble-paste.import: permission to run the import command.cobble_paste.command.cobble-paste.export: permission to run the export command.cobble_paste.command.cobble-paste.preview: permission to run the preview command.
Cobblemon NPC Party Provider
Cobble Paste also adds a new NPC Party Provider for Cobblemon, allowing NPCs to have their parties defined by Pokepast.es URLs.
For more information about NPC Presets and Party providers, see the Cobblemon NPC API documentation
In your Cobblemon NPC Datapack json, you can use the following format to define an NPC's party:
{
"party": {
"type": "cobble_paste:pokepaste",
"isStatic": true,
"pokePasteId": "your-paste-id-or-url"
}
}
Docs
Documentation for this mod can be found at mods.matthiesen.dev
Version Compatibility
| Minecraft Version | Matthiesen Core Version | Cobblemon Version | Mod Version |
|---|---|---|---|
| 1.21.1 | 1.x.x | 1.7.3 | 1.0.0-beta.1+ |
| 1.21.1 | 1.2.7+ | 1.8.x+ | 1.0.0-beta.7+ |
| 1.21.1 | 1.3.0+ | 1.8.x+ | 1.0.0-beta.12+ |
| 1.21.1 | 2.0.0+ | 1.8.x+ | 1.0.0-beta.14+ |
FastStats Metrics
This mod uses FastStats to collect anonymous usage statistics. This helps the developer understand how this mod is being used and improve it over time. You can learn more about the data collected and how it is used by visiting FastStats: Information.
You can also view the data collected by this mod on the FastStats: Cobble Paste page.
To opt out of this data collection, set the enabled property to false in the <game_directory>/config/faststats/config.properties file.
License
MIT - see LICENSE.
下载 Cobble Paste
下载 Cobble Paste
下载 Cobble Paste
下载 Cobble Paste
下载 Cobble Paste
下载 Cobble Paste
下载 Cobble Paste
下载 Cobble Paste
下载 Cobble Paste
下载 Cobble Paste
更新内容
- 为 Matthiesen Core v2 更新依赖,由 @Adammatthiesen 在 中完成
完整更改日志:
更新内容
- 在 neoforge.mods.toml 中更新 cobble-paste 的 matthiesen_core 依赖版本范围,由 @Adammatthiesen 提交于
完整变更日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
模组
添加全屏世界地图,显示你在世界中已探索的区域。与 Xaero's Minimap 搭配使用效果极佳。
评论 0
登录后参与评分
还没有评论,来抢沙发吧