This shows you the differences between two versions of the page.
tutorial:armor [2019/07/19 05:33] ggtylerr 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) |
tutorial:armor [2019/09/27 20:42] (current) descuddlebat SoundEvents.ITEM_ARMOR_EQUIP_X, as SoundEvents.ITEM.EQUIP.ARMOR.X doesn't exist |
||
---|---|---|---|
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. |