Thanks for helping with UMPK. Small, well-tested changes are easier to review and safer across 50 protocol revisions.
Please follow the Code of Conduct.
- Search existing issues and pull requests.
- Open an issue before a large API, architecture, dependency, or protocol-data change.
- State which Minecraft versions and protocol numbers the change affects.
- Use a server that you control for live tests.
You need the .NET 10 SDK. Protocol extraction also needs Python 3.10 or later and a compatible Java runtime. Keep Mojang jars, mappings, and decompiled source in the ignored MinecraftOfficial/ directory.
Initialize the skills from the repository directory:
git submodule update --init MCC-SkillsThe .skills shortcuts link to the pinned MCC Skills submodule. ASD-STE100 and UMPK integration testing remain local. Read agent skills for setup and revision updates.
dotnet restore
dotnet build UMPK.sln
dotnet test UMPK.slnRun one project or test while you work:
dotnet test tests/Umpk.Client.Tests
dotnet test tests/Umpk.Protocol.Java.Tests --filter "FullyQualifiedName~PacketName"- Reproduce the problem with a focused test.
- Check version-specific behavior against the matching vanilla release.
- Make the smallest change that fixes the problem.
- Run the focused test and nearby version boundaries.
- Update public API files, generated data, documentation, and test counts when required.
- Run the complete validation gate.
Do not add server-specific workarounds. Put era differences in the dataset or existing capability model. Do not hardcode protocol numbers in shared engine code.
Do not edit .g.cs files or generated pins by hand. Change the source dataset or generator, then regenerate the output.
Read Adding a version before a protocol change. Record the official artifact, version, hash, source location, and observed wire behavior in the pull request.
Never commit Minecraft jars, libraries, decompiled source, credentials, token caches, raw logs, heap dumps, or private packet captures.
Run these commands from the repository root:
dotnet build UMPK.sln
dotnet test UMPK.sln 2>&1 | tee /tmp/umpk-test.log
python3 engineering/testcounts/check_test_counts.py /tmp/umpk-test.log \
--baseline engineering/testcounts/expected_counts.json
dotnet format --verify-no-changes
dotnet run --project tools/Umpk.DataGen -- verify --data data/java
python3 tools/extraction/extract_lang.py --data data/java --checkIf generated data changed, regenerate it and check the diff:
dotnet run --project tools/Umpk.DataGen -- generate \
--data data/java \
--out src/Umpk.Data.Java \
--out-lang src/Umpk.Data.Lang \
--protocol-out src/Umpk.Protocol.Java
git diff --exit-code -- src/Umpk.Data.Java src/Umpk.Data.Lang src/Umpk.Protocol.JavaA skipped test or a missing local server is not a pass. State every check that you could not run. Store temporary logs outside the repository.
Keep each pull request focused. Explain the problem, the chosen behavior, affected versions, and validation results. Include screenshots only when they help review output or documentation.
Review your own diff before submission. Remove debugging code and unrelated formatting. Check that no secret or downloaded game artifact entered the commit.
Maintainers preparing a package release must follow Releasing NuGet packages, including the one-time trusted-publishing setup and the local artifact-backed language check.
AI output is an untrusted draft. Review every changed line and check all protocol claims against official artifacts or captured bytes. Do not paste secrets, user data, auth caches, private server addresses, or private captures into an AI service.
Read Using AI for the full policy.