User Tools

Site Tools


zh_cn:tutorial:armor

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
zh_cn:tutorial:armor [2023/08/19 10:44] – [创建盔甲材料类] wjz_pzh_cn:tutorial:armor [2023/08/20 10:19] (current) – [提供纹理] wjz_p
Line 42: Line 42:
   - String <yarn method_7694>: what the parent item of the armor is. In Diamond armor, it'd be "diamond".   - String <yarn method_7694>: what the parent item of the armor is. In Diamond armor, it'd be "diamond".
   - <yarn method_7700>: This is a second protection value where the armor is more durable against high value attacks. Value goes as 'X.0F'   - <yarn method_7700>: This is a second protection value where the armor is more durable against high value attacks. Value goes as 'X.0F'
 +**这是第二个保护数值,表示装甲在面对高伤害攻击时更耐用。数值为'X.0F'。**
 在1.16引入的新值 在1.16引入的新值
   - <yarn method_24355>: leave this value at 0. If you want to implement it, write '0.XF' (in which X is how much knockback protection you want), and I'll teach you how to make it work later on.   - <yarn method_24355>: leave this value at 0. If you want to implement it, write '0.XF' (in which X is how much knockback protection you want), and I'll teach you how to make it work later on.
 +**将这个值保留为0。如果你想实现它,写上'0.XF'(其中X代表你想要的击退保护量),我会稍后告诉你如何让它生效。**
  
 接下来所有的参数都会写成 X 或者 A、B、C、D。加上这些参数之后,效果应该如下: 接下来所有的参数都会写成 X 或者 A、B、C、D。加上这些参数之后,效果应该如下:
Line 171: Line 171:
 重复上述过程,完成其他物品。 重复上述过程,完成其他物品。
  
-要给予穿着的盔甲的纹理,只需要将X_layer_1.png和X_layer_2.png(其中X是你在你的盔甲材料类中选择参数)放到 'resources/assets/minecraft/textures/models/armor'+要给予穿着的盔甲的纹理,只需要将X_layer_1.png和X_layer_2.png(其中X是你在你的盔甲材料类中重载getName方法的返回值)放到 'resources/assets/**minecraft**/textures/models/armor'
  
  
zh_cn/tutorial/armor.1692441856.txt.gz · Last modified: 2023/08/19 10:44 by wjz_p