tutorial:items_docs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:items_docs [2020/04/01 19:22] – save point for Item.Settings docs draylar | tutorial:items_docs [2020/04/01 19:45] – finish Item.Settings method docs draylar | ||
---|---|---|---|
Line 21: | Line 21: | ||
public Item.Settings food(FoodComponent foodComponent) | public Item.Settings food(FoodComponent foodComponent) | ||
</ | </ | ||
- | '' | + | '' |
---- | ---- | ||
Line 29: | Line 29: | ||
public Item.Settings maxCount(int maxCount) | 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