Salyyy Minecraft Kit documentationTài liệu Salyyy Minecraft Kit
OverviewTổng quan
Minecraft Kit gives an AI coding assistant (Claude Code, Cursor, Codex and other MCP clients) 108 tools for Minecraft work: testing servers with bots, reading crash reports, looking up real plugin APIs, building resource packs and mod projects, and operating hosted servers. The assistant calls the tools; you read the results.
Minecraft Kit cung cấp cho trợ lý AI lập trình (Claude Code, Cursor, Codex và các ứng dụng MCP khác) 108 công cụ dành cho Minecraft: kiểm thử server bằng bot, đọc crash report, tra API thật của plugin, làm resource pack và dự án mod, vận hành server thuê. Trợ lý gọi công cụ, còn bạn đọc kết quả.
Who it is forDành cho ai
- Plugin and mod developers working on Paper, Folia, Velocity, Fabric or NeoForge.
- Server owners who want configs, logs, crash reports and backups checked.
- People who make resource packs and custom items for Nexo, CraftEngine or ItemsAdder.
- Người viết plugin và mod cho Paper, Folia, Velocity, Fabric hoặc NeoForge.
- Chủ server cần kiểm tra config, log, crash report và bản backup.
- Người làm resource pack và item tùy biến cho Nexo, CraftEngine hoặc ItemsAdder.
How it worksCách hoạt động
- Install the kit with
npx minecraftkit install. It adds a skill to Claude Code and/or Codex. - Register the kit's MCP server in your AI client. The server is a local Python process; it does not send data anywhere unless a tool you call is about a remote target (for example an SFTP host you name).
- Ask for what you need in plain language. The assistant picks the tools; each feature section below shows the exact calls and their real output.
- Cài kit bằng
npx minecraftkit install. Lệnh này thêm kỹ năng vào Claude Code và/hoặc Codex. - Đăng ký MCP server của kit trong ứng dụng AI. Server là một tiến trình Python chạy trên máy bạn; nó không gửi dữ liệu đi đâu, trừ khi công cụ bạn gọi làm việc với một đích ở xa (ví dụ host SFTP do bạn chỉ định).
- Nói yêu cầu bằng lời bình thường. Trợ lý tự chọn công cụ; mỗi mục tính năng bên dưới có lời gọi cụ thể và kết quả chạy thật.
Features at a glanceTóm tắt tính năng
| FeatureTính năng | What you getBạn nhận được gì | Main toolCông cụ chính |
|---|---|---|
| Test botsBot kiểm thử | Scripted join, login, command and GUI checks with a PNG snapshotKịch bản vào server, đăng nhập, gõ lệnh, kiểm tra GUI, kèm ảnh PNG | mc_bot_run_stages |
| Hosting and SFTPHosting và SFTP | Panel actions, log tails, config patches with backups, jar deploysThao tác panel, đọc log, sửa config có backup, đẩy file jar | mc_sftp_operations |
| DiagnosticsChẩn đoán lỗi | Root cause and fix steps for crashes, logs, profiles and configsNguyên nhân và cách sửa cho crash, log, profile và config | mc_diagnose_crash_report |
| Plugin API catalogsCatalog API plugin | Real classes and methods of 30 plugins, offlineClass và method thật của 30 plugin, không cần mạng | mc_search_api |
| PacksPack | pack.mcmeta for version ranges, item component and datapack checkspack.mcmeta cho nhiều phiên bản, kiểm tra item component và datapack | mc_validate_item_components |
| AsepriteAseprite | Sprites drawn from a spec and exported into pack foldersSprite vẽ từ spec và xuất vào đúng thư mục pack | mc_aseprite_draw_sprite |
| Custom itemsItem tùy biến | Nexo, CraftEngine and ItemsAdder configs with plan, apply and rollbackConfig Nexo, CraftEngine, ItemsAdder với plan, apply và rollback | mc_pack_deploy_custom_content |
| ModsMod | Correct toolchain versions, project scaffolds, jar checksĐúng phiên bản toolchain, khung dự án, kiểm tra jar | mc_mod_resolve_toolchain |
| SkillsKỹ năng | 14 topic guides the assistant follows14 bộ hướng dẫn theo chủ đề cho trợ lý | mc_route_skill |
InstallCài đặt
Requirements: Node.js 18 or newer for the installer and Python 3.10 or newer for the MCP server.
Yêu cầu: Node.js 18 trở lên cho trình cài và Python 3.10 trở lên cho MCP server.
npx minecraftkit install --target both--target both installs for Claude Code and Codex. Use --target claude or --target codex for one of them, and --dry-run to see what would change first. Then check the setup:
--target both cài cho cả Claude Code và Codex. Dùng --target claude hoặc --target codex nếu chỉ cần một bên, và --dry-run để xem trước những gì sẽ thay đổi. Sau đó kiểm tra lại:
npx minecraftkit doctorWhat the installer doesTrình cài làm những gì
- Downloads the GitHub release ZIP and its
.sha256file, verifies the checksum, and rejects unsafe archives (path traversal, symlinks). - Copies the kit into
~/.claude/skills(Claude Code) and/or~/.agents/skills(Codex). - Runs no postinstall hook, sends no telemetry and does not check for updates in the background.
- Tải file ZIP của bản phát hành trên GitHub cùng file
.sha256, kiểm tra checksum, và từ chối gói không an toàn (đường dẫn vượt thư mục, symlink). - Chép kit vào
~/.claude/skills(Claude Code) và/hoặc~/.agents/skills(Codex). - Không có postinstall hook, không gửi telemetry, không tự kiểm tra cập nhật chạy ngầm.
Without npm (PowerShell)Không dùng npm (PowerShell)
The same verified installer can run directly from PowerShell. -Target accepts codex, claude or both.
Có thể chạy cùng trình cài đã kiểm chứng trực tiếp từ PowerShell. -Target nhận codex, claude hoặc both.
& ([scriptblock]::Create((Invoke-RestMethod 'https://raw.githubusercontent.com/SalyyS1/minecraftkit/main/scripts/install-from-github.ps1'))) -Target bothCLI commandsCác lệnh CLI
With npm install -g minecraftkit you can type minecraftkit instead of npx minecraftkit.
Sau khi chạy npm install -g minecraftkit, bạn có thể gõ minecraftkit thay cho npx minecraftkit.
minecraftkit install [codex|claude|both] [--dry-run] [--version x.y.z]
minecraftkit update [codex|claude|both]
minecraftkit mcp [--print-config] [--root <dir>]
minecraftkit bot-plan [--bots <N>] [--ram <GB>] [--visual] [--json]
minecraftkit doctor [--json]
minecraftkit commands [--json]
minecraftkit docs
minecraftkit versionConnect an AI clientKết nối ứng dụng AI
Print a config that matches your machine:
In ra cấu hình khớp với máy của bạn:
npx minecraftkit mcp --print-configOr add this server entry to your client's MCP config:
Hoặc thêm khai báo server này vào file cấu hình MCP của ứng dụng:
{
"mcpServers": {
"minecraftkit": {
"command": "npx",
"args": ["-y", "minecraftkit", "mcp"]
}
}
}| ClientỨng dụng | Config fileFile cấu hình |
|---|---|
| Claude Code | .mcp.json in the project foldertrong thư mục dự án |
| Cursor | .cursor/mcp.json |
| Claude Desktop | claude_desktop_config.json |
| Windsurf and othersWindsurf và ứng dụng khác | Add the same server in the client's MCP settingsThêm server tương tự trong phần cài đặt MCP của ứng dụng |
From a clone of the repository you can skip npm and start the server with Python:
Nếu dùng bản clone của repo, bạn có thể bỏ qua npm và chạy server bằng Python:
{
"mcpServers": {
"minecraftkit": {
"command": "python3",
"args": ["-B", "/path/to/minecraftkit/scripts/mcp_server.py"]
}
}
}Restart the client and ask it to run mc_kit_self_doctor. It checks Python, Node, Java, Docker, ffmpeg and the catalog files, and grades the setup from A to D.
Khởi động lại ứng dụng và nhờ nó chạy mc_kit_self_doctor. Công cụ này kiểm tra Python, Node, Java, Docker, ffmpeg và các file catalog, rồi chấm điểm từ A đến D.
Test botsBot kiểm thử
Headless bots join a Java server without a game window, answer /register and /login prompts from AuthMe, nLogin and similar plugins, run commands, click GUI slots and check chat, GUI titles, scoreboards and TPS. Each run returns a stage-by-stage result and a PNG snapshot. Passwords are replaced with [REDACTED_PASSWORD] before anything is returned.
Bot chạy ngầm vào server Java mà không mở cửa sổ game, tự trả lời lời nhắc /register và /login của AuthMe, nLogin và các plugin tương tự, gõ lệnh, bấm slot GUI, kiểm tra chat, tiêu đề GUI, scoreboard và TPS. Mỗi lần chạy trả về kết quả từng bước và một ảnh PNG. Mật khẩu được thay bằng [REDACTED_PASSWORD] trước khi trả kết quả.
When to use itKhi nào dùng
Before a release, after changing a login or shop plugin, or for a load test with many bots instead of many Minecraft windows.
Trước khi ra bản mới, sau khi đổi plugin đăng nhập hay shop, hoặc khi cần test tải bằng nhiều bot thay vì mở nhiều cửa sổ Minecraft.
Try itThử ngay
“Send a bot to my test server at 127.0.0.1, register, run /shop and check that the shop GUI opens.”
“Cho một bot vào server test ở 127.0.0.1, đăng ký, gõ /shop và kiểm tra GUI shop có mở không.”
Tools:Công cụ: mc_bot_run_stages, mc_bot_ping_server, mc_bot_fingerprint_server, mc_bot_session_start, mc_bot_session_action, mc_bot_session_stop, mc_bot_generate_stage_preset, mc_bot_stress_benchmark, mc_qa_run_full_lifecycle
Live bots need a clone of the repositoryBot vào server thật cần bản clone của repo
The kit installed with npx minecraftkit install does not include the bot/ folder (the Mineflayer worker). Without it, the default auto mode runs a protocol probe plus an offline simulation instead of a real bot. Real live bots need a clone of the repository, Node.js 18+ and git:
Bản kit cài bằng npx minecraftkit install không có thư mục bot/ (worker Mineflayer). Khi thiếu thư mục này, chế độ mặc định auto chỉ dò protocol và chạy mô phỏng offline chứ không có bot thật. Muốn có bot thật vào server, bạn cần một bản clone của repo, Node.js 18+ và git:
git clone https://github.com/SalyyS1/minecraftkit.git
cd minecraftkit/bot
npm installThen point the MCP server at the clone with --root and restart the client:
Sau đó trỏ MCP server vào bản clone bằng --root rồi khởi động lại ứng dụng:
{
"mcpServers": {
"minecraftkit": {
"command": "npx",
"args": ["-y", "minecraftkit", "mcp", "--root", "/path/to/minecraftkit"]
}
}
}The same applies to the systemd unit from mc_bot_generate_cloud_deploy (target vps_systemd): it runs /opt/minecraftkit/bot/pool-runner.mjs, so the VPS needs a clone at /opt/minecraftkit with npm install run in bot/. The generated unit says this at the top.
Unit systemd do mc_bot_generate_cloud_deploy sinh ra (target vps_systemd) cũng vậy: nó chạy /opt/minecraftkit/bot/pool-runner.mjs, nên VPS cần một bản clone ở /opt/minecraftkit và đã chạy npm install trong bot/. Unit sinh ra có ghi chú này ở đầu file.
A real run reports "execution_backend": "node-mineflayer-headless"; the simulation reports python-headless-slp-stage-engine.
Lần chạy thật ghi "execution_backend": "node-mineflayer-headless"; bản mô phỏng ghi python-headless-slp-stage-engine.
Simulated output: Kết quả mô phỏng: a scripted bot runmột lượt chạy bot theo kịch bản
Simulation: no server was contacted. The chat prompt, GUI contents and TPS are inputs given in initial_state and mock_gui. What is real is the stage runner, the auth-prompt detection, the password redaction and the PNG renderer. A live run needs a repository clone (see Live bots above).
Mô phỏng: không kết nối server nào. Dòng chat, nội dung GUI và TPS là dữ liệu đầu vào khai trong initial_state và mock_gui. Phần chạy thật là bộ chạy các bước, nhận diện lời nhắc đăng nhập, che mật khẩu và vẽ ảnh PNG. Muốn chạy với server thật cần bản clone của repo (xem mục Bot vào server thật ở trên).
Run six stages in simulate modeChạy sáu bước ở chế độ simulate
mc_bot_run_stages
{
"host": "127.0.0.1",
"port": 25565,
"username": "DocsBot",
"password": "ExamplePass123",
"mode": "simulate",
"initial_state": {
"chat": [
"[AuthMe] Please register: /register <password> <password>"
],
"scoreboard": {
"title": "RPG Hub",
"lines": [
"Rank: Warrior"
]
},
"tps": 19.8
},
"stages": [
{
"name": "Join",
"action": "join"
},
{
"name": "Auto register",
"action": "auth"
},
{
"name": "Open shop",
"action": "command",
"command": "/shop",
"mock_gui": {
"title": "RPG Shop",
"slots": [
{
"slot": 13,
"name": "Iron Sword",
"count": 1
}
]
}
},
{
"name": "Shop GUI is open",
"action": "assert_gui",
"title_pattern": "RPG Shop",
"min_populated_slots": 1
},
{
"name": "TPS at least 19",
"action": "assert_tps",
"min_tps": 19.0
},
{
"name": "Snapshot",
"action": "capture"
}
],
"capture_snapshot": true
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"execution_backend": "python-headless-slp-stage-engine",
"summary": {
"total_stages": 6,
"passed": 6,
"failed": 0,
"auth_state": "AUTHENTICATED",
"resource_pack_status": "NONE"
},
"chat": [
"[AuthMe] Please register: /register [REDACTED_PASSWORD]",
"[Bot -> Server] /register [REDACTED_PASSWORD] [REDACTED_PASSWORD]",
"[Auth] Successfully registered and logged in.",
"[Bot] /shop"
],
"stages": [
{
"name": "Join",
"passed": true,
"detail": "Session initialized for DocsBot@127.0.0.1:25565 (headless tier1-protocol)"
},
{
"name": "Auto register",
"passed": true,
"detail": "Auto-detected registration prompt and completed /register [REDACTED_PASSWORD]"
},
{
"name": "Open shop",
"passed": true,
"detail": "Sent /shop"
},
{
"name": "Shop GUI is open",
"passed": true,
"detail": "Verified GUI 'RPG Shop' (1 slots)."
},
"… 2 more"
]
}
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only bot-qa
Hosting panels and SFTPPanel hosting và SFTP
Works with Pterodactyl, Pelican, Crafty Controller, PufferPanel and Multicraft (TOTP 2FA codes are generated locally), and with server files over SFTP: list folders, tail latest.log, patch a config after saving a .mckit.bak copy, and deploy a plugin jar through a temporary file, a SHA-256 check and a rename.
Làm việc với Pterodactyl, Pelican, Crafty Controller, PufferPanel và Multicraft (mã 2FA TOTP được tạo ngay trên máy), và với file server qua SFTP: xem thư mục, đọc đuôi latest.log, sửa config sau khi lưu bản .mckit.bak, đẩy file jar plugin qua file tạm, kiểm tra SHA-256 rồi đổi tên.
Credentials: the profile vaultThông tin đăng nhập: kho profile
Profiles are stored only on your machine in ~/.minecraftkit/profiles.json with owner-only permissions. Store secrets as env:VARIABLE_NAME so the file holds a reference, not the password. Inline secrets are masked whenever a profile is read back.
Profile chỉ lưu trên máy bạn, trong ~/.minecraftkit/profiles.json, chỉ chủ máy đọc được. Hãy lưu secret dạng env:TEN_BIEN để file chỉ chứa tham chiếu chứ không chứa mật khẩu. Secret ghi thẳng sẽ bị che mỗi khi đọc lại profile.
When to use itKhi nào dùng
Restarting a server, reading the latest errors, or updating a plugin without opening the panel in a browser. Changing operations default to a dry run; review the plan before running it for real.
Restart server, xem lỗi mới nhất, hoặc cập nhật plugin mà không cần mở panel trên trình duyệt. Thao tác có thay đổi mặc định chạy thử (dry run); xem kỹ kế hoạch rồi mới chạy thật.
Try itThử ngay
“Using my staging profile, show the last 80 lines of logs/latest.log and explain the errors.”
“Dùng profile staging, cho mình xem 80 dòng cuối của logs/latest.log và giải thích các lỗi.”
Tools:Công cụ: mc_ops_profile_vault, mc_sftp_operations, mc_hosting_connect_plan, mc_hosting_server_action, mc_hosting_backup_verify, mc_ops_rcon_execute, mc_ops_vps_ssh_preflight
Real output: Kết quả thật: profile vault and an SFTP deploy plankho profile và kế hoạch deploy qua SFTP
Run against a throwaway vault file in a temp folder and the reserved host sftp.example.net with dry_run on, so no connection was made. The inline api_key comes back masked; the env: reference is kept as a reference.
Chạy với file vault tạm trong thư mục tạm và host dành riêng sftp.example.net ở chế độ dry run, nên không có kết nối nào. api_key ghi thẳng bị che khi đọc lại; tham chiếu env: được giữ nguyên là tham chiếu.
Save a profile (one inline secret, one env: reference)Lưu profile (một secret ghi thẳng, một tham chiếu env:)
mc_ops_profile_vault
{
"action": "save",
"name": "staging",
"vault_path": "<tmp>/vault/profiles.json",
"fields": {
"sftp_host": "sftp.example.net",
"sftp_port": 2022,
"sftp_username": "srv_demo",
"sftp_password": "env:MCKIT_SFTP_PASSWORD",
"api_key": "ptlc_inline_demo_key"
}
}OutputKết quả
{
"saved": true,
"vault_path": "<tmp>/vault/profiles.json",
"profile": {
"sftp_host": "sftp.example.net",
"sftp_port": 2022,
"sftp_username": "srv_demo",
"sftp_password": "env:MCKIT_SFTP_PASSWORD",
"api_key": "[REDACTED_SECRET]",
"name": "staging"
}
}
Read it backĐọc lại profile
mc_ops_profile_vault
{
"action": "get",
"name": "staging",
"vault_path": "<tmp>/vault/profiles.json"
}OutputKết quả
{
"found": true,
"profile": {
"sftp_host": "sftp.example.net",
"sftp_port": 2022,
"sftp_username": "srv_demo",
"sftp_password": "env:MCKIT_SFTP_PASSWORD",
"api_key": "[REDACTED_SECRET]",
"name": "staging"
}
}
Plan a jar deploy (dry run, nothing is sent)Lên kế hoạch đẩy jar (dry run, không gửi gì)
mc_sftp_operations
{
"host": "sftp.example.net",
"port": 2022,
"username": "srv_demo",
"operation": "deploy_jar",
"local_path": "build/libs/MyPlugin.jar",
"remote_path": "/plugins/MyPlugin.jar",
"dry_run": true
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"dry_run": true,
"target": "sftp://srv_demo@sftp.example.net:2022/plugins/MyPlugin.jar",
"operation": "deploy_jar",
"safety_checks": {
"normalized_remote_path": "/plugins/MyPlugin.jar",
"path_traversal_blocked": true,
"secrets_redacted": true
},
"atomic_deploy_steps": [
"1. Compute local SHA-256 of build/libs/MyPlugin.jar",
"2. Upload to temporary staging file /plugins/MyPlugin.jar.mckit-upload.tmp",
"3. Backup existing /plugins/MyPlugin.jar to /plugins/MyPlugin.jar.bak (if present)",
"4. Atomic SFTP POSIX rename /plugins/MyPlugin.jar.mckit-upload.tmp -> /plugins/MyPlugin.jar",
"… 1 more"
],
"…": "3 more fields omitted"
}
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only hosting
DiagnosticsChẩn đoán lỗi
Reads crash reports, server logs, Spark profiles and config files and returns the likely cause with concrete fix steps. It also audits Gradle builds, paper-plugin.yml, permissions, proxy forwarding, database pools, world files and Folia scheduler use, without starting a server.
Đọc crash report, log server, kết quả Spark và file config, rồi trả về nguyên nhân khả dĩ cùng các bước sửa cụ thể. Ngoài ra còn kiểm tra build Gradle, paper-plugin.yml, quyền, forwarding của proxy, pool database, file world và cách dùng scheduler trên Folia, không cần bật server.
When to use itKhi nào dùng
After a crash, when TPS drops, or before moving a plugin to Folia. The Diagnostics Lab runs several of these analyzers in the browser without uploading anything.
Sau khi server crash, khi TPS tụt, hoặc trước khi đưa plugin lên Folia. Diagnostics Lab chạy một số bộ phân tích này ngay trong trình duyệt, không tải dữ liệu lên đâu.
Try itThử ngay
“Here is my crash report. What caused it and what should I change?”
“Đây là crash report của mình. Nguyên nhân là gì và cần sửa gì?”
Tools:Công cụ: mc_diagnose_crash_report, mc_diagnose_server_log, mc_audit_spark_flamegraph, mc_folia_migration_advisor, mc_audit_gradle_build, mc_audit_server_properties, mc_audit_permissions_rbac, mc_world_audit_integrity
Real output: Kết quả thật: crash report triagephân loại crash report
The crash report is a short sample written for this page (shown in the call). The diagnosis is the tool's real output.
Crash report là mẫu ngắn viết cho trang này (có trong lời gọi). Phần chẩn đoán là kết quả thật của công cụ.
Diagnose a crash reportChẩn đoán một crash report
mc_diagnose_crash_report
{
"crash_report": "---- Minecraft Crash Report ----\n// Sample input written for the docs page.\nTime: 2026-12-04 09:12:44\nDescription: Ticking entity\n\njava.lang.NullPointerException: Cannot invoke \"net.minecraft.world.entity.ai.goal.Goal.tick()\" because \"goal\" is null\n at net.minecraft.world.entity.ai.goal.GoalSelector.tick(GoalSelector.java:120)\n at net.minecraft.world.entity.Mob.serverAiStep(Mob.java:812)\n at net.minecraft.world.entity.LivingEntity.aiStep(LivingEntity.java:3100)\n\n-- Entity being ticked --\nDetails:\n Entity Type: minecraft:zombie (net.minecraft.world.entity.monster.Zombie)\n Entity ID: 5521\n Entity Name: Dungeon Guard\n Entity's Exact location: 312.50, 64.00, -88.50\n Entity's Block location: World: (312,64,-89)\n\n-- System Details --\nDetails:\n Minecraft Version: 26.3\n Paper: true\n",
"server_flavor": "paper"
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"status": "fail",
"root_cause_category": "TICKING_ENTITY",
"offending_component": {
"type": "entity",
"name": "minecraft:zombie",
"class_name": null,
"method_name": null,
"location": "World: (312,64,-89)"
},
"remediation_steps": [
"Execute console command: /minecraft:kill @e[type=minecraft:zombie,x=312,y=64,z=-89,distance=..2]",
"If server crashes before console access, load world in MCA Selector / Chunker and prune the entity from chunk data."
],
"…": "7 more fields omitted"
}
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only diagnostics
Plugin API catalogsCatalog API plugin
Two offline catalogs give the assistant real class and method signatures, so it does not guess at APIs:
Hai catalog offline cung cấp cho trợ lý chữ ký class và method thật, để nó không phải đoán API:
- RPG catalog: 10 plugins (ModelEngine, MMOItems, MMOCore, MythicCrucible and others), 41,887 members read from bytecode.
- Ecosystem catalog: 20 common server plugins (LuckPerms, Vault, PlaceholderAPI, WorldGuard, Citizens, ProtocolLib, Geyser, MythicMobs, CraftEngine, Skript and others), extracted from public Maven artifacts pinned by SHA-256.
- Catalog RPG: 10 plugin (ModelEngine, MMOItems, MMOCore, MythicCrucible và các plugin khác), 41.887 thành viên đọc từ bytecode.
- Catalog hệ sinh thái: 20 plugin server thông dụng (LuckPerms, Vault, PlaceholderAPI, WorldGuard, Citizens, ProtocolLib, Geyser, MythicMobs, CraftEngine, Skript và các plugin khác), trích từ artifact Maven công khai được ghim bằng SHA-256.
When to use itKhi nào dùng
Whenever code hooks into another plugin. The RPG catalog can also be browsed in the API Explorer.
Mỗi khi viết code móc nối vào plugin khác. Catalog RPG cũng có thể xem trên trang API Explorer.
Try itThử ngay
“How do I get the WorldGuard regions at a player's location? Look up the real API first.”
“Lấy các region WorldGuard tại vị trí người chơi thế nào? Tra API thật trước đã.”
Tools:Công cụ: mc_search_api, mc_inspect_type, mc_list_plugins
Real output: Kết quả thật: two catalog lookupshai lần tra cứu catalog
Offline lookups against the catalogs shipped in the kit.
Tra cứu offline trên các catalog có sẵn trong kit.
Ecosystem catalog: WorldGuardBộ hệ sinh thái: WorldGuard
mc_search_api
{
"terms": "getRegionContainer",
"plugin": "WorldGuard",
"catalog": "ecosystem",
"limit": 3
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"total": 2,
"results": [
{
"plugin": "WorldGuard",
"owner": "com.sk89q.worldguard.bukkit.BukkitWorldGuardPlatform",
"name": "getRegionContainer",
"kind": "method",
"return_type": "com.sk89q.worldguard.protection.regions.RegionContainer",
"catalog": "ecosystem",
"…": "9 more fields omitted"
},
{
"plugin": "WorldGuard",
"owner": "com.sk89q.worldguard.internal.platform.WorldGuardPlatform",
"name": "getRegionContainer",
"kind": "method",
"return_type": "com.sk89q.worldguard.protection.regions.RegionContainer",
"catalog": "ecosystem",
"…": "9 more fields omitted"
}
]
}
RPG catalog: ModelEngineBộ RPG: ModelEngine
mc_search_api
{
"terms": "getActiveModel",
"catalog": "rpg",
"limit": 3
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"total": 13,
"results": [
{
"plugin": "ModelEngine",
"owner": "com.ticxo.modelengine.api.animation.handler.AnimationHandler",
"name": "getActiveModel",
"kind": "method",
"return_type": "com.ticxo.modelengine.api.model.ActiveModel",
"catalog": "rpg",
"…": "9 more fields omitted"
},
{
"plugin": "ModelEngine",
"owner": "com.ticxo.modelengine.api.events.ModelSetupEvent",
"name": "getActiveModel",
"kind": "method",
"return_type": "com.ticxo.modelengine.api.model.ActiveModel",
"catalog": "rpg",
"…": "9 more fields omitted"
},
{
"plugin": "ModelEngine",
"owner": "com.ticxo.modelengine.api.model.bone.ModelBone",
"name": "getActiveModel",
"kind": "method",
"return_type": "com.ticxo.modelengine.api.model.ActiveModel",
"catalog": "rpg",
"…": "9 more fields omitted"
}
]
}
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only plugin-apis
Resource and data packsResource pack và datapack
Writes a pack.mcmeta for a range of game versions, validates item components against a target version, audits datapacks, and checks that server item configs match the models in your resource pack.
Tạo pack.mcmeta cho một dải phiên bản game, kiểm tra item component theo phiên bản đích, kiểm tra datapack, và đối chiếu config item phía server với model trong resource pack.
When to use itKhi nào dùng
A pack is reported as incompatible, a custom item shows the wrong texture, or item data written for an older version stops working.
Pack bị báo không tương thích, item tùy biến hiện sai texture, hoặc dữ liệu item viết cho bản cũ không còn chạy.
Try itThử ngay
“Check this item stack against 26.3 and tell me what to change.”
“Kiểm tra item stack này theo 26.3 và cho mình biết cần sửa gì.”
Tools:Công cụ: mc_validate_item_components, mc_generate_pack_overlay, mc_audit_datapack, mc_pack_verify_parity, mc_pack_audit_bundle, mc_version_capabilities
Real output: Kết quả thật: item component validationkiểm tra item component
The item stack is a deliberately outdated sample. The findings are the tool's real output.
Item stack là mẫu cố tình viết theo kiểu cũ. Các lỗi tìm được là kết quả thật của công cụ.
Validate an item stack for 26.3Kiểm tra một item stack cho 26.3
mc_validate_item_components
{
"payload": {
"id": "minecraft:diamond_sword",
"Count": 1,
"tag": "{Legacy:1b}",
"components": {
"minecraft:hide_tooltip": {},
"minecraft:custom_model_data": 1001,
"minecraft:unbreakable": {
"show_in_tooltip": false
},
"minecraft:max_damage": 500,
"minecraft:max_stack_size": 64
}
},
"target_version": "26.3"
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"target_version": "26.3",
"payload_kind": "item_stack",
"validated_component_count": 5,
"expected_client_item_definition_path": null,
"finding_count": 5,
"severity_counts": {
"critical": 5,
"high": 0,
"medium": 0,
"low": 0
},
"status": "fail",
"findings": [
{
"rule_id": "COMP-001",
"severity": "critical",
"title": "Legacy pre-1.20.5 item NBT keys detected at root",
"evidence": [
"tag",
"Count"
],
"problem": "Minecraft 1.20.5 through 26.3+ removed raw 'tag', uppercase 'Count', 'HideFlags', and root 'Damage' in favor of lowercase 'id', 'count', and structured 'components'.",
"remediation": "Migrate legacy NBT fields into 'components' (e.g. minecraft:custom_data, minecraft:custom_model_data, minecraft:tooltip_display)."
},
{
"rule_id": "COMP-002",
"severity": "critical",
"title": "Component 'minecraft:hide_tooltip' was removed in Minecraft 1.21.5+ / Paper 26.3",
"evidence": [
"minecraft:hide_tooltip"
],
"problem": "'minecraft:hide_tooltip' no longer exists in DataComponents on 26.3 and fails strict Codec deserialization.",
"remediation": "Replace with 'minecraft:tooltip_display': {'hide_tooltip': true}."
},
{
"rule_id": "COMP-003",
"severity": "critical",
"title": "Legacy integer minecraft:custom_model_data fails on Minecraft 1.21.4-26.3+",
"evidence": [
… 19 more lines
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only packs
Aseprite to resource packAseprite sang resource pack
The assistant draws or edits pixel art in Aseprite (run headless) from a small JSON spec, then exports it into an ordinary resource pack: item textures, .mcmeta animations, GUI sprites, font glyphs, equipment layers and armor trim patterns. A validator checks the result.
Trợ lý vẽ hoặc sửa pixel art trong Aseprite (chạy ngầm) từ một spec JSON nhỏ, rồi xuất ra resource pack bình thường: texture item, animation .mcmeta, sprite GUI, glyph font, layer trang bị và mẫu trim giáp. Bộ kiểm tra sẽ soát lại kết quả.
When to use itKhi nào dùng
You need an item icon or an animated texture and want the files placed in the right pack folders. Aseprite 1.3 or newer is required for drawing.
Cần icon item hoặc texture động và muốn file nằm đúng thư mục của pack. Cần Aseprite 1.3 trở lên để vẽ.
Try itThử ngay
“Draw a 16×16 ruby with a four-frame sparkle and export it as item ruby in namespace myserver.”
“Vẽ viên hồng ngọc 16×16 có hiệu ứng lấp lánh bốn khung hình, xuất thành item ruby trong namespace myserver.”
Tools:Công cụ: mc_aseprite_status, mc_aseprite_draw_sprite, mc_aseprite_export_pack_asset, mc_pack_validate_textures
The same steps from a shell:
Các bước tương tự bằng dòng lệnh:
python scripts/aseprite_pack_tools.py status
python scripts/aseprite_pack_tools.py draw --spec s.json --output a.aseprite
python scripts/aseprite_pack_tools.py export --kind item --pack out --namespace ns --name id --source a.aseprite
python scripts/aseprite_pack_tools.py validate --pack outReal output: Kết quả thật: a sprite drawn and exported by Asepritesprite do Aseprite vẽ và xuất
Aseprite ran headless on this machine. The spec is the test fixture in the repository.
Aseprite chạy ngầm trên máy này. Spec là fixture kiểm thử có trong repo.
Draw the sprite from a JSON specVẽ sprite từ spec JSON
mc_aseprite_draw_sprite
{
"spec": "(contents of tests/fixtures/aseprite/ruby_gem_spec.json)",
"output": "<tmp>/art/ruby.aseprite",
"preview_scale": 12,
"aseprite_binary": "<aseprite>"
}OutputKết quả
{
"ok": true,
"ran": true,
"aseprite": {
"path": "<aseprite>",
"version": "1.3.18.5",
"tested_version": "1.3.18.5",
"tested": true
},
"aseprite_file": "<tmp>/art/ruby.aseprite",
"sheet_png": "<tmp>/art/ruby.sheet.png",
"sheet_json": "<tmp>/art/ruby.sheet.json",
"size": {
"w": 16,
"h": 16
},
"frames": 4,
"layers": [
"gem",
"shine"
],
"tags": [
{
"name": "sparkle",
"from": 0,
"to": 3,
"direction": "pingpong"
}
],
"stdout": "MCKIT_ASEPRITE_OK 16x16 frames=4 layers=2",
"warnings": []
}
Export it as an item into a pack folderXuất thành item vào thư mục pack
mc_aseprite_export_pack_asset
{
"kind": "item",
"pack_dir": "<tmp>/pack",
"namespace": "docs_demo",
"name": "ruby",
"source": "<tmp>/art/ruby.aseprite",
"tag": "sparkle",
"aseprite_binary": "<aseprite>"
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"ok": true,
"kind": "item",
"pack": "<tmp>/pack",
"resource_pack_format": [
97,
1
],
"written": [
"pack.mcmeta",
"assets/docs_demo/textures/item/ruby.png",
"assets/docs_demo/textures/item/ruby.png.mcmeta",
"assets/docs_demo/models/item/ruby.json",
"… 1 more"
],
"mcmeta": {
"animation": {
"frametime": 2,
"frames": [
{
"index": 0,
"time": 3
},
1,
2,
{
"index": 3,
"time": 3
},
"… 2 more"
]
}
},
"warnings": [],
"validation": {
"ok": true,
"pack": "<tmp>/pack",
"errors": 0,
"warnings": 0,
"counts": {
… 10 more lines
Files written (pack tree) and the generated .mcmetaCác file đã ghi (cây thư mục pack) và file .mcmeta sinh ra
(directory listing of <tmp>/pack after the export)OutputKết quả
assets/docs_demo/items/ruby.json
assets/docs_demo/models/item/ruby.json
assets/docs_demo/textures/item/ruby.png
assets/docs_demo/textures/item/ruby.png.mcmeta
pack.mcmeta
# assets/docs_demo/textures/item/ruby.png.mcmeta
{
"animation": {
"frametime": 2,
"frames": [
{
"index": 0,
"time": 3
},
1,
2,
{
"index": 3,
"time": 3
},
2,
1
]
}
}
Validate the packKiểm tra pack
mc_pack_validate_textures
{
"pack_dir": "<tmp>/pack"
}OutputKết quả
{
"ok": true,
"pack": "<tmp>/pack",
"errors": 0,
"warnings": 0,
"counts": {
"textures": 1,
"mcmeta": 1,
"item_definitions": 1,
"models": 1,
"fonts": 0,
"equipment": 0
},
"findings": []
}
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only aseprite --aseprite <path-to-aseprite>
Nexo, CraftEngine and ItemsAdderNexo, CraftEngine và ItemsAdder
Takes a vanilla resource pack folder and a short item list (items, note-block blocks, furniture) and writes each plugin's own config files. Nexo and CraftEngine are the default targets; ItemsAdder is added on request. Files can go to a local server folder or over SFTP, and the plugin can be reloaded through RCON.
Nhận một thư mục resource pack vanilla và một danh sách item ngắn (item, block dạng note block, nội thất), rồi ghi ra file config đúng định dạng của từng plugin. Mặc định là Nexo và CraftEngine; ItemsAdder thêm vào khi bạn yêu cầu. File có thể ghi vào thư mục server trên máy hoặc qua SFTP, và có thể reload plugin qua RCON.
Plan, apply, roll backPlan, apply, rollback
- plan lists new and changed files with diffs and writes nothing.
- apply saves a backup set under
.mckit-backups/, writes each file atomically and returns abackup_id. - rollback restores that backup set; files changed since the deploy are skipped and reported.
- plan liệt kê file mới và file thay đổi kèm diff, không ghi gì.
- apply lưu bộ backup trong
.mckit-backups/, ghi từng file theo kiểu nguyên tử và trả vềbackup_id. - rollback khôi phục từ bộ backup đó; file đã bị sửa sau lần deploy sẽ được bỏ qua và báo lại.
python scripts/custom_content_deployer.py plan --spec spec.json --pack-dir packs/my_gear --platform nexo --platform craftengine --server-root servers/staging
python scripts/custom_content_deployer.py apply --spec spec.json --pack-dir packs/my_gear --sftp-profile staging --remote-root /home/container
python scripts/custom_content_deployer.py rollback --server-root servers/staging --backup-id 20261203T010203Z-1a2b3c4dTry itThử ngay
“Plan a Nexo and CraftEngine deploy of my ruby item to the staging server.”
“Lên plan deploy item ruby cho Nexo và CraftEngine lên server staging.”
Tools:Công cụ: mc_pack_deploy_custom_content, mc_ops_profile_vault
The RCON reload commands (nexo reload, ce reload all, iazip) are the ones each plugin documents. Whether those plugins accept them from RCON has not been verified.
Lệnh reload qua RCON (nexo reload, ce reload all, iazip) là lệnh do từng plugin ghi trong tài liệu. Việc các plugin này có nhận lệnh từ RCON hay không thì chưa được kiểm chứng.
Real output: Kết quả thật: plan, apply and a diff for Nexo and CraftEngineplan, apply và diff cho Nexo và CraftEngine
The pack is the one exported in the Aseprite showcase. The server is an empty temp folder, so apply wrote to disk only there.
Pack là pack vừa xuất ở phần Aseprite. Server là một thư mục tạm trống, nên apply chỉ ghi vào đó.
1. Plan against an empty server folder (writes nothing)1. Plan với thư mục server trống (không ghi gì)
mc_pack_deploy_custom_content
{
"action": "plan",
"spec": {
"pack": {
"name": "docs_demo_gear",
"namespace": "docs_demo"
},
"items": [
{
"id": "ruby",
"display_name": "<red>Ruby",
"texture": "docs_demo:item/ruby",
"lore": [
"<!i><gray>Shiny"
]
}
]
},
"pack_dir": "<tmp>/pack",
"platforms": [
"nexo",
"craftengine"
],
"target": "local",
"server_root": "<tmp>/server"
}OutputKết quả
{
"dry_run": true,
"counts": {
"new": 12
},
"plan": [
"new plugins/CraftEngine/resources/docs_demo_gear/configuration/docs_demo_gear.yml",
"new plugins/CraftEngine/resources/docs_demo_gear/pack.yml",
"new plugins/CraftEngine/resources/docs_demo_gear/resourcepack/assets/docs_demo/items/ruby.json",
"new plugins/CraftEngine/resources/docs_demo_gear/resourcepack/assets/docs_demo/models/item/ruby.json",
"new plugins/CraftEngine/resources/docs_demo_gear/resourcepack/assets/docs_demo/textures/item/ruby.png",
"new plugins/CraftEngine/resources/docs_demo_gear/resourcepack/assets/docs_demo/textures/item/ruby.png.mcmeta",
"new plugins/Nexo/items/docs_demo_gear/docs_demo_gear.yml",
"new plugins/Nexo/pack/external_packs/docs_demo_gear/assets/docs_demo/items/ruby.json",
"new plugins/Nexo/pack/external_packs/docs_demo_gear/assets/docs_demo/models/item/ruby.json",
"new plugins/Nexo/pack/external_packs/docs_demo_gear/assets/docs_demo/textures/item/ruby.png",
"new plugins/Nexo/pack/external_packs/docs_demo_gear/assets/docs_demo/textures/item/ruby.png.mcmeta",
"new plugins/Nexo/pack/external_packs/docs_demo_gear/pack.mcmeta"
]
}
2. Apply (backs up, then writes)2. Apply (sao lưu rồi mới ghi)
mc_pack_deploy_custom_content
{
"action": "apply",
"spec": {
"pack": {
"name": "docs_demo_gear",
"namespace": "docs_demo"
},
"items": [
{
"id": "ruby",
"display_name": "<red>Ruby",
"texture": "docs_demo:item/ruby",
"lore": [
"<!i><gray>Shiny"
]
}
]
},
"pack_dir": "<tmp>/pack",
"platforms": [
"nexo",
"craftengine"
],
"target": "local",
"server_root": "<tmp>/server"
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"backup_id": "20261203T180553Z-2497a648",
"counts": {
"new": 12
},
"…": "7 more fields omitted"
}
3. Rename the item and plan again: only the changed lines show up3. Đổi tên item rồi plan lại: chỉ hiện các dòng thay đổi
mc_pack_deploy_custom_content
{
"action": "plan",
"spec": {
"pack": {
"name": "docs_demo_gear",
"namespace": "docs_demo"
},
"items": [
{
"id": "ruby",
"display_name": "<gold>Ruby of Embers",
"texture": "docs_demo:item/ruby",
"lore": [
"<!i><gray>Shiny"
]
}
]
},
"pack_dir": "<tmp>/pack",
"platforms": [
"nexo",
"craftengine"
],
"target": "local",
"server_root": "<tmp>/server"
}OutputKết quả
counts: {"changed": 2, "unchanged": 10}
--- a/plugins/CraftEngine/resources/docs_demo_gear/configuration/docs_demo_gear.yml
+++ b/plugins/CraftEngine/resources/docs_demo_gear/configuration/docs_demo_gear.yml
@@ -3,7 +3,7 @@
"docs_demo:ruby":
material: "paper"
data:
- item_name: "<red>Ruby"
+ item_name: "<gold>Ruby of Embers"
lore:
- "<!i><gray>Shiny"
texture: "docs_demo:item/ruby"
--- a/plugins/Nexo/items/docs_demo_gear/docs_demo_gear.yml
+++ b/plugins/Nexo/items/docs_demo_gear/docs_demo_gear.yml
@@ -1,6 +1,6 @@
# Generated by minecraftkit custom_content_generator for pack docs_demo_gear
ruby:
- itemname: "<red>Ruby"
+ itemname: "<gold>Ruby of Embers"
material: "PAPER"
lore:
- "<!i><gray>Shiny"
4. The generated YAML (action: generate)4. YAML được sinh ra (action: generate)
mc_pack_deploy_custom_content
{
"action": "generate",
"spec": {
"pack": {
"name": "docs_demo_gear",
"namespace": "docs_demo"
},
"items": [
{
"id": "ruby",
"display_name": "<gold>Ruby of Embers",
"texture": "docs_demo:item/ruby",
"lore": [
"<!i><gray>Shiny"
]
}
]
},
"pack_dir": "<tmp>/pack",
"platforms": [
"nexo",
"craftengine"
],
"target": "local",
"server_root": "<tmp>/server"
}OutputKết quả
# plugins/CraftEngine/resources/docs_demo_gear/configuration/docs_demo_gear.yml
# Generated by minecraftkit custom_content_generator for pack docs_demo_gear
items:
"docs_demo:ruby":
material: "paper"
data:
item_name: "<gold>Ruby of Embers"
lore:
- "<!i><gray>Shiny"
texture: "docs_demo:item/ruby"
# plugins/CraftEngine/resources/docs_demo_gear/pack.yml
author: "unknown"
version: "1.0"
description: "docs_demo_gear custom content"
namespace: "docs_demo"
# plugins/Nexo/items/docs_demo_gear/docs_demo_gear.yml
# Generated by minecraftkit custom_content_generator for pack docs_demo_gear
ruby:
itemname: "<gold>Ruby of Embers"
material: "PAPER"
lore:
- "<!i><gray>Shiny"
Pack:
texture: "docs_demo:item/ruby"
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only custom-content --aseprite <path-to-aseprite>
Fabric and NeoForge modsMod Fabric và NeoForge
Looks up the correct versions for a Minecraft release (Java, Fabric Loader, Loom, Fabric API, NeoForge, ModDevGradle), generates a project modelled on the official templates, and checks a built jar for broken metadata, missing mixins, client classes reachable from common code and bytecode newer than the game's Java.
Tra đúng phiên bản cho từng bản Minecraft (Java, Fabric Loader, Loom, Fabric API, NeoForge, ModDevGradle), tạo dự án theo template chính thức, và kiểm tra file jar đã build: metadata sai, mixin thiếu, class client lọt vào code chung, bytecode mới hơn Java của game.
When to use itKhi nào dùng
Starting a mod, or porting one to a new release. From 26.1 the game ships unobfuscated: Loom no longer remaps and Java 25 is required. Fabric is supported from 1.20.1 and NeoForge from 1.21.1. Static checks do not replace starting a server with the jar.
Bắt đầu một mod, hoặc chuyển mod sang bản mới. Từ 26.1 game không còn bị obfuscate: Loom không remap nữa và cần Java 25. Fabric được hỗ trợ từ 1.20.1, NeoForge từ 1.21.1. Kiểm tra tĩnh không thay được việc chạy thử jar trên server.
Try itThử ngay
“Create a Fabric 26.3 mod project with the right Loom and Fabric API versions, then inspect build/libs after I build it.”
“Tạo dự án mod Fabric 26.3 với đúng phiên bản Loom và Fabric API, build xong thì kiểm tra giúp file trong build/libs.”
Tools:Công cụ: mc_mod_resolve_toolchain, mc_mod_generate_scaffold, mc_mod_inspect_jar
Real output: Kết quả thật: toolchain, scaffold and jar checktoolchain, khung dự án và kiểm tra jar
Version values are fetched from the official endpoints; each one says live or pinned. The inspected jar was built with ./gradlew build (Temurin 25) from a 26.3 Fabric scaffold generated by the kit; the check ran against the official 26.3 client.jar.
Các phiên bản được lấy từ nguồn chính thức; mỗi giá trị ghi rõ live hay pinned. File jar được kiểm tra build bằng ./gradlew build (Temurin 25) từ khung dự án Fabric 26.3 do kit tạo; phần kiểm tra mixin chạy với client.jar 26.3 chính thức.
Resolve the Fabric toolchain for 26.3Tra toolchain Fabric cho 26.3
mc_mod_resolve_toolchain
{
"loader": "fabric",
"mc_version": "26.3"
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"loader": "fabric",
"mc_version": "26.3",
"unobfuscated": true,
"java": {
"value": 25,
"source": "live",
"…": "1 more field omitted"
},
"mappings": "none",
"loom_plugin_id": "net.fabricmc.fabric-loom",
"loom": {
"value": "1.19.7",
"source": "live",
"…": "1 more field omitted"
},
"fabric_loader": {
"value": "0.20.1",
"source": "live",
"…": "1 more field omitted"
},
"fabric_api": {
"value": "0.168.0+26.3",
"source": "live",
"…": "1 more field omitted"
},
"gradle": {
"value": "9.8.2",
"source": "live",
"…": "2 more fields omitted"
},
"resolution": "live",
"pinned_snapshot_date": "2026-12-03"
}
Generate a scaffold (in memory, no output_dir)Tạo khung dự án (trong bộ nhớ, không có output_dir)
mc_mod_generate_scaffold
{
"loader": "fabric",
"mc_version": "26.3",
"mod_id": "docs_demo"
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"files": [
".github/workflows/build.yml",
".gitignore",
"build.gradle",
"gradle.properties",
"gradle/wrapper/gradle-wrapper.properties",
"settings.gradle",
"src/client/java/com/example/docs_demo/client/DocsDemoModClient.java",
"src/client/java/com/example/docs_demo/client/mixin/ExampleClientMixin.java",
"src/client/resources/docs_demo.client.mixins.json",
"src/main/java/com/example/docs_demo/DocsDemoMod.java",
"src/main/java/com/example/docs_demo/mixin/ExampleMixin.java",
"src/main/resources/docs_demo.mixins.json",
"src/main/resources/fabric.mod.json"
],
"next_steps": [
"Install JDK 25 and point Gradle at it (Gradle must itself run on Java 25 for Minecraft 26.1+, per the Fabric 26.1 announcement).",
"Add the wrapper scripts: run `gradle wrapper --gradle-version 9.8.2` in a scratch folder containing only an empty settings.gradle, then copy gradlew, gradlew.bat and gradle/wrapper/gradle-wrapper.jar in (running it inside the project fails … (156 more chars)",
"Run `./gradlew build`; the mod jar lands in build/libs/.",
"Inspect the built jar with mc_mod_inspect_jar before publishing."
],
"…": "3 more fields omitted"
}
Inspect a jar built from that kind of scaffoldKiểm tra jar build từ khung dự án như vậy
mc_mod_inspect_jar
{
"jar_path": "build/libs/mckit_probe-1.0.0.jar",
"minecraft_jar": "<minecraft>/mc-26.3-client.jar"
}OutputKết quả
{
"jar": "build/libs\\mckit_probe-1.0.0.jar",
"loaders": [
"fabric"
],
"mod_ids": [
"mckit_probe"
],
"verdict": "pass",
"counts": {
"error": 0,
"warning": 0,
"info": 0
},
"stats": {
"entries": 8,
"classes": 4,
"bytecode_java": 25,
"minecraft_range": "~26.3",
"mixin_configs": [
"mckit_probe.mixins.json",
"mckit_probe.client.mixins.json"
],
"mixin_classes": 2,
"classes_reachable_from_common": 2,
"mixin_target_check": {
"checked": true,
"target_classes": 2,
"injector_selectors": 2
}
},
"findings": [],
"limits": [
"Side-safety is a static reference walk: a flagged path is safe if it is guarded so it only runs on the physical client; an unflagged jar can still crash through reflection or string class names.",
"Mixin target checks need minecraft_jar and are only meaningful for unobfuscated (26.1+) Minecraft."
]
}
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only mods --mod-jar <built-mod.jar> --minecraft-jar <26.3-client.jar>
The /mc:* skillsCác kỹ năng /mc:*
Fourteen slash commands, each a focused workflow the assistant follows for one topic. They load the reference handbooks shipped with the kit (references/*.md and docs/plugin-engineering-handbook.md), which cover Java and Kotlin, Gradle, configuration, Paper and Folia threading, persistence, versioning, QA and publishing. If you are not sure which one fits, mc_route_skill recommends one.
Mười bốn lệnh gạch chéo, mỗi lệnh là một quy trình trợ lý làm theo cho một chủ đề. Các kỹ năng này dùng bộ tài liệu tham khảo đi kèm kit (references/*.md và docs/plugin-engineering-handbook.md), gồm Java và Kotlin, Gradle, cấu hình, luồng trên Paper và Folia, lưu trữ dữ liệu, quản lý phiên bản, QA và phát hành. Không chắc nên dùng kỹ năng nào thì mc_route_skill sẽ gợi ý.
| CommandLệnh | TopicChủ đề |
|---|---|
/mc:core | Paper, Folia, Purpur, Velocity, Fabric, NeoForge runtimes and versionsNền tảng Paper, Folia, Purpur, Velocity, Fabric, NeoForge và phiên bản |
/mc:build | Gradle builds, Shadow relocation, databases, CIBuild Gradle, relocate Shadow, database, CI |
/mc:rpg | RPG systems and RPG plugin integrationsHệ thống RPG và tích hợp plugin RPG |
/mc:protocol | Packets and network codePacket và code mạng |
/mc:nms | Server internals and mappingsCode nội bộ server và mapping |
/mc:bot | Test botsBot kiểm thử |
/mc:ops | Hosting panels, 2FA and SFTPPanel hosting, 2FA và SFTP |
/mc:qa | End-to-end test pipeline: audit, deploy, bot test, reportQuy trình test trọn gói: kiểm tra, deploy, test bằng bot, báo cáo |
/mc:suite | The 10 companion command-line tools10 công cụ dòng lệnh đi kèm |
/mc:pack | Resource packs, data packs, fonts and item modelsResource pack, datapack, font và model item |
/mc:model | Blockbench models, animations, ModelEngineModel Blockbench, animation, ModelEngine |
/mc:shader | Core and post shadersShader core và post |
/mc:dialog | Server-driven dialogs and click actionsDialog do server điều khiển và hành động click |
/mc:client | Client mods versus what a vanilla client can displayMod client so với những gì client vanilla hiển thị được |
Real output: Kết quả thật: skill routingchọn kỹ năng
Routing is offline keyword and signal matching over the 14 routes.
Việc chọn kỹ năng chạy offline, dựa trên từ khóa và tín hiệu của 14 tuyến.
Ask which skill fits a taskHỏi kỹ năng nào hợp với việc cần làm
mc_route_skill
{
"task": "Make my RPG dungeon teleport work on Folia"
}Output (trimmed, “…” marks cuts)Kết quả (đã rút gọn, “…” là chỗ cắt)
{
"task": "Make my RPG dungeon teleport work on Folia",
"primary_route": {
"id": "rpg",
"route": "mc:rpg",
"slash_command": "/mc:rpg",
"skill_directory": "mc-rpg",
"name": "RPG Systems",
"reference": "references/rpg-feature-design.md",
"score": 4,
"matched_signals": [
"dungeon",
"rpg"
]
},
"secondary_routes": [
{
"id": "core",
"route": "mc:core",
"slash_command": "/mc:core",
"skill_directory": "mc-core",
"name": "Minecraft Core",
"reference": "references/core-platforms-and-versions.md",
"score": 2,
"matched_signals": [
"folia"
]
}
],
"recommended_references": [
"references/rpg-feature-design.md",
"references/core-platforms-and-versions.md",
"references/api-lookup.md",
"references/plugin-routing-index.md",
"… 1 more"
],
"…": "3 more fields omitted"
}
Reproduce:Chạy lại: python scripts/build_docs_showcases.py run --only skills
FAQ and troubleshootingHỏi đáp và sửa lỗi
“Python 3.10+ was not found on PATH”Báo lỗi “Python 3.10+ was not found on PATH”
The MCP server runs on Python. Install Python 3.10 or newer, make sure python (Windows) or python3 (macOS, Linux) works in a terminal, then run npx minecraftkit doctor.
MCP server chạy bằng Python. Cài Python 3.10 trở lên, đảm bảo lệnh python (Windows) hoặc python3 (macOS, Linux) chạy được trong terminal, rồi chạy npx minecraftkit doctor.
“MinecraftKit catalogs were not found locally”Báo lỗi “MinecraftKit catalogs were not found locally”
The kit is not installed yet. Run npx minecraftkit install --target both, start the server from a clone, or pass --root <dir>.
Kit chưa được cài. Chạy npx minecraftkit install --target both, chạy server từ bản clone, hoặc truyền --root <thư-mục>.
Which Java version do I need?Cần Java phiên bản nào?
The kit itself does not need Java. The companion mckit-bridge-plugin targets Java 21 on Paper and Folia; its source is in the repository's bridge-plugin/ folder and is not part of the installed kit. Mods follow the game version: 26.1 and newer need Java 25, and 1.20.5 to 1.21.11 need Java 21. mc_mod_resolve_toolchain and mc_version_capabilities give the exact value.
Bản thân kit không cần Java. Plugin đi kèm mckit-bridge-plugin dùng Java 21 trên Paper và Folia; mã nguồn nằm trong thư mục bridge-plugin/ của repo, không có trong bản kit đã cài. Mod thì theo phiên bản game: từ 26.1 trở lên cần Java 25, từ 1.20.5 đến 1.21.11 cần Java 21. mc_mod_resolve_toolchain và mc_version_capabilities cho giá trị chính xác.
Aseprite is not installed or not foundChưa cài Aseprite hoặc kit không tìm thấy
Aseprite is paid software (official site or Steam), or you can compile it under its EULA. Put aseprite on your PATH or set ASEPRITE_PATH to the executable. Without it you can still generate the Lua script only (emit_script_only), or export a sprite sheet PNG and JSON yourself and run the exporter and validator on them.
Aseprite là phần mềm trả phí (trang chủ hoặc Steam), hoặc bạn tự build theo EULA của họ. Thêm aseprite vào PATH hoặc đặt biến ASEPRITE_PATH trỏ tới file chạy. Không có Aseprite, bạn vẫn có thể chỉ sinh script Lua (emit_script_only), hoặc tự xuất sprite sheet PNG và JSON rồi chạy bước export và validate trên đó.
How do I give SFTP credentials without pasting a password into the chat?Làm sao đưa thông tin SFTP mà không dán mật khẩu vào chat?
Set the password as an environment variable (for example MCKIT_SFTP_PASSWORD) and save a vault profile with "sftp_password": "env:MCKIT_SFTP_PASSWORD". Tools such as the custom-content deploy accept the profile name. See Hosting and SFTP.
Đặt mật khẩu thành biến môi trường (ví dụ MCKIT_SFTP_PASSWORD) và lưu profile với "sftp_password": "env:MCKIT_SFTP_PASSWORD". Các công cụ như deploy item tùy biến nhận tên profile. Xem mục Hosting và SFTP.
My bots never join the real serverBot không vào được server thật
The installed kit has no bot/ folder, so auto mode falls back to a protocol probe and an offline simulation. Clone the repository, run npm install in its bot/ folder and start the MCP server with --root pointing at the clone (steps). Check that the server is reachable with mc_bot_ping_server.
Bản kit đã cài không có thư mục bot/, nên chế độ auto chỉ dò protocol và mô phỏng offline. Hãy clone repo, chạy npm install trong thư mục bot/ của bản clone, rồi chạy MCP server với --root trỏ vào bản clone (các bước). Kiểm tra server có kết nối được không bằng mc_bot_ping_server.
Will the assistant change my server without asking?Trợ lý có tự ý sửa server của mình không?
SFTP operations, hosting panel actions and RCON commands default to a dry run, and the custom-content deploy has a separate plan step that writes nothing. Config patches keep a .mckit.bak copy, and deploys keep a backup set you can roll back.
Thao tác SFTP, lệnh panel hosting và lệnh RCON mặc định chỉ chạy thử (dry run), còn deploy item tùy biến có riêng bước plan không ghi gì. Khi sửa config luôn có bản .mckit.bak, còn deploy thì có bộ backup để rollback.
Where did the old wiki go?Wiki cũ đâu rồi?
This page replaces it. Old wiki.html links redirect here.
Trang này thay cho wiki cũ. Các liên kết wiki.html cũ sẽ tự chuyển về đây.
More resourcesTài liệu khác
- Showcase: interactive tour of the kitgiới thiệu tương tác về kit
- Ecosystem Atlas: upstream sources and Minecraft versionsnguồn upstream và phiên bản Minecraft
- API Explorer: browse the RPG catalogxem catalog RPG
- Diagnostics Lab: analyzers that run in the browsercác bộ phân tích chạy trong trình duyệt
- GitHub: SalyyS1/minecraftkit
- Reference handbooks (Markdown)Bộ tài liệu tham khảo (Markdown)
- npm: minecraftkit
No section matches your search.Không có mục nào khớp với từ khóa.