Skip to content

Update datagen for Bedrock 1.26.40 - #4

Open
HashimTheArab wants to merge 1 commit into
df-mc:masterfrom
HashimTheArab:lunar
Open

Update datagen for Bedrock 1.26.40#4
HashimTheArab wants to merge 1 commit into
df-mc:masterfrom
HashimTheArab:lunar

Conversation

@HashimTheArab

Copy link
Copy Markdown

Summary

  • Update datagen for Minecraft Bedrock 1.26.40 / protocol 2168.
  • Adapt the BDS packet capture to the new typed crafting vectors, item descriptors, and Dragonfly block registry APIs.
  • Add configurable BDS addresses and offline-mode authentication for local capture runs.
  • Refresh the embedded PocketMine block mappings used while decoding captured content.
  • Add a block-state format converter for Dragonfly.

Cloudburst block-palette conversion

The new cmd/blockstates command 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.nbt and converts only its storage representation:

  • input: gzip-compressed, big-endian NBT
  • output: concatenated, network-little-endian NBT used by Dragonfly

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 -offline

The 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=1
  • go vet ./...
  • git diff --check
  • Exact BDS 1.26.40.8 capture completed successfully
  • Cloudburst v2168 palette converted to 17,499 Dragonfly block states with runtime IDs 0–17498

No test files are added.

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