tutorial:items_docs
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:items_docs [2020/03/30 02:50] – created draylar | tutorial:items_docs [2020/04/01 19:45] – finish Item.Settings method docs draylar | ||
---|---|---|---|
Line 15: | Line 15: | ||
| rarity | Rarity | Sets the rarity of the Item, which changes its name color. | | | rarity | Rarity | Sets the rarity of the Item, which changes its name color. | | ||
+ | ---- | ||
+ | ==== Food ==== | ||
+ | <code java> | ||
+ | public Item.Settings food(FoodComponent foodComponent) | ||
+ | </ | ||
+ | '' | ||
+ | ---- | ||
+ | |||
+ | ==== Max Stack Count ==== | ||
+ | <code java> | ||
+ | public Item.Settings maxCount(int maxCount) | ||
+ | </ | ||
+ | '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Max Damage if Absent ==== | ||
+ | <code java> | ||
+ | public Item.Settings maxDamageIfAbsent(int maxDamage) | ||
+ | </ | ||
+ | '' | ||
+ | |||
+ | If '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Max Damage ==== | ||
+ | <code java> | ||
+ | public Item.Settings maxDamage(int maxDamage) | ||
+ | </ | ||
+ | '' | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Recipe Remainder ==== | ||
+ | <code java> | ||
+ | public Item.Settings recipeRemainder(Item recipeRemainder) | ||
+ | </ | ||
+ | '' | ||
+ | |||
+ | When a recipe remainder is set on an Item, any recipe using that Item will return the remainder on craft. This is used for buckets (Water, Lava, Milk) and bottles (Dragon Breath, Honey) returning their respective empty items when used in recipes. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Group ==== | ||
+ | <code java> | ||
+ | public Item.Settings group(ItemGroup group) | ||
+ | </ | ||
+ | '' | ||
+ | |||
+ | Each ItemGroup appears as a tab in the creative inventory. Adding an Item to this group will add it to the tab. The order of the group is based on registry order. For more information on creating a group, see the [[tutorial: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Rarity ==== | ||
+ | <code java> | ||
+ | public Item.Settings rarity(Rarity rarity) | ||
+ | </ | ||
+ | '' | ||
+ | |||
+ | If Rarity is set, the given Item will have a custom name color. An Item's Rarity defaults to common. | ||
+ | ^ Rarity ^ Color ^ | ||
+ | | Common | White | | ||
+ | | Uncommon | Yellow | | ||
+ | | Rare | Aqua | | ||
+ | | Epic | Light Purple | |
tutorial/items_docs.txt · Last modified: 2023/06/12 16:25 by mineblock11