<?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%2FDefault_data_component%2Fdoc</id>
	<title>Template:MC/Default data component/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%2FDefault_data_component%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/Default_data_component/doc&amp;action=history"/>
	<updated>2026-04-11T16:24:56Z</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/Default_data_component/doc&amp;diff=42811&amp;oldid=prev</id>
		<title>imported&gt;Aloi4 at 02:32, 13 March 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:MC/Default_data_component/doc&amp;diff=42811&amp;oldid=prev"/>
		<updated>2026-03-13T02:32:27Z</updated>

		<summary type="html">&lt;p&gt;&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;
&amp;lt;!-- documentation here --&amp;gt;&lt;br /&gt;
{{Lua|Module:Default data component}}&lt;br /&gt;
{{wip}}&lt;br /&gt;
&lt;br /&gt;
Creates the list of default [[data components]] for an item, based on its [[Java Edition data values/Items|ID]].&lt;br /&gt;
&lt;br /&gt;
Data originates from [https://github.com/misode/mcmeta/blob/summary/item_components/data.json &amp;lt;samp&amp;gt;item_components/data.json&amp;lt;/samp&amp;gt;].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
* {{p|1}} &amp;amp;ndash; the item ID, without the {{cd|minecraft:}} namespace. A valid ID is required.&lt;br /&gt;
&lt;br /&gt;
* {{p|2}} to {{p|8}} &amp;amp;ndash; if it is one of the values ​​below, adjust the list format. The order doesn&amp;#039;t matter, it only needs to be between parameters 2 and 8:&lt;br /&gt;
** {{cd|big}} &amp;amp;ndash; All basic components appear (components that by default are all items a priori, but this can change)&lt;br /&gt;
*** For example, {{cd|max_item_stack: 64}} is a basic components, as all items have it by default. However, some items have it set to 16 or 1; in these cases, {{cd|max_item_stack}} will appear in the small list.&lt;br /&gt;
*** The basic components are separated in a collapsed box. See {{p|basic}}.&lt;br /&gt;
** {{cd|open}} &amp;amp;ndash; The list is not collapsed.&lt;br /&gt;
** {{cd|minecraft}} &amp;amp;ndash; Adds the {{cd|minecraft:}} namespace to the components.&lt;br /&gt;
** {{cd|link}} &amp;amp;ndash; Each component will have a [[data components|link]] to its respective section.&lt;br /&gt;
** &amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: Setting one of these parameters at a given moment will set it for all subsequent uses of the template on the page.&lt;br /&gt;
*** But the parameters {{cd|small}}, {{cd|collapsed}}, {{cd|nominecraft}} and {{cd|nolink}} respectively remove the effects.&lt;br /&gt;
&lt;br /&gt;
* {{p|none}} &amp;amp;ndash; text that appears next to empty lists or compounds.&lt;br /&gt;
&lt;br /&gt;
* {{p|text}} &amp;amp;ndash; text that appears next to the first line. Useful for describing the list.&lt;br /&gt;
** It is recommended to start with space ({{t|space}}).&lt;br /&gt;
** The final result replaces {{cd|(%id)}} with the item ID (defined by {{p|1}})&lt;br /&gt;
&lt;br /&gt;
* {{p|comma}} &amp;amp;ndash; text used at the end of each value, such as {{cd|,}}. Useful for separating lines.&lt;br /&gt;
&lt;br /&gt;
* {{p|dot}} &amp;amp;ndash; text used at the end value (of the lists or compounds), such as {{cd|.}}.&lt;br /&gt;
** If the last component is empty, instead of just appearing as {{cd|none}}, it appears as {{cd|none}} by replacing the last occurrence of a {{cd|comma}} (if it exists) with {{cd|dot}}.&lt;br /&gt;
&lt;br /&gt;
* {{p|basic}} &amp;amp;ndash; text used at the basic components box. Default {{cd|Basic components:}}&lt;br /&gt;
** If basic is {{cd|nil}} the basic components were no longer kept in a separate box.&lt;br /&gt;
* {{p|basic2}} &amp;amp;ndash; text used in the component boxes present in all items, but which for this {{cd|id}} has a different value from the default. &lt;br /&gt;
** Default {{cd|nil}}. This means that by default the box does not exist.&lt;br /&gt;
* {{p|basiccollapsed}} &amp;amp;ndash; Determines whether or not the boxes of the basic components should be collapsed. Default {{cd|0}}.&lt;br /&gt;
** {{cd|1}} or {{cd|3}} &amp;amp;ndash; the {{p|basic}} box will be opened.&lt;br /&gt;
** {{cd|2}} or {{cd|3}} &amp;amp;ndash; the {{p|basic2}} box will be opened.&lt;br /&gt;
&lt;br /&gt;
The parameters {{p|none}}, {{p|text}}, {{p|comma}} and {{p|dot}} are all empty by default. Setting any parameters (except {{p|1}}) for a page template will set them for all subsequent page templates unless changed.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
{{Message box| title = Observe how one example can influence another when defining parameters.| text = Therefore, the same examples could have different results at the beginning of the page.}}&lt;br /&gt;
&lt;br /&gt;
1. {{t|Default data component|redstone}} results in:&lt;br /&gt;
{{Default data component|redstone}}&lt;br /&gt;
&lt;br /&gt;
2. {{t|Default data component|redstone|big|open|minecraft|link}} results in:&lt;br /&gt;
{{Default data component|redstone|big|open|minecraft|link}}&lt;br /&gt;
&lt;br /&gt;
3.{{t|Default data component|golden_spear}} results in:&lt;br /&gt;
{{Default data component|golden_spear}}&lt;br /&gt;
&lt;br /&gt;
4.{{t|Default data component|golden_spear|small|collapsed|nominecraft|nolink}} results in:&lt;br /&gt;
{{Default data component|golden_spear|small|collapsed|nominecraft|nolink}}&lt;br /&gt;
&lt;br /&gt;
5.{{t|Default data component|golden_apple|text{{=}}{{t|space}}list of {{t|cd|(%id)}} default components|basic{{=}}nil}} results in:&lt;br /&gt;
{{Default data component|golden_apple|text={{space}}list of {{cd|(%id)}} default components|basic=nil}}&lt;br /&gt;
&lt;br /&gt;
6.{{t|Default data component|command_block|big|none{{=}}&amp;#039;&amp;#039;None&amp;#039;&amp;#039;}} results in:&lt;br /&gt;
{{Default data component|command_block|big|none=&amp;#039;&amp;#039;None&amp;#039;&amp;#039;}}&lt;br /&gt;
&lt;br /&gt;
7.{{t|Default data component|red_dye|text{{=}}&amp;amp;&amp;amp;zwnj;zwnj; |comma{{=}};|dot{{=}}!}} results in:&lt;br /&gt;
{{Default data component|red_dye|text=&amp;amp;zwnj;|comma=;|dot=!}}&lt;br /&gt;
&lt;br /&gt;
8.{{t|Default data component|stone|basic{{=}}Common components|comma{{=}},|dot{{=}}.|basic2{{=}}Common components2}} results in:&lt;br /&gt;
{{Default data component|stone|basic=Common components|comma=,|dot=.|basic2=Common components2}}&lt;br /&gt;
&lt;br /&gt;
9.{{t|Default data component|decorated_pot|none{{=}}{{t|space}}&amp;#039;&amp;#039;none,&amp;#039;&amp;#039;|basiccollapsed{{=}}3}} results in:&lt;br /&gt;
{{Default data component|decorated_pot|none={{space}}&amp;#039;&amp;#039;none,&amp;#039;&amp;#039;|basiccollapsed=3}}&lt;br /&gt;
&lt;br /&gt;
10.{{t|Default data component|redstone_dust}} results in:&lt;br /&gt;
{{Default data component|redstone_dust}}&lt;br /&gt;
&lt;br /&gt;
11. In {{t|Default data component||redstone}}, no ID was defined (in {{p|1}}), so it results as if it were the {{cd|air}} item:&lt;br /&gt;
{{Default data component||redstone}}&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;
&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;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Aloi4</name></author>
	</entry>
</feed>