User Tools

Site Tools


ru:tutorial:items_docs

Differences

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

Link to this comparison view

Next revision
Previous revision
ru:tutorial:items_docs [2021/05/08 20:34] – created magicsweetru:tutorial:items_docs [2022/02/17 08:41] (current) – furnygo
Line 62: Line 62:
 public Item.Settings recipeRemainder(Item recipeRemainder) public Item.Settings recipeRemainder(Item recipeRemainder)
 </code> </code>
-''recipeRemainder'' - Item to return as a remainder when the base Item is used in a crafting recipe.+''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> <code java>
 public Item.Settings group(ItemGroup group) public Item.Settings group(ItemGroup group)
Line 74: Line 74:
 ''group'' - ItemGroup to add Item in. ''group'' - ItemGroup to add Item in.
  
-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:itemgroup|ItemGroups page]].+Каждая группа предметов отображается в виде вкладки в инвентаре креатива. Добавление предмета в эту группу приведет к его добавлению на вкладку. Порядок группы основан на порядке регистрации. Для получения дополнительной информации о создании группы, смотрите [[ru:tutorial:itemgroup|страницу создания групп предметов]].
  
 ---- ----
  
-==== Rarity ====+==== Редкость ====
 <code java> <code java>
 public Item.Settings rarity(Rarity rarity) public Item.Settings rarity(Rarity rarity)
 </code> </code>
-''rarity'' - Rarity of the given Item.+''rarity'' - Редкость предмета
  
-If Rarity is set, the given Item will have a custom name color. An Item's Rarity defaults to common. +Если задан Rarity, данный элемент будет иметь пользовательский цвет имени. Редкость предмета по умолчанию равна обычной. 
-^ Rarity ^ Color ^ + 
-| Common | White | +^ Редкость ^ Цвет ^ 
-| Uncommon | Yellow | +| Common(обычный) | Белый | 
-| Rare | Aqua | +| Uncommon(необычный) | Жёлтый | 
-| Epic | Light Purple |+| Rare(редкий) | Голубой | 
 +| Epic(эпический) | Розовый |
  
 ---- ----
  
-==== Fireproof ====+==== Огнеупорность ====
 <code java> <code java>
 public Item.Settings fireproof() public Item.Settings fireproof()
 </code> </code>
  
-Marks the item as being fireproof, and protects the item entity that contains the item from fire and lava.+Помечает предмет как огнеупорный и защищает энтити предмета от огня и лавы.
ru/tutorial/items_docs.1620506041.txt.gz · Last modified: by magicsweet