跳到正文

Cobble Paste

Pokepastes support for Cobblemon importing and exporting!

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Cobble Paste

Matthiesen Core
Cobblemon

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

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 of Showdown Item Name=registry_id pairs.
  • 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+ |

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/matthiesen_core/metrics.properties file.

License

MIT – see LICENSE.

常见问题

Cobble Paste 支持哪些 Minecraft 版本?

Cobble Paste 支持 Minecraft Java 版 1.21.1,可用的加载器:Fabric / NeoForge。下载时注意选择和你游戏版本一致的文件。

Cobble Paste 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅服务端。

评论

登录后评论和评分

Adammatthiesen 的其他作品

查看全部 →