Skip to content

Let players preview a blueprint bundle before choosing it (#2914) - #3143

Merged
tastybento merged 6 commits into
developfrom
feat/2914-blueprint-preview
Nov 24, 2026
Merged

tastybento merged 6 commits into
developfrom
feat/2914-blueprint-preview

Conversation

@tastybento

@tastybento tastybento commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

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.

  • The player is moved to an empty world, bentobox_preview, which is created the first time anyone previews.
  • They fly in adventure mode and are kept inside a box around the blueprint, with a world border drawn at the edge.
  • The blueprint is shown at full size as blocks sent to that player only. Nothing is built, so nothing has to be cleaned up, and several players can preview different bundles in the same spot without seeing each other.
  • Chat shows [Choose this one] and [Back to the list]. Any command, the time limit or logging out ends the preview and puts the player back where they were, with their game mode, flight and invulnerability restored.
  • If the server stops mid-preview, the player is put back on their next join.

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.
  • Each bundle has a preview setting, toggled with the spyglass in the blueprint management panel. Until an admin chooses, only the default bundle can be previewed. Bundles an admin made may hold things players are meant to find for themselves, so they stay hidden on upgrade.

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

  • 🔡 Nine new locale keys, in en-US and translated in the 23 other locales.
  • New public API: BlueprintBundle#isPreviewAllowed / setPreviewAllowed, BlueprintPreview, and four Settings accessors.
  • The commit history includes the first attempt, a miniature made of block display entities, which was replaced. Squash on merge.

Not done

  • There is no tap-only way to open a preview, so Bedrock touch-screen players cannot use it yet.
  • Only the overworld blueprint is previewed, not the nether or end ones.
  • Entities in a blueprint are not shown, and chests are empty.
  • A blueprint wider than the player's view distance is cut off at the edges.
  • A player can still walk into any part of a blueprint that has an opening.

Testing

  • 21 new unit tests cover starting and ending a preview, the time limit, the listeners and the bundle default rule. Full suite passes (3,887 tests).
  • Tested in game on Paper 26.3 by @tastybento, including two players previewing at the same time and a server running InvSwitcher.
  • Not tested: Paper 1.21.5 and Bedrock clients.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HBXcjai4FihmV4n54fjjMe

tastybento and others added 6 commits November 23, 2026 17:42
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
@sonarqubecloud

Copy link
Copy Markdown

@tastybento
tastybento merged commit f23b3ab into develop Nov 24, 2026
3 checks passed
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.

View blueprints before selecting them.

1 participant