Changes

Jump to navigation Jump to search
→‎Item spawn fields: correction (ItemId can be unqualified), update default values
Line 4,965: Line 4,965:  
| <samp>ItemId</samp>
 
| <samp>ItemId</samp>
 
| One of:
 
| One of:
* the [[#Custom items|qualified item ID]] (like <samp>(O)128</samp> for a [[pufferfish]]);
+
* the [[#Custom items|qualified or unqualified item ID]] (like <samp>(O)128</samp> for a [[pufferfish]]);
 
* or an [[#Item queries|item query]] to dynamically choose one or more items.
 
* or an [[#Item queries|item query]] to dynamically choose one or more items.
 
|-
 
|-
Line 4,979: Line 4,979:  
|-
 
|-
 
| <samp>Quality</samp>
 
| <samp>Quality</samp>
| ''(Optional)'' The quality of the item to find. One of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or <samp>4</samp> (iridium). Invalid values will snap to the closest valid one (e.g. <samp>7</samp> will become iridium). Default normal quality.
+
| ''(Optional)'' The quality of the item to find. One of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or <samp>4</samp> (iridium). Invalid values will snap to the closest valid one (e.g. <samp>7</samp> will become iridium). Default -1, which keeps the value set by the item query (usually 0).
 
|-
 
|-
 
| <samp>MinStack</samp>
 
| <samp>MinStack</samp>
Line 4,985: Line 4,985:  
|-
 
|-
 
| <samp>MaxStack</samp>
 
| <samp>MaxStack</samp>
| ''(Optional)'' If set to a value higher than <samp>MinStack</samp>, the stack is set to a random value between them (inclusively).
+
| ''(Optional)'' If set to a value higher than <samp>MinStack</samp>, the stack is set to a random value between them (inclusively). Default -1.
 
|-
 
|-
 
| <samp>ToolUpgradeLevel</samp>
 
| <samp>ToolUpgradeLevel</samp>
| ''(Optional)'' The initial upgrade level for the tool when created (like [[Axes|Copper vs Gold Axe]], or [[Training Rod]] vs [[Iridium Rod]]). This is ignored for non-tool items. Default 0.
+
| ''(Optional)'' The initial upgrade level for the tool when created (like [[Axes|Copper vs Gold Axe]], or [[Training Rod]] vs [[Iridium Rod]]). This is ignored for non-tool items. Default -1, which keeps the value set by the item query (usually 0).
 
|-
 
|-
 
| <samp>QualityModifiers</samp><br /><samp>StackModifiers</samp>
 
| <samp>QualityModifiers</samp><br /><samp>StackModifiers</samp>
translators
8,446

edits

Navigation menu