VOOZH about

URL: https://minecraft.wiki/w/Template:Block_structure_renderer

⇱ Template:Block structure renderer – Minecraft Wiki


Template:Block structure renderer

From Minecraft Wiki
Jump to navigation Jump to search
Documentation[view] [edit] [history] [purge]
This template uses Module:Block structure renderer, a script written in Lua.

Displays a block structure renderer.

You need to create a map of a letter to a block state, for example:

A=glass
B=chest[facing=east,type=single,waterlogged=true]
C=water[level=0]

Each block state must have all of its properties defined. Missing properties might result in a mismatched model.

Two special characters cannot be overwritten: - represents structure void; + represents air.

A block structure is defined in the from X to Z to Y. Comma indicates the end of this X row and the beginning of the next X row, meaning an increment of Z. Semicolon ; ends the structure at this Y level and starts at (0,0) at the next level, meaning an increment of Y. Here is an example:

A+A,+A+,A+A;+++,+B+,+++;+++,+C+,+++

The marks parameter can be used to highlight certain blocks in the block structure. You need a coordinate and a color code to define a mark. To mark (x, y, z) with color, write x,y,z#color. Separate marks with semicolons ;. If there is no blocks to be marked, omit this parameter and the "render marks" checkbox will not appear in the renderer.

1,0,1#114514;1,2,1#191981

Combining these parts:

{{Block structure renderer
| A=glass
| B=chest[facing=east,type=single,waterlogged=true]
| C=water[level=0]
| A+A,+A+,A+A;+++,+B+,+++;+++,+C+,+++
| marks=1,0,1#114514;1,2,1#191981
}}
An interactive widget is being loaded. If this does not work for you, please reload the page or check if JavaScript is working or enabled.

Check browser's console warnings and errors to fix the errors in the parameters when applicable.

You can assign default values for the renderer's settings:

  • camera: Sets the initial position and rotation of the camera. The format should be x,y,z;pitch,yaw, among which pitch and yaw are in degrees. The camera's default position is at the south of the structure, and the camera faces the center of the structure.
  • orthographic: Whether to use orthographic projection. Can only be true or false. Other values are seen as false.
  • animatedtexture: Whether to use animated texture. Can only be true or false. Other values are seen as false.
  • showinvisibleblocks: Whether to render invisible blocks. Can only be true or false. Other values are seen as false.
  • displaymarks: Whether to render marks. Does not take effect if the marks parameter does not exist. Can only be true or false. Other values are seen as false.
  • backgroundcolor: Sets the background color. Defaults to #808080.
  • backgroundalpha:Sets the opacity of the background. Defaults to 128.

Scripts

[edit source]

Typically this template is not filled out by hand and is instead generated with a tool.

This tool converts Minecraft's structure files to this template. This tool is for litematic schematics.

Limitations

[edit source]

Because Conduit, End Portal (block) and End Gateway (block) cannot be baked, the renderer cannot render these blocks.

[view] [edit] [history] [purge]The above documentation is transcluded from Template:Block structure renderer/doc.
Retrieved from "https://minecraft.wiki/w/Template:Block_structure_renderer?oldid=2623784"

Navigation menu