Repository navigation
Let players preview a blueprint bundle before choosing it (#2914) - #3143
Merged
Merged
Conversation
A right click on a bundle in the island creation panel shows its overworld blueprint in front of the player as block display entities that only that player can see. Only exposed blocks are drawn, and a large blueprint is drawn more coarsely to stay under island.blueprint-preview.max-blocks. Previews can be switched off in config, and a bundle can be excluded in the blueprint management panel. Spike only: en-US locale keys only, no tap-only way to open a preview. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Replaces the miniature. The player is taken to an empty preview world in spectator mode, kept inside a box around the blueprint, and sent the blueprint's blocks as client-side blocks. Any command, the time limit or leaving the server puts them back. The fill block of compact blueprints is now included, which the miniature left out. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
A spectator can fly into blocks and see what is hidden inside. The player now flies in adventure mode: their client treats the blueprint's blocks as solid. Client-only night vision lights blocks the client leaves dark. Interaction and item drops are blocked during a preview. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
… others The per-bundle setting is now three-state. Unset means the default bundle can be previewed and any other cannot, so bundles an admin made stay hidden on upgrade. A choice made in the management panel always wins. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Adds the nine preview keys to the 23 other locales and unit tests for the preview's start, end, time limit and listeners. The saved return location now uses a fixed key so it does not depend on the plugin instance. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe
|
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.



Closes #2914.
What it does
A right click on a bundle in the island creation panel takes the player to a preview of that bundle's overworld blueprint.
bentobox_preview, which is created the first time anyone previews.Why adventure mode and not spectator: a spectator can fly into blocks and see what is hidden inside. The player's client treats the previewed blocks as solid.
The player gets night vision for the length of the preview, sent to their client only, because the client does not always light blocks that exist only on its side.
Who can preview what
island.blueprint-preview.enabled(default true) switches the feature off server-wide.island.blueprint-preview.duration(default 60) is the time limit in seconds.Game modes that ship more than one bundle can mark their own bundles as previewable in their bundle files; that is a follow-up in each game mode.
Things to know
BlueprintBundle#isPreviewAllowed/setPreviewAllowed,BlueprintPreview, and fourSettingsaccessors.Not done
Testing
🤖 Generated with Claude Code
https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe