<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://forge.gemwire.uk/index.php?action=history&amp;feed=atom&amp;title=Item_Properties</id>
	<title>Item Properties - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://forge.gemwire.uk/index.php?action=history&amp;feed=atom&amp;title=Item_Properties"/>
	<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Item_Properties&amp;action=history"/>
	<updated>2026-05-01T21:25:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=3115&amp;oldid=prev</id>
		<title>ChampionAsh5357: Update to 1.18</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=3115&amp;oldid=prev"/>
		<updated>2022-01-12T13:59:24Z</updated>

		<summary type="html">&lt;p&gt;Update to 1.18&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:59, 12 January 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding Properties to Items  ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding Properties to Items  ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;ItemProperties::register&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used to add a property to a specific item. The &amp;lt;code&amp;gt;ResourceLocation&amp;lt;/code&amp;gt; parameter is the name given to the property (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;new ResourceLocation(&amp;quot;pull&amp;quot;)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). The &amp;lt;code&amp;gt;ItemPropertyFunction&amp;lt;/code&amp;gt; is a function that takes the &amp;lt;code&amp;gt;ItemStack&amp;lt;/code&amp;gt;, the &amp;lt;code&amp;gt;ClientLevel&amp;lt;/code&amp;gt; it’s in, the &amp;lt;code&amp;gt;LivingEntity&amp;lt;/code&amp;gt; that holds it, and the &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; containing the id of the holding entity or '''0''', returning the &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; value for the property. Some examples are the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pulling&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pull&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; properties for &amp;lt;code&amp;gt;Items#BOW&amp;lt;/code&amp;gt;, and the several default ones in &amp;lt;code&amp;gt;ItemProperties&amp;lt;/code&amp;gt;. For modded item properties, it is recommended that the modid of the mod is used as the namespace (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;examplemod:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and not just &amp;lt;code&amp;gt;property&amp;lt;/code&amp;gt;, as that really means &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;minecraft:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). There's also another &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;private &lt;/del&gt;method &amp;lt;code&amp;gt;ItemProperties::registerGeneric&amp;lt;/code&amp;gt; that is used to add properties to all items, and it does not take &amp;lt;code&amp;gt;Item&amp;lt;/code&amp;gt; as its parameter since all items will apply this property.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;ItemProperties::register&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used to add a property to a specific item. The &amp;lt;code&amp;gt;ResourceLocation&amp;lt;/code&amp;gt; parameter is the name given to the property (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;new ResourceLocation(&amp;quot;pull&amp;quot;)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). The &amp;lt;code&amp;gt;ItemPropertyFunction&amp;lt;/code&amp;gt; is a function that takes the &amp;lt;code&amp;gt;ItemStack&amp;lt;/code&amp;gt;, the &amp;lt;code&amp;gt;ClientLevel&amp;lt;/code&amp;gt; it’s in, the &amp;lt;code&amp;gt;LivingEntity&amp;lt;/code&amp;gt; that holds it, and the &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; containing the id of the holding entity or '''0''', returning the &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; value for the property. Some examples are the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pulling&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pull&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; properties for &amp;lt;code&amp;gt;Items#BOW&amp;lt;/code&amp;gt;, and the several default ones in &amp;lt;code&amp;gt;ItemProperties&amp;lt;/code&amp;gt;. For modded item properties, it is recommended that the modid of the mod is used as the namespace (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;examplemod:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and not just &amp;lt;code&amp;gt;property&amp;lt;/code&amp;gt;, as that really means &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;minecraft:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). There's also another method &amp;lt;code&amp;gt;ItemProperties::registerGeneric&amp;lt;/code&amp;gt; that is used to add properties to all items, and it does not take &amp;lt;code&amp;gt;Item&amp;lt;/code&amp;gt; as its parameter since all items will apply this property.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Tip/Important|Use &amp;lt;code&amp;gt;FMLClientSetupEvent#enqueueWork&amp;lt;/code&amp;gt; to proceed with the tasks, since the data structures in &amp;lt;code&amp;gt;ItemProperties&amp;lt;/code&amp;gt; are not thread-safe.}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Tip/Important|Use &amp;lt;code&amp;gt;FMLClientSetupEvent#enqueueWork&amp;lt;/code&amp;gt; to proceed with the tasks, since the data structures in &amp;lt;code&amp;gt;ItemProperties&amp;lt;/code&amp;gt; are not thread-safe.}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ChampionAsh5357</name></author>
	</entry>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=2864&amp;oldid=prev</id>
		<title>ChampionAsh5357: Update to 1.17</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=2864&amp;oldid=prev"/>
		<updated>2021-08-02T18:02:53Z</updated>

		<summary type="html">&lt;p&gt;Update to 1.17&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:02, 2 August 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l4&quot; &gt;Line 4:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 4:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding Properties to Items  ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding Properties to Items  ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ItemModelsProperties&lt;/del&gt;::&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;registerProperty&lt;/del&gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used to add a property to a specific item. The &amp;lt;code&amp;gt;ResourceLocation&amp;lt;/code&amp;gt; parameter is the name given to the property (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;new ResourceLocation(&amp;quot;pull&amp;quot;)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). The &amp;lt;code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;IItemPropertyGetter&lt;/del&gt;&amp;lt;/code&amp;gt; is a function that takes the &amp;lt;code&amp;gt;ItemStack&amp;lt;/code&amp;gt;, the &amp;lt;code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ClientWorld&lt;/del&gt;&amp;lt;/code&amp;gt; it’s in, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and &lt;/del&gt;the &amp;lt;code&amp;gt;LivingEntity&amp;lt;/code&amp;gt; that holds it, returning the &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; value for the property. Some examples are the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pulling&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pull&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; properties for &amp;lt;code&amp;gt;Items#BOW&amp;lt;/code&amp;gt;, and the several default ones in &amp;lt;code&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ItemModelProperties&lt;/del&gt;&amp;lt;/code&amp;gt;. For modded item properties, it is recommended that the modid of the mod is used as the namespace (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;examplemod:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and not just &amp;lt;code&amp;gt;property&amp;lt;/code&amp;gt;, as that really means &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;minecraft:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ItemProperties&lt;/ins&gt;::&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;register&lt;/ins&gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used to add a property to a specific item. The &amp;lt;code&amp;gt;ResourceLocation&amp;lt;/code&amp;gt; parameter is the name given to the property (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;new ResourceLocation(&amp;quot;pull&amp;quot;)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). The &amp;lt;code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ItemPropertyFunction&lt;/ins&gt;&amp;lt;/code&amp;gt; is a function that takes the &amp;lt;code&amp;gt;ItemStack&amp;lt;/code&amp;gt;, the &amp;lt;code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ClientLevel&lt;/ins&gt;&amp;lt;/code&amp;gt; it’s in, the &amp;lt;code&amp;gt;LivingEntity&amp;lt;/code&amp;gt; that holds it&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;, and the &amp;lt;code&amp;gt;int&amp;lt;/code&amp;gt; containing the id of the holding entity or '''0'''&lt;/ins&gt;, returning the &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; value for the property. Some examples are the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pulling&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pull&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; properties for &amp;lt;code&amp;gt;Items#BOW&amp;lt;/code&amp;gt;, and the several default ones in &amp;lt;code&amp;gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ItemProperties&lt;/ins&gt;&amp;lt;/code&amp;gt;. For modded item properties, it is recommended that the modid of the mod is used as the namespace (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;examplemod:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and not just &amp;lt;code&amp;gt;property&amp;lt;/code&amp;gt;, as that really means &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;minecraft:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;There's also another private method &amp;lt;code&amp;gt;ItemProperties::registerGeneric&amp;lt;/code&amp;gt; that is used to add properties to all items, and it does not take &amp;lt;code&amp;gt;Item&amp;lt;/code&amp;gt; as its parameter since all items will apply this property.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{Tip/Important|Use &amp;lt;code&amp;gt;FMLClientSetupEvent#enqueueWork&amp;lt;/code&amp;gt; to proceed with the tasks, since the data structures in &amp;lt;code&amp;gt;ItemProperties&amp;lt;/code&amp;gt; are not thread-safe.}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{Tip|&amp;lt;code&amp;gt;ItemPropertyFunction&amp;lt;/code&amp;gt; is deprecated by Mojang in favor of using the subinterface &amp;lt;code&amp;gt;ClampedItemPropertyFunction&amp;lt;/code&amp;gt; which clamps the result between '''0''' and '''1'''.}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Using Overrides ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Using Overrides ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A good example can be found in &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;model/item/bow.json&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. For reference, here is a hypothetical example of an item with an &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;examplemod:power&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; property. If the values have no match, the default is the current model.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A good example can be found in &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;model/item/bow.json&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. For reference, here is a hypothetical example of an item with an &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;examplemod:power&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; property. If the values have no match, the default is the current model.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;block important&amp;gt;&lt;/del&gt;A predicate applies to all values greater than or equal to the given value.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/block&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{Tip/Important|&lt;/ins&gt;A predicate applies to all values greater than or equal to the given value.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot; &gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;textures&amp;quot;: {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;textures&amp;quot;: {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;quot;__comment&amp;quot;: &amp;quot;Default&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;quot;__comment&amp;quot;: &amp;quot;Default&amp;quot;,&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;quot;layer0&amp;quot;: &amp;quot;examplemod:items/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;examplePartial&lt;/del&gt;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     &amp;quot;layer0&amp;quot;: &amp;quot;examplemod:items/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;example_partial&lt;/ins&gt;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   },&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   },&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;overrides&amp;quot;: [&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;quot;overrides&amp;quot;: [&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot; &gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 28:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &amp;quot;examplemod:power&amp;quot;: 0.75&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         &amp;quot;examplemod:power&amp;quot;: 0.75&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       },&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       },&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;quot;model&amp;quot;: &amp;quot;examplemod:item/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;examplePowered&lt;/del&gt;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;       &amp;quot;model&amp;quot;: &amp;quot;examplemod:item/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;example_powered&lt;/ins&gt;&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And here’s a hypothetical snippet from the supporting code. (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;This does not have &lt;/del&gt;to be client&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;-&lt;/del&gt;only&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;; it will work &lt;/del&gt;on &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;a &lt;/del&gt;server &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;too. In vanilla, properties are registered in the item’s constructor&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;And here’s a hypothetical snippet from the supporting code. &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Unlike the older versions &lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;lower than 1.16.x), this needs &lt;/ins&gt;to be &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;done on &lt;/ins&gt;client &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;side &lt;/ins&gt;only &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;because &amp;lt;code&amp;gt;ItemProperties&amp;lt;/code&amp;gt; does not exist &lt;/ins&gt;on server.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;public void clientSetup(final FMLCLientSetupEvent event) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;public void clientSetup(final FMLCLientSetupEvent event) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;ItemModelProperties&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;registerProperty&lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;item&lt;/del&gt;, new ResourceLocation(&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;examplemod:power&lt;/del&gt;&amp;quot;), &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;new IItemPropertyGetter&lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;) {&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;event&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;enqueueWork&lt;/ins&gt;(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;() -&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    @Override&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;  {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    public float call(ItemStack &lt;/del&gt;stack, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;@Nullable ClientWorld world&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;@Nullable LivingEntity entity&lt;/del&gt;) {&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;    ItemProperties.register(ExampleItems.APPLE&lt;/ins&gt;,  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;      &lt;/del&gt;return (&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;float&lt;/del&gt;)&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;getPowerLevel&lt;/del&gt;(&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;stack&lt;/del&gt;) &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;/ (float)getMaxPower(&lt;/del&gt;stack&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/del&gt;; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;// Some external methods&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;      &lt;/ins&gt;new ResourceLocation(&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ExampleMod.MODID, &lt;/ins&gt;&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pulling&lt;/ins&gt;&amp;quot;), (stack, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;level&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;living, id&lt;/ins&gt;) &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;-&amp;gt; &lt;/ins&gt;{&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;    &lt;/del&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;        &lt;/ins&gt;return &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;living != null &amp;amp;&amp;amp; living.isUsingItem&lt;/ins&gt;() &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;amp;&amp;amp; living.getUseItem&lt;/ins&gt;() &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;== &lt;/ins&gt;stack &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;? 1.0F : 0.0F&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;      &lt;/ins&gt;}&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   }&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ChampionAsh5357</name></author>
	</entry>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=2862&amp;oldid=prev</id>
		<title>ChampionAsh5357: ChampionAsh5357 moved page Item Overrides to Item Properties without leaving a redirect: ItemOverrides is a superset of item properties to which this is</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=2862&amp;oldid=prev"/>
		<updated>2021-08-02T17:52:29Z</updated>

		<summary type="html">&lt;p&gt;ChampionAsh5357 moved page &lt;a href=&quot;/wiki/Item_Overrides&quot; class=&quot;mw-redirect&quot; title=&quot;Item Overrides&quot;&gt;Item Properties&lt;/a&gt; to &lt;a href=&quot;/wiki/Item_Properties&quot; title=&quot;Item Properties&quot;&gt;Item Properties&lt;/a&gt; without leaving a redirect: ItemOverrides is a superset of item properties to which this is&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 17:52, 2 August 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>ChampionAsh5357</name></author>
	</entry>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=2635&amp;oldid=prev</id>
		<title>ShrimpBot: Categorize with Category:Models by SizableShrimp#0755</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=2635&amp;oldid=prev"/>
		<updated>2021-05-19T00:59:39Z</updated>

		<summary type="html">&lt;p&gt;Categorize with &lt;a href=&quot;/index.php?title=Category:Models&amp;amp;action=tinymceedit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Models (page does not exist)&quot;&gt;Category:Models&lt;/a&gt; by SizableShrimp#0755&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 00:59, 19 May 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot; &gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Models]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ShrimpBot</name></author>
	</entry>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=2148&amp;oldid=prev</id>
		<title>Unbekannt: Inital Import dokuwiki</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=Item_Properties&amp;diff=2148&amp;oldid=prev"/>
		<updated>2020-10-24T20:02:37Z</updated>

		<summary type="html">&lt;p&gt;Inital Import dokuwiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Item properties are a way for the &amp;quot;properties&amp;quot; of items to be exposed to the model system. An example is the bow, where the most important property is how far the bow has been pulled. This information is then used to choose a model for the bow, creating an animation for pulling it.&lt;br /&gt;
&lt;br /&gt;
An item property assigns a certain &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; value to every &amp;lt;code&amp;gt;ItemStack&amp;lt;/code&amp;gt; it is registered for, and vanilla item model definitions can use these values to define “overrides”, where an item defaults to a certain model, but if an override matches, it overrides the model and uses another. They are useful mainly because of the fact that they are continuous. For example, bows use item properties to define their pull animation. Since the value of the property is a &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt;, it increases continuously from 0 to 1. This allows resource packs to add as many models as they want for the bow pulling animation along that spectrum, instead of being stuck with four “slots” for their models in the animation. The same is true of the compass and clock.&lt;br /&gt;
&lt;br /&gt;
== Adding Properties to Items  ==&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;ItemModelsProperties::registerProperty&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; is used to add a property to a specific item. The &amp;lt;code&amp;gt;ResourceLocation&amp;lt;/code&amp;gt; parameter is the name given to the property (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;new ResourceLocation(&amp;quot;pull&amp;quot;)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;). The &amp;lt;code&amp;gt;IItemPropertyGetter&amp;lt;/code&amp;gt; is a function that takes the &amp;lt;code&amp;gt;ItemStack&amp;lt;/code&amp;gt;, the &amp;lt;code&amp;gt;ClientWorld&amp;lt;/code&amp;gt; it’s in, and the &amp;lt;code&amp;gt;LivingEntity&amp;lt;/code&amp;gt; that holds it, returning the &amp;lt;code&amp;gt;float&amp;lt;/code&amp;gt; value for the property. Some examples are the &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pulling&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;pull&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; properties for &amp;lt;code&amp;gt;Items#BOW&amp;lt;/code&amp;gt;, and the several default ones in &amp;lt;code&amp;gt;ItemModelProperties&amp;lt;/code&amp;gt;. For modded item properties, it is recommended that the modid of the mod is used as the namespace (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;examplemod:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and not just &amp;lt;code&amp;gt;property&amp;lt;/code&amp;gt;, as that really means &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;minecraft:property&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== Using Overrides ==&lt;br /&gt;
A good example can be found in &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;model/item/bow.json&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. For reference, here is a hypothetical example of an item with an &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;examplemod:power&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; property. If the values have no match, the default is the current model.&lt;br /&gt;
&amp;lt;block important&amp;gt;A predicate applies to all values greater than or equal to the given value.&amp;lt;/block&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;json&amp;quot;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
  &amp;quot;parent&amp;quot;: &amp;quot;item/generated&amp;quot;,&lt;br /&gt;
  &amp;quot;textures&amp;quot;: {&lt;br /&gt;
    &amp;quot;__comment&amp;quot;: &amp;quot;Default&amp;quot;,&lt;br /&gt;
    &amp;quot;layer0&amp;quot;: &amp;quot;examplemod:items/examplePartial&amp;quot;&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;overrides&amp;quot;: [&lt;br /&gt;
    {&lt;br /&gt;
      &amp;quot;__comment&amp;quot;: &amp;quot;power &amp;gt;= .75&amp;quot;,&lt;br /&gt;
      &amp;quot;predicate&amp;quot;: {&lt;br /&gt;
        &amp;quot;examplemod:power&amp;quot;: 0.75&lt;br /&gt;
      },&lt;br /&gt;
      &amp;quot;model&amp;quot;: &amp;quot;examplemod:item/examplePowered&amp;quot;&lt;br /&gt;
    }&lt;br /&gt;
  ]&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
And here’s a hypothetical snippet from the supporting code. (This does not have to be client-only; it will work on a server too. In vanilla, properties are registered in the item’s constructor.)&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public void clientSetup(final FMLCLientSetupEvent event) {&lt;br /&gt;
  ItemModelProperties.registerProperty(item, new ResourceLocation(&amp;quot;examplemod:power&amp;quot;), new IItemPropertyGetter() {&lt;br /&gt;
    @Override&lt;br /&gt;
    public float call(ItemStack stack, @Nullable ClientWorld world, @Nullable LivingEntity entity) {&lt;br /&gt;
      return (float)getPowerLevel(stack) / (float)getMaxPower(stack); // Some external methods&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Unbekannt</name></author>
	</entry>
</feed>