Changes

279 bytes removed ,  13:57, 12 January 2022
Update to 1.18
Line 9: Line 9:  
!Method                  !!Description   
 
!Method                  !!Description   
 
|-
 
|-
|  <code><nowiki>group</nowiki></code>          ||  Sets which <code><nowiki>ItemGroup</nowiki></code> (previously called creative tab) this item is under. Must be called if this item is meant to be shown on the creative menu. Vanilla groups can be found in the class <code><nowiki>ItemGroup</nowiki></code>.  
+
|  <code><nowiki>tab</nowiki></code>          ||  Sets which <code><nowiki>CreativeModeTab</nowiki></code> (previously called creative tab) this item is under. Must be called if this item is meant to be shown on the creative menu. Vanilla tabs can be found in the class <code><nowiki>CreativeModeTab</nowiki></code>.  
 
|-
 
|-
|  <code><nowiki>maxDamage</nowiki></code>      ||  Sets the maximum damage value for this item. If it is greater than ''0'', the properties ''damaged'' and ''damage'' are added to keep track of the current ''ItemStack'' damage.  
+
|  <code><nowiki>durability</nowiki></code>      ||  Sets the maximum damage value for this item. If it is greater than ''0'', the properties ''damaged'' and ''damage'' are added to keep track of the current ''ItemStack'' damage.  
 
|-
 
|-
|  <code><nowiki>maxStackSize</nowiki></code>    ||  Sets the maximum stack size. You cannot have an item that is both damagable and stackable.  
+
|  <code><nowiki>stacksTo</nowiki></code>    ||  Sets the maximum stack size. You cannot have an item that is both damagable and stackable.  
 
|-
 
|-
 
|  <code><nowiki>setNoRepair</nowiki></code>    ||  Makes this item impossible to repair, even if it is damageable.  
 
|  <code><nowiki>setNoRepair</nowiki></code>    ||  Makes this item impossible to repair, even if it is damageable.  
 
|-
 
|-
|  <code><nowiki>containerItem</nowiki></code>  ||  Sets this item’s container item. For example, milk buckets give you back an empty bucket when they are crafted.
+
|  <code><nowiki>craftRemainder</nowiki></code>  ||  Sets this item’s container item. For example, milk buckets give you back an empty bucket when they are crafted.  
|-
  −
|  <code><nowiki>addToolType</nowiki></code>    ||  Gives the item the ability of a <code><nowiki>ToolType</nowiki></code> (<code><nowiki>SHOVEL</nowiki></code>, <code><nowiki>AXE</nowiki></code>) at the specified harvest level (''0'' for Wood/Gold, ''1'' for Stone, ''2'' for Iron, ''3'' for Gold).  
   
|-
 
|-
 
|}
 
|}
Line 31: Line 29:  
== Registering an Item ==
 
== Registering an Item ==
 
Items must be [[Registration|registered]] to function.
 
Items must be [[Registration|registered]] to function.
 +
 +
 +
[[Category:Items]]