ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 FatihBastan

mc-pvp-bots

一款 Claude Code 外掛,當 Claude 執行長時間任務時,會把你丟進本機 Minecraft 競技場與最多 8 個 PvP 機器人對戰;Claude 完成或需要你回應時,戰鬥會凍結並把終端機交還給你。

尚未翻譯

關於這個 mod

安裝方式為在 Claude Code 中執行 /plugin marketplace add FatihBastan/mc-pvp-bots、/plugin install mc-pvp-bots@mc-pvp-bots,再以 /pvp on 啟動。需要 Minecraft: Java Edition、Prism Launcher(或改用 manual 啟動器連線 127.0.0.1:25599)、Java 21+、Node.js 20+、Claude Code 2.1.287+ 以及 4–6 GB 可用記憶體。功能包含:短提問不會打斷遊戲、進場倒數、同時僅 1–2 個機器人追擊、離開畫面 2 秒後自動進入 AFK 安全狀態、Claude 需要權限或回答時凍結並以鈴聲與紅色橫幅提示、結束後顯示擊殺/死亡計分;spinner 會即時顯示 ⚔ 2K 1D。機器人分為 Rookie、Brawler、Duelist、Sweat 四種難度(反應時間 420ms 至 90ms),預設 8 人組合為 2/3/2/1。指令有 /pvp、/pvp on|off、/pvp bots 4|6|8、/pvp difficulty mixed|easy|medium|hard、/pvp play、/pvp stop,其餘設定在 /config 的 mc-pvp-bots 之下。遊戲在自己的行程中執行,不影響 Claude 效能;伺服器僅接受本機連線、關閉內建使用統計,僅在初次設定時下載 Paper 伺服器、機器人函式庫與 Minecraft;閒置 15 分鐘會自動關閉且不影響你原有的 Minecraft 實例。僅支援單人對機器人,Windows 與 Linux(含 macOS)可用。卸載方式為 /pvp off、/plugin uninstall mc-pvp-bots@mc-pvp-bots,再刪除 ~/.claude-pvp 與 Prism 中的 Claude PvP 實例。MIT 授權,機器人採用 mineflayer、伺服器採用 Paper,非 Mojang 或 Microsoft 官方產品。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add FatihBastan/mc-pvp-bots
claude plugin install mc-pvp-bots
原文 / README

⚔ MC PvP Bots

Fight Minecraft PvP bots while Claude works. Get handed back the moment it's done.

You send Claude a big task. Instead of watching a spinner, you're dropped into a small arena with up to 8 bots. When Claude finishes, or needs an answer from you, the fight freezes and your terminal comes back.

It all runs on your own computer. No servers to pay for, no accounts besides your own Minecraft.

<!-- Add a short GIF here: drop-in → fight → "Claude's done" → back in the terminal -->

Install

In Claude Code:

/plugin marketplace add FatihBastan/mc-pvp-bots
/plugin install mc-pvp-bots@mc-pvp-bots
/pvp on

The first /pvp on asks you to accept Minecraft's EULA, then sets everything up. It takes a couple of minutes, once. Progress shows under the prompt. The first time you're dropped in, Prism also downloads Minecraft 1.21.4 for its own instance, so that first launch is slower.

What you need

  • Minecraft: Java Edition (you need to own it)
  • Prism Launcher, with your Microsoft account added once. On Windows: winget install --exact PrismLauncher.PrismLauncher
  • Java 21 or newer, e.g. Temurin 21
  • Node.js 20 or newer
  • Claude Code 2.1.287 or newer
  • 4–6 GB of free memory while you play

Don't want Prism? Set the launcher to manual and join 127.0.0.1:25599 from your normal Minecraft launcher.

How it plays

  • Short questions never interrupt you. You're only pulled in once Claude has been working for 10 seconds.
  • 3… 2… 1… FIGHT. Every time you enter, you get a countdown where nobody can hit you.
  • Only 1–2 bots chase you at once (one more if you hit it). The rest fight each other, so you can crash their fights.
  • Need to check on Claude mid-fight? Just alt-tab. After 2 seconds without moving the camera you're marked AFK: safe, and ignored by every bot. Move the camera when you're back and you get a fresh countdown.
  • Claude needs you (a permission, a question, a form)? The bots freeze, a bell rings, a red banner says what it needs, and your terminal comes back. Answer it and you're straight back in the fight after a 3-2-1.
  • Claude's done? Everything freezes, your terminal comes back, and you get your score: Claude's done · ⚔ 3 kills, 1 death.

The spinner shows your live score while you play, e.g. ⚔ 2K 1D.

The bots

| | Reacts in | Misses | Tricks | | :- | -: | -: | :- | | Rookie | 420 ms | often | mostly walks straight at you | | Brawler | 260 ms | sometimes | strafes, the odd crit | | Duelist | 160 ms | rarely | strafes, crits, combos | | Sweat | 90 ms | almost never | all of it, all the time |

The default 8-bot lobby has 2 Rookies, 3 Brawlers, 2 Duelists and 1 Sweat. Everyone gets iron armor and a diamond sword that never breaks.

Commands

| | | | :- | :- | | /pvp | Is it on, is the arena up, who's in it | | /pvp on · /pvp off | Start or stop being dropped in. Off also closes everything. | | /pvp bots 4 · 6 · 8 | How many bots | | /pvp difficulty mixed · easy · medium · hard | How good they are | | /pvp play | Jump in right now | | /pvp stop | Close the arena now |

Timings, window switching and more are in /config, under mc-pvp-bots.

FAQ

Does it slow Claude down? No. The game runs in its own processes. Minecraft is capped at 60 fps with low render distance, the server is a tiny empty world, and the bots do nothing while frozen.

Does anything get sent online? Not from the arena. The server only accepts connections from your own computer, and it reports nothing anywhere (the server's built-in usage stats are switched off). The only downloads are the one-time setup: the Paper server, the bot library, and Minecraft itself through Prism. Minecraft talks to Microsoft as usual when you log in, like it always does.

What happens if I close something? Nothing is left running. Close Minecraft and the bots stop. Quit or crash Claude Code and the arena pauses by itself. When nobody's used it for 15 minutes, it shuts down and closes the Minecraft it opened. It never touches your other Minecraft instances.

Can I play with friends? Not yet. It's you against bots, on your own machine.

Does it work on Windows and Linux? Yes. Switching windows works best on macOS and Linux (X11). On Wayland and some Windows setups you may have to alt-tab yourself; the game tells you when.

Why Minecraft 1.21.4? It's the version the bots are most reliable on. Prism installs it for you in a separate instance, so your own Minecraft is untouched.

Uninstall

/pvp off
/plugin uninstall mc-pvp-bots@mc-pvp-bots

Then delete the ~/.claude-pvp folder, and the "Claude PvP" instance in Prism if you like.


Curious how it works, or want to hack on it? See HOW-IT-WORKS.md.

Made by Fatih Baştan · MIT License · Bots by mineflayer, server by Paper

NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.

更多類似作品