Skip to content

Use bedrock-protocol for RakNet and Nethernet discovery - #37

Merged
extremeheat merged 3 commits into
masterfrom
fix/shared-bedrock-discovery
Sep 22, 2026
Merged

extremeheat merged 3 commits into
masterfrom
fix/shared-bedrock-discovery

Conversation

@extremeheat

@extremeheat extremeheat commented Sep 22, 2026 •

Copy link
Copy Markdown
Owner

Replace #36 with discovery delegated to bedrock-protocol. The server runner selects RakNet or Nethernet from the generated server.properties, calls Bedrock's shared ping() API, and formats the metadata. Remove the runner's own UDP ping implementation and semicolon parser; there are no local Nethernet schemas or crypto/packet implementations.

The result adds transport, preserves the raw advertisement, and reports Nethernet's advertisement layout version. Empty advertisements cause retries instead of returning empty metadata. The public parsePongDetails helper delegates advertisement decoding to Bedrock as well. Discovery can report a Minecraft version that Bedrock cannot yet connect to.

Uses the published bedrock-protocol@^3.60.0, including the shared discovery API from PrismarineJS/bedrock-protocol#822. Advertisement schemas remain in Bedrock; no schema-extraction PRs, Git pins, or extra minecraft-data release are needed.

This is a production dependency on Bedrock; Bedrock's reverse dependency on this runner is development-only. Node 24 is now required, and CI is updated accordingly. Nethernet LAN discovery requires LAN visibility and one discoverable local server at a time, documented in the README.

Validation: lint and the API/server tests passed locally against the shared Bedrock checkout, including real RakNet 1.21.80 and Nethernet 1.26.51 metadata queries. The CLI help test passes with its allowance raised from 2 to 10 seconds for the larger dependency tree. Linux and Windows CI passed with the Git dependency; CI is running again against the published npm dependency.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-22T11:32:25.136421Z ebb3f3b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@extremeheat
extremeheat merged commit 4cacabe into master Sep 22, 2026
3 checks passed
@extremeheat

Copy link
Copy Markdown
Owner Author

/makerelease

@github-actions github-actions Bot mentioned this pull request Sep 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant