Skip to main content

Showing part of the world in 3D with the structure renderer

The preview in the structure block screen is drawn by a custom control with "renderer": "3d_structure_renderer". This renderer does not draw a structure file; it draws a region of the currently loaded world. This plan aims to have the server paste a structure into a reserved region and open a server form that points at that region, as a 3D preview.

Measured on Windows 1.26.65.1, 2026-11-18. The measurement windows and numbers are in Measuring unverified JSON UI claims.

Structure renderer measurement window. The left box has entities on and the top-right axis hidden by clipping, showing 3x3x3 gold blocks, a diamond block, a redstone block and an armor stand. The middle box has remove_blocks on and shows only the player and the armor stand without blocks. The right box is the rotation box with has_focus on, showing only blocks, with the axis at the top right

1. Setup​

Minimal setup
"preview": {
"type": "custom",
"renderer": "3d_structure_renderer",
"size": [ 120, 120 ],
"property_bag": {
"#has_focus": false,
"#block_position": [ 0, 0, 0 ],
"#bottom_left_block": [ 3, -60, 3 ],
"#top_right_block": [ 6, -56, 6 ],
"#include_entities": false,
"#remove_blocks": false,
"#include_players": false
}
}
  • It drew inside a server form window from property_bag values alone, without the structure editor's bindings or controller.
  • Vanilla (structure_editor_screen.json) also receives the same keys through bindings with binding_condition: "visible". A server form has no source for that data, so give the values through property_bag or $variables.

2. All properties​

The renderer code reads 8 property names. This is every string the renderer code area references in the executable: the 7 keys vanilla JSON uses plus #gesture_delta_source, and nothing else ({code}, details in the repository's native-notes/structure-renderer.md).

PropertyValueVanilla defaultBehaviourLevel
#bottom_left_block[x, y, z][0, 0, 0]lower corner of the region. Absolute world coordinates, inclusivemeasured
#top_right_block[x, y, z][1, 1, 1]upper corner. Absolute world coordinates, exclusive. [3,-60,3]..[5,-57,5] drew 2x3x2measured
#block_position[x, y, z][0, 0, 0][0,0,0] and [40,0,40] gave the same image. The corners were not read relative to it eithermeasured (no effect)
#include_entitiesbooleanfalseon: entities in the region (an armor stand) are drawnmeasured
#include_playersbooleanfalseon together with #include_entities: players in the region are drawn toomeasured
#remove_blocksbooleanfalseon: no blocks, only entities and playersmeasured
#has_focusbooleanfalseon: no change in the still imagemeasured (no visible effect)
#gesture_delta_sourceinput panel valuenonerotation input, section 4measured, code
#gesture_mouse_delta_x, #gesture_mouse_delta_yinput panel valuesnonerotation input. Not referenced in the renderer code area; used on the input panel side (inferred). It rotated only when all three were passedmeasured
  • Everything else is ordinary control properties (size, offset, anchor_from, layer, anims and so on). The renderer scales the region to fit its box.
  • The renderer code reads #block_position and #has_focus, but this measurement found no visible effect. They may relate to the rotation center or a keyboard focus indicator, which was not checked (inferred).

3. Region and cost​

  • It draws the current world. With the form open, a script changed a block and moved an armor stand every second, and the image followed.
  • A region that is not loaded (x, z 5000) drew nothing. A region more than 17 blocks from the player was drawn. The server keeps preview regions where they stay loaded (near the player or in an always-loaded area).
  • A 64x6x64 region was drawn scaled to the box at 60 fps in the F3 panel (vsync cap). Larger regions were not measured.

4. Rotation​

Drag to rotate
"turn": {
"type": "input_panel",
"size": [ 124, 124 ],
"focus_enabled": true,
"gesture_tracking_button": "button.turn_structure",
"button_mappings": [
{ "from_button_id": "button.menu_select", "to_button_id": "button.turn_structure", "mapping_type": "pressed", "button_up_right_of_first_refusal": true }
],
"controls": [
{
"preview@my.preview": {
"bindings": [
{ "binding_type": "view", "source_control_name": "turn", "source_property_name": "#gesture_delta_source", "target_property_name": "#gesture_delta_source" },
{ "binding_type": "view", "source_control_name": "turn", "source_property_name": "#gesture_mouse_delta_x", "target_property_name": "#gesture_mouse_delta_x" },
{ "binding_type": "view", "source_control_name": "turn", "source_property_name": "#gesture_mouse_delta_y", "target_property_name": "#gesture_mouse_delta_y" }
]
}
}
]
}
  • The same wrapper without the three view bindings did not rotate.
  • No property sets or locks the starting angle (the renderer code reads only the 8 names in section 2).

5. Hiding the top-right axis (clipping)​

The renderer draws an axis gizmo (green Y, blue X) in the top-right corner of its box. No property turns it off. Make the renderer larger than its box and push its top right outside a parent with clips_children, and the axis is not visible.

Wrapper that cuts off the axis
"preview_box": {
"type": "panel",
"size": [ 120, 120 ],
"clips_children": true,
"controls": [
{
"preview@my.preview": {
"size": [ 160, 160 ],
"offset": [ -20, -20 ],
"anchor_from": "bottom_left",
"anchor_to": "bottom_left"
}
}
]
}
  • The left box in the image above uses this setup. The axis is gone, but the structure is drawn larger and shifted toward the top left because the renderer grew.
  • To keep it centered, grow the renderer on all four sides (for example size [160, 160], anchor_from and anchor_to center, no offset). All four corners then lie outside the parent, so the top-right axis should be cut off as well. This layout was not measured; check each box.
  • Whether the axis grows with the renderer size was not measured. Leave a generous margin to cut away.

6. Server side​

  1. The server pastes the structure into a reserved region that stays loaded.
  2. It opens, by server form title, a window whose JSON names the two corners of that region. Coordinates could be given per window through $variables.
  3. Clearing or changing the region changes the image in the open form right away.
  • Building the coordinate arrays from server text (form body, button text) was not measured. The community reported that expressions cannot build arrays (community reports).
  • With several reserved regions, use one window (title) per region.

7. Not confirmed​

  • Whether it draws on the HUD and in the chest screen.
  • The actual role of #block_position and #has_focus, the rotation center, the starting angle.
  • The upper bound of cost by region size.
  • Drawing a .mcstructure file directly. This renderer only drew the world. A community claim says a structure block can draw .mcstructure files as well as the world. This was checked with the vanilla structure block screen, but no case that draws a file was found (below).

7.1 Load mode preview of the structure block​

2026-11-19 Windows 1.26.65.1. A vanilla structure block was placed, its mode was set to load on the screen, and a structure name was entered. Two structures were used: the behavior pack file structures/juc/gold.mcstructure (3x2x3, gold and redstone blocks on the bottom layer, diamond blocks on the top layer, content checked with /structure load juc:gold) and mystructure:juc_world, saved in the world with /structure save ... disk (2x2x2, emerald and coal blocks, the original spot emptied after saving). The paste spot held only the structure block and grass.

NameScreen previewWorld
juc:goldthe bounding box changed to 3x2x3 and showed the current world at the paste spot (structure block, grass). No gold, diamond or redstone blocksonly the white bounding box changed to 3x2x3
mystructure:juc_worldthe bounding box changed to 2x2x2 and again showed the current world. No emerald or coal blocksonly the white bounding box changed to 2x2x2. No preview such as translucent blocks
mystructure:juc_world, after placing a lapis block inside the boxthe lapis block was drawnsame
  • The load mode preview was not the content of the file or the saved structure but the current world inside the box set by the structure size and offset. The name only set the box size.
  • The preview in vanilla structure_editor_screen.json is the same 3d_structure_renderer and binds only #block_position, #bottom_left_block, #top_right_block, #include_entities, #remove_blocks, #include_players and #has_focus. No property takes a file or a name.
  • So there was no way through this preview to draw a file on another screen. To get the same picture in a server form, paste the structure into a reserved world area and draw that area (section 6).
  • The import button on the screen opens the operating system file picker and was not measured.

8. Measurement add-on​

Download: [bedrock-research]json-ui-claims_v1.0.0.mcaddon
[bedrock-research]json-ui-claims v1.0.0 · 82.6 KB · Test item bwiki:json_ui_claims_test

/scriptevent bwiki:json_ui_claims 9 opens the structure renderer window, and /scriptevent bwiki:json_ui_claims r opens the same window with an armor stand that moves and a block that changes every second. The window's region runs from (0,-60,0) to (10,-55,10), so place blocks in it and stand nearby. Installation is described in Measuring unverified JSON UI claims. The file structure of section 7.1 is the behavior pack file structures/juc/gold.mcstructure, named juc:gold.

Sources
idSourceLicenseCommitAccessed
repo-guideJSON UI comprehensive guide (this repository) (guide/)This project's material2026-11-13
private-researchPrivate research (-)-2026-11-13
bedrock-samplesMojang bedrock-samplesMinecraft EULA applies, (c) Mojang AB. All rights reserved15701fa9 (guide baseline 46ba6ea)2026-11-13