User Tools

Site Tools


tutorial:armor

Differences

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

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
tutorial:armor [2019/07/19 05:33] – created (Feel free to edit if I missed anything, this was all done by looking at the vanilla code so it's pretty likely I missed something :P) ggtylerrtutorial:armor [2020/06/17 20:19] – Some corrections in spacing and pack format (5 for 1.15 & 1.16) terantai
Line 25: Line 25:
   - Armor values, or "Protection Amounts" in the vanilla code. This will be an int array.   - Armor values, or "Protection Amounts" in the vanilla code. This will be an int array.
   - Enchantability. This will be how likely the armor can get high level or multiple enchantments in an enchantment book.   - Enchantability. This will be how likely the armor can get high level or multiple enchantments in an enchantment book.
-  - A sound event. The standard used by vanilla armor is ''SoundEvents.ITEM.EQUIP.ARMOR.X'', X being the type of armor.+  - A sound event. The standard used by vanilla armor is ''SoundEvents.ITEM_ARMOR_EQUIP_X'', X being the type of armor.
   - Toughness. This is a second protection value where the armor is more durable against high value attacks.   - Toughness. This is a second protection value where the armor is more durable against high value attacks.
   - A repair ingredient. This will be a ''Supplier<Ingredient>'' instance instead of an ''Item'', which will go over in a bit.   - A repair ingredient. This will be a ''Supplier<Ingredient>'' instance instead of an ''Item'', which will go over in a bit.
Line 167: Line 167:
 { {
     "pack":{     "pack":{
-        "pack_format":4+        "pack_format": 5
-        "description":"Tutorial Mod"+        "description": "Tutorial Mod"
     }     }
 } }
tutorial/armor.txt · Last modified: 2023/08/20 10:19 by wjz_p