Switch blueprints from zipped .blu to plain JSON .blueprint format#2911
Merged
Conversation
…th backward compatibility - Change BLUEPRINT_SUFFIX from '.blu' to '.blueprint' for new plain JSON format - Add LEGACY_BLUEPRINT_SUFFIX constant for '.blu' backward compatibility - Update BlueprintClipboardManager to save as plain JSON (no zipping) - Update BlueprintClipboardManager to load .blueprint first, fall back to .blu - Update BlueprintsManager to scan for both file formats when loading - Update delete/rename operations to handle both formats - Update admin commands (list, load, save, rename) to support both formats - Update all tests for new format and add legacy backward compatibility tests Agent-Logs-Url: https://github.com/BentoBoxWorld/BentoBox/sessions/64819466-6133-4499-98b9-2d03490ea00e Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Agent-Logs-Url: https://github.com/BentoBoxWorld/BentoBox/sessions/64819466-6133-4499-98b9-2d03490ea00e Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add option for island blueprint in JSON/YAML format
Switch blueprints from zipped .blu to plain JSON .blueprint format
Apr 5, 2026
|
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.



Blueprint files were stored as zipped binary
.blufiles, making version control diffs impossible. This switches to plain JSON.blueprintfiles while retaining backward-compatible loading of legacy.blufiles.Storage format change
BLUEPRINT_SUFFIXchanged from.bluto.blueprintLEGACY_BLUEPRINT_SUFFIX = ".blu"constant for backward compatsaveBlueprint()writes plain JSON directly — no zipping, no temp fileszip()method fromBlueprintClipboardManagerLoad path: new format first, legacy fallback
Updated all file operations to handle both formats
loadBlueprints()scans for both.blueprintand.blufilesdeleteBlueprint()/renameBlueprint()clean up both formatsextractDefaultBlueprints()extracts both from addon JARslist,load,save,rename) recognize both suffixes in tab completion, existence checks, and file listingTests
.blueprintoutput.bluloading, and format precedence when both exist