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:45] – finish Item.Settings method docs draylar | tutorial:items_docs [2020/12/29 17:37] – mysterious_dev | ||
---|---|---|---|
Line 7: | Line 7: | ||
^ Method | ^ Method | ||
- | | food | FoodComponent | Changes the Item to be edible based on the given '' | + | | food | '' |
- | | maxCount | + | | maxCount |
- | | maxDamageIfAbsent | int | Sets the Item's maximum damage count if it hasn't already been set. | | + | | maxDamageIfAbsent | '' |
- | | maxDamage |int | Sets the Item's max stack durability. | | + | | maxDamage | '' |
- | | recipeRemainder | Item | Sets the Item's recipe remainder, which is given back to the player after the Item is used in a recipe. | | + | | recipeRemainder | '' |
- | | group | ItemGroup | Sets the ItemGroup of the Item, which is used for creative tabs. | | + | | group | '' |
- | | rarity | Rarity | Sets the rarity of the Item, which changes its name color. | | + | | rarity | '' |
+ | | fireproof | None | Marks the item as being fireproof. Prevents the item from being destroyed by lava and fire. | | ||
+ | |||
+ | ===== Fabric Item Settings ===== | ||
+ | The Fabric Item API provides extra methods to set even more attributes. To use it, just replace '' | ||
+ | Heres the list of additional functionalities '' | ||
+ | |||
+ | ^ Method | ||
+ | | equipmentSlot | '' | ||
+ | | customDamage | '' | ||
---- | ---- | ||
Line 83: | Line 92: | ||
| Rare | Aqua | | | Rare | Aqua | | ||
| Epic | Light Purple | | | Epic | Light Purple | | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Fireproof ==== | ||
+ | <code java> | ||
+ | public Item.Settings fireproof() | ||
+ | </ | ||
+ | |||
+ | Marks the item as being fireproof, and protects the item entity that contains the item from fire and lava. |
tutorial/items_docs.txt · Last modified: 2023/06/12 16:25 by mineblock11