Update datagen for Bedrock 1.26.40 - #4
Open
HashimTheArab wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cloudburst block-palette conversion
The new
cmd/blockstatescommand does not generate, reinterpret, or infer block states from BDS traffic. Modern BDS does not transmit the complete built-in vanilla block palette, but Dragonfly still needs that complete runtime-ID-ordered registry to decode chunks and resolve block-backed creative items.The command takes Cloudburst Data's exact-version
block_palette.nbtand converts only its storage representation:The state ordering and contents are preserved. BDS remains the source for the registries it does transmit: vanilla items, creative inventory, crafting recipes, and potion data.
Usage
go run ./cmd/blockstates \ -input /path/to/cloudburst/block_palette.nbt \ -output /path/to/dragonfly/server/world/block_states.nbt go run . -address 127.0.0.1:19142 -offlineThe block palette must be installed in Dragonfly before capturing creative content so its block runtime IDs resolve against the matching registry.
Dependencies
This branch temporarily uses the matching HashimTheArab gophertunnel and Dragonfly protocol branches until their 1.26.40 updates are available upstream.
Verification
go test ./... -count=1go vet ./...git diff --checkNo test files are added.