minecraft-plugin-development
它能做什么
这个工具可以帮你创建和修改为 Minecraft 游戏编写的程序(称为“插件”)。它很适合给你的服务器添加新功能,比如自定义命令、游戏系统和玩家数据管理。
适用场景
- ✓当你想为 Minecraft 服务器添加一个新的玩家命令时。
- ✓如果你需要创建一个游戏系统,比如对战模式或物品礼包系统。
- ✓当你想保存玩家信息,比如进度或物品时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/minecraft-plugin-development/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我创建一个 Minecraft 插件,添加一个给玩家发放物品的命令。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 了解 Minecraft 插件的工作原理,包括如何注册命令和处理玩家操作。它会利用这些知识为你编写插件所需的代码。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Minecraft Plugin Development
Use this skill for Minecraft server plugin work in the Paper, Spigot, and Bukkit ecosystem.
This skill is especially useful for gameplay-heavy plugins such as combat systems, wave or boss encounters, war or team modes, arenas, kit systems, cooldown-based abilities, scoreboards, and config-driven game rules.
For grounded implementation patterns drawn from real Paper plugins, load these references as needed:
references/project-patterns.mdfor high-level architecture patterns seen in real gameplay pluginsreferences/bootstrap-registration.mdforonEnable, command wiring, listener registration, and shutdown expectationsreferences/state-sessions-and-phases.mdfor player session modeling, game phases, match state, and reconnect-safe logicreferences/config-data-and-async.mdfor config managers, database-backed player data, async flushes, and UI refresh tasksreferences/maps-heroes-and-feature-modules.mdfor map rotation, hero or class systems, and modular feature growthreferences/minigame-instance-flow.mdfor arena instances, countdowns, loot refreshes, wave systems, visibility isolation, and entity-to-game ownershipreferences/persistent-progression-and-events.mdfor long-running PvP servers with profiles, perks, buffs, quests, economy, custom domain events, and extension registriesreferences/build-test-and-runtime-validation.mdfor Maven or Gradle packaging, shaded dependencies, generated resources, soft dependencies, config validation commands, and first-round server test plans
Scope
- In scope: Paper, Spigot, Bukkit plugin development
- In scope:
plugin.yml, commands, tab completion, listeners, schedulers, configs, permissions, Adventure text, player state, minigame flow, arena instances, map copies, loot, waves, persistent profiles, perks, buffs, quests, economy, and PvP/PvE game loops - In scope: Java-based server plugin architecture, debugging, refactoring, and feature implementation
- Out of scope by default: Fabric mods, Forge mods, client mods, Bedrock add-ons
If the user says "Minecraft plugin" but the stack is unclear, first determine whether the project is Paper/Spigot/Bukkit or a modding stack.
Default Working Style
When this skill triggers:
- Identify the server API and version target.
- Identify the build system and Java version.
- Inspect
plugin.yml, the main plugin class, and command or listener registration. - Map the gameplay flow before editing code:
- player lifecycle
- game phases
- timers and scheduled tasks
- team, arena, or match state
- config and persistence
- Make the smallest coherent change that keeps registration, config, and runtime behavior aligned.
If the plugin is gameplay-heavy or stateful, read references/project-patterns.md and references/state-sessions-and-phases.md before editing.
If the task touches arena isolation, map instances, chest or resource refills, wave spawning, route voting, spectator visibility, or game-specific chat, also read references/minigame-instance-flow.md.
If the task touches persistent player progression, profile saves, economy rewards, perks, buffs, quests, custom combat events, or long-running shared PvP servers, also read references/persistent-progression-and-events.md.
If the task touches build files, plugin.yml metadata, shaded dependencies, generated resource output, deployment to a test server, optional plugin integrations, or release validation, also read references/build-test-and-runtime-validation.md.
Project Discovery Checklist
Check these first when present:
plugin.ymlpom.xml,build.gradle, orbuild.gradle.kts- the plugin main class extending
JavaPlugin - command executors and tab completers
- listener classes
- config bootstrap code for
config.yml, messages, kits, arenas, or custom YAML files
…
常见问题
什么是 Minecraft 插件?
插件是小型程序,可以为 Minecraft 服务器添加新功能,比如新命令、小游戏或各种系统。
支持哪些类型的 Minecraft 服务器?
这个工具适用于使用 Paper、Spigot 或 Bukkit 的服务器。
我可以用它来开发 mod 吗?
不可以。这个工具只适用于服务器插件,不适用于会改变游戏本身的 mod。
详情
作者的原始描述
Use this skill when building or modifying Minecraft server plugins for Paper, Spigot, or Bukkit, including plugin.yml setup, commands, listeners, schedulers, player state, team or arena systems, persistent progression, economy or profile data, configuration files, Adventure text, and version-safe API usage. Trigger for requests like "build a Minecraft plugin", "add a Paper command", "fix a Bukkit
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7296
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。