<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AMC%2FBlock_structure_renderer%2Fdoc</id>
	<title>Template:MC/Block structure renderer/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3AMC%2FBlock_structure_renderer%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/Block_structure_renderer/doc&amp;action=history"/>
	<updated>2026-04-10T17:09:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Template:MC/Block_structure_renderer/doc&amp;diff=42459&amp;oldid=prev</id>
		<title>imported&gt;Ja17: ko interwiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/Block_structure_renderer/doc&amp;diff=42459&amp;oldid=prev"/>
		<updated>2025-09-10T12:06:07Z</updated>

		<summary type="html">&lt;p&gt;ko interwiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation header}}&lt;br /&gt;
{{lua|Block structure renderer}}&lt;br /&gt;
Displays a block structure renderer.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
You need to create a map of a letter to a block state, for example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A=glass&lt;br /&gt;
B=chest[facing=east,type=single,waterlogged=true]&lt;br /&gt;
C=water[level=0]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Each block state must have all of its [[block states|properties]] defined. Missing properties might result in a mismatched model.&lt;br /&gt;
&lt;br /&gt;
Two special characters cannot be overwritten: &amp;lt;code&amp;gt;-&amp;lt;/code&amp;gt; represents [[structure void]]; &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; represents [[air]].&lt;br /&gt;
&lt;br /&gt;
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 &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt; 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:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
A+A,+A+,A+A;+++,+B+,+++;+++,+C+,+++&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;marks&amp;lt;/code&amp;gt; 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 &amp;#039;&amp;#039;color&amp;#039;&amp;#039;, write &amp;lt;code&amp;gt;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;y&amp;#039;&amp;#039;,&amp;#039;&amp;#039;z&amp;#039;&amp;#039;#&amp;#039;&amp;#039;color&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;. Separate marks with semicolons &amp;lt;code&amp;gt;;&amp;lt;/code&amp;gt;. If there is no blocks to be marked, omit this parameter and the &amp;quot;render marks&amp;quot; checkbox will not appear in the renderer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
1,0,1#114514;1,2,1#191981&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Combining these parts:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Block structure renderer&lt;br /&gt;
| A=glass&lt;br /&gt;
| B=chest[facing=east,type=single,waterlogged=true]&lt;br /&gt;
| C=water[level=0]&lt;br /&gt;
| A+A,+A+,A+A;+++,+B+,+++;+++,+C+,+++&lt;br /&gt;
| marks=1,0,1#114514;1,2,1#191981&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Block structure renderer&lt;br /&gt;
| A=glass&lt;br /&gt;
| B=chest[facing=east,type=single,waterlogged=true]&lt;br /&gt;
| C=water[level=0]&lt;br /&gt;
| A+A,+A+,A+A;+++,+B+,+++;+++,+C+,+++&lt;br /&gt;
| marks=1,0,1#114514;1,2,1#191981&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Check browser&amp;#039;s console warnings and errors to fix the errors in the parameters when applicable.&lt;br /&gt;
&lt;br /&gt;
You can assign default values for the renderer&amp;#039;s settings:&lt;br /&gt;
* &amp;lt;code&amp;gt;camera&amp;lt;/code&amp;gt;: Sets the initial position and rotation of the camera. The format should be &amp;lt;code&amp;gt;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;,&amp;#039;&amp;#039;y&amp;#039;&amp;#039;,&amp;#039;&amp;#039;z&amp;#039;&amp;#039;;&amp;#039;&amp;#039;pitch&amp;#039;&amp;#039;,&amp;#039;&amp;#039;yaw&amp;#039;&amp;#039;&amp;lt;/code&amp;gt;, among which &amp;#039;&amp;#039;pitch&amp;#039;&amp;#039; and &amp;#039;&amp;#039;yaw&amp;#039;&amp;#039; are in degrees. The camera&amp;#039;s default position is at the south of the structure, and the camera faces the center of the structure.&lt;br /&gt;
* &amp;lt;code&amp;gt;orthographic&amp;lt;/code&amp;gt;: Whether to use orthographic projection. Can only be &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;. Other values are seen as &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;animatedtexture&amp;lt;/code&amp;gt;: Whether to use animated texture. Can only be &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;. Other values are seen as &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;showinvisibleblocks&amp;lt;/code&amp;gt;: Whether to render invisible blocks. Can only be &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;. Other values are seen as &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;displaymarks&amp;lt;/code&amp;gt;: Whether to render marks. Does not take effect if the &amp;lt;code&amp;gt;marks&amp;lt;/code&amp;gt; parameter does not exist. Can only be &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;. Other values are seen as &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;backgroundcolor&amp;lt;/code&amp;gt;: Sets the background color. Defaults to &amp;lt;code&amp;gt;#808080&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;backgroundalpha&amp;lt;/code&amp;gt;：Sets the opacity of the background. Defaults to 128.&lt;br /&gt;
&lt;br /&gt;
== Scripts ==&lt;br /&gt;
Typically this template is not filled out by hand and is instead generated with a tool.&lt;br /&gt;
&lt;br /&gt;
[https://github.com/Nickid2018/AutoGenerateWikiData/blob/master/tools/convert_structure.py This tool] converts Minecraft&amp;#039;s structure files to this template. [https://github.com/maruohon/litematica This tool] is for litematic schematics.&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
Because [[Conduit]], [[End Portal (block)]] and [[End Gateway (block)]] cannot be baked, the renderer cannot render these blocks.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- template categories/interwikis here --&amp;gt;&lt;br /&gt;
[[ja:テンプレート:Block structure renderer]]&lt;br /&gt;
[[ko:틀:Block structure renderer]]&lt;br /&gt;
[[pt:Predefinição:Renderizador de estrutura de blocos]]&lt;br /&gt;
[[zh:Template:Block structure renderer]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&amp;lt;!-- documentation categories/interwikis here --&amp;gt;&lt;br /&gt;
[[ja:テンプレート:Block structure renderer/doc]]&lt;br /&gt;
[[pt:Predefinição:Renderizador de estrutura de blocos/doc]]&lt;br /&gt;
[[zh:Template:Block structure renderer/doc]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Ja17</name></author>
	</entry>
</feed>