User Tools

Site Tools


tutorial:items_docs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:items_docs [2020/04/01 19:22] – save point for Item.Settings docs draylartutorial:items_docs [2020/04/01 19:23] – clarify max count limits draylar
Line 29: Line 29:
 public Item.Settings maxCount(int maxCount) public Item.Settings maxCount(int maxCount)
 </code> </code>
-''maxCount'' - the maximum count of an ''ItemStack'' for the given ''Item''. If ''maxDamage'' has already been called, a ''RuntimeException'' is thrown, as an Item cannot have both damage and count.+''maxCount'' - the maximum count of an ''ItemStack'' for the given ''Item''. If ''maxDamage'' has already been called, a ''RuntimeException'' is thrown, as an Item cannot have both damage and count. Keeping the max count at or below 64 is recommended, as any value above that can lead to various issues.
  
  
  
tutorial/items_docs.txt · Last modified: 2023/06/12 16:25 by mineblock11