tutorial:items_docs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:items_docs [2020/12/29 17:37] – mysterious_dev | tutorial:items_docs [2023/06/12 16:25] (current) – mineblock11 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | :!: //This page is archived.// | ||
+ | |||
====== Items ====== | ====== Items ====== | ||
- | Items are the pieces of content that appear in your inventory. They can perform actions when you click, act as food, or spawn entities. The following documentation will give you a rundown of the entire '' | + | |
+ | Items are the pieces of content that appear in your inventory. They can perform actions when you click, act as food, or spawn entities. The following documentation will give you a rundown of the entire '' | ||
===== Item Settings ===== | ===== Item Settings ===== | ||
Line 12: | Line 15: | ||
| maxDamage | '' | | maxDamage | '' | ||
| recipeRemainder | '' | | recipeRemainder | '' | ||
- | | group | '' | ||
| rarity | '' | | rarity | '' | ||
| fireproof | None | Marks the item as being fireproof. Prevents the item from being destroyed by lava and fire. | | | fireproof | None | Marks the item as being fireproof. Prevents the item from being destroyed by lava and fire. | | ||
Line 30: | Line 32: | ||
public Item.Settings food(FoodComponent foodComponent) | public Item.Settings food(FoodComponent foodComponent) | ||
</ | </ | ||
- | '' | + | '' |
---- | ---- | ||
Line 67: | Line 69: | ||
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. | 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: | ||
---- | ---- |
tutorial/items_docs.1609263425.txt.gz · Last modified: 2020/12/29 17:37 by mysterious_dev