diff --git a/.claude/skills b/.claude/skills new file mode 120000 index 00000000..4ca0ec66 --- /dev/null +++ b/.claude/skills @@ -0,0 +1 @@ +../.skills \ No newline at end of file diff --git a/.codex/skills b/.codex/skills new file mode 120000 index 00000000..4ca0ec66 --- /dev/null +++ b/.codex/skills @@ -0,0 +1 @@ +../.skills \ No newline at end of file diff --git a/.cursor/skills b/.cursor/skills new file mode 120000 index 00000000..4ca0ec66 --- /dev/null +++ b/.cursor/skills @@ -0,0 +1 @@ +../.skills \ No newline at end of file diff --git a/.gitignore b/.gitignore index 6a75425a..d50b7434 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,6 @@ /Other/ /.vs/ SessionCache.ini -.* !/.github /packages @@ -428,3 +427,6 @@ MinecraftOfficial/ /mcc_input.txt /MinecraftClient.ini /MinecraftClient.backup.ini + +# Other +.* diff --git a/.skills/mcc-dev-workflow/SKILL.md b/.skills/mcc-dev-workflow/SKILL.md new file mode 100644 index 00000000..bc721633 --- /dev/null +++ b/.skills/mcc-dev-workflow/SKILL.md @@ -0,0 +1,28 @@ +# MCC Development Workflow + +## Project Overview +- Repo: `~/Minecraft/Minecraft-Console-Client` (env var `$MCC_REPO`) +- Solution: `MinecraftClient.sln` (projects: `MinecraftClient` + `ConsoleInteractive`) +- Build: `dotnet build MinecraftClient.sln -c Release` +- Servers: `~/Minecraft/Servers/` (env var `$MCC_SERVERS`) + +## Typical Debug Workflow +1. `~/Minecraft/Servers/start-server.sh 1.20.6-Vanilla` (background) +2. Wait for "Done" in server output +3. Build: `dotnet build $MCC_REPO/MinecraftClient.sln -c Release` +4. Run MCC: `cd $MCC_REPO && MCC_FILE_INPUT=1 dotnet run --project MinecraftClient -c Release -- CursorBot - localhost 2>&1` +5. RCON: `mc-rcon "op CursorBot"` +6. MCC cmd: `echo "inventory player list" >> $MCC_REPO/mcc_input.txt` +7. Read terminal file to see output +8. Kill MCC → rebuild → repeat + +## Timing Reference +| Operation | Typical Duration | +|-----------|-----------------| +| MCC startup → join server | ~1s | +| FileInput command → response | <500ms | + +## Official Minecraft Server Source (Decompiled) +`$MCC_REPO/MinecraftOfficial/` contains decompiled official server code for protocol reference. +When investigating protocol details (packet structure, field order, NBT format, etc.), +look at the corresponding version's decompiled source as authoritative reference. diff --git a/.cursor/skills/mcc-version-adaptation/SKILL.md b/.skills/mcc-version-adaptation/SKILL.md similarity index 100% rename from .cursor/skills/mcc-version-adaptation/SKILL.md rename to .skills/mcc-version-adaptation/SKILL.md