Fatal Error: cannot register the same biome (...) twice
Describe the bug
When using the worlds command to download a world from a server, bedrocktool crashes with a fatal error: cannot register the same biome (...) twice.
This issue has been observed on multiple servers with different biomes, suggesting a problem with how the tool handles biome registration.
- On server
playicebow.fsi.si:1041, the error was forminecraft:ocean. - On server
kkrkun.aternos.me:27752, the error was forminecraft:cherry_grove.
To Reproduce Steps to reproduce the behavior:
- Run
bedrocktoolin the terminal. - Input the
worldscommand. - Enter a server address that triggers the bug (e.g.,
kkrkun.aternos.me:27752). - Open Minecraft and connect to the
bedrocktoolproxy listed under the "Friends" tab (LAN Games). - After the client connects,
bedrocktoolcrashes and displays the fatal error in the terminal.
Expected behavior
bedrocktool should handle the biome data without crashing and proceed to download the world successfully.
Error Logs
Log 1: Crash with minecraft:cherry_grove
time="2025-08-30T00:06:21+09:00" level=info msg="Client Connected" time="2025-08-30T00:06:21+09:00" level=debug msg="starting game" part=ResourcePacks Fatal Error occurred. --COPY FROM HERE-- Version: 1.49.0-1-g648fcfb Cmdline: [C:\Users\tknsk\Downloads\bedrock_tool\bedrocktool-windows-amd64-1.49.0-1-g648fcfb.exe worlds] Error: cannot register the same biome (minecraft:cherry_grove) twice stacktrace from panic: goroutine 100 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/bedrock-tool/bedrocktool/utils.PrintPanic({0x1a1bda0, 0xc002786010}) github.com/bedrock-tool/bedrocktool/utils/panic.go:15 +0x2f ... (stacktrace) ... --END COPY HERE-- time="2025-08-30T00:06:23+09:00" level=error msg="cannot register the same biome (minecraft:cherry_grove) twice" part=main
Log 2: Crash with minecraft:ocean
time="2025-08-29T23:56:44+09:00" level=info msg="Client Connected" time="2025-08-29T23:56:45+09:00" level=info msg="Using Custom Blocks" part=WorldsHandler skipped component item_tags [] Fatal Error occurred. --COPY FROM HERE-- Version: 1.49.0-1-g648fcfb Cmdline: [C:\Users\tknsk\Downloads\bedrock_tool\bedrocktool-windows-amd64-1.49.0-1-g648fcfb.exe worlds] Error: cannot register the same biome (minecraft:ocean) twice stacktrace from panic: goroutine 94 [running]: runtime/debug.Stack() runtime/debug/stack.go:26 +0x5e github.com/bedrock-tool/bedrocktool/utils.PrintPanic({0x1a1bda0, 0xc0001b0ed0}) github.com/bedrock-tool/bedrocktool/utils/panic.go:15 +0x2f ... (stacktrace) ... --END COPY HERE-- time="2025-08-29T23:56:45+09:00" level=error msg="cannot register the same biome (minecraft:ocean) twice" part=main
Desktop:
- OS: Windows
- Version:
1.49.0-1-g648fcfb - Minecraft Version:
1.21.101
Additional context This bug appears to be consistent across different servers if they have a world da
ive got the same error