黑茶RGO
版本:1.14.4

如何通过改资源包使带有特定NBT(CustomModelData)的弓完全不可见(鼠标放在上面还是可以显示这把弓的信息),包括拉弓时也不可见

⊙u⊙
资源包放入以下

assets\minecraft\models\item\scale_0.json
  1. {
  2.     "display": {
  3.         "thirdperson_righthand": { "scale": [ 0, 0, 0 ] },
  4.         "thirdperson_lefthand": { "scale": [ 0, 0, 0 ] },
  5.         "firstperson_righthand": { "scale": [ 0, 0, 0 ] },
  6.         "firstperson_lefthand": { "scale": [ 0, 0, 0 ] },
  7.         "gui": { "scale": [ 0, 0, 0 ] },
  8.         "head": { "scale": [ 0, 0, 0 ] },
  9.         "ground": { "scale": [ 0, 0, 0 ] },
  10.         "fixed": { "scale": [ 0, 0, 0 ] }
  11.     }
  12. }
复制代码



assets\minecraft\models\item\bow.json
  1. {
  2.         "parent": "item/generated",
  3.         "textures": {
  4.                 "layer0": "item/bow"
  5.         },
  6.         "display": {
  7.                 "thirdperson_righthand": {
  8.                         "rotation": [-80, 260, -40],
  9.                         "translation": [-1, -2, 2.5],
  10.                         "scale": [0.9, 0.9, 0.9]
  11.                 },
  12.                 "thirdperson_lefthand": {
  13.                         "rotation": [-80, -280, 40],
  14.                         "translation": [-1, -2, 2.5],
  15.                         "scale": [0.9, 0.9, 0.9]
  16.                 },
  17.                 "firstperson_righthand": {
  18.                         "rotation": [0, -90, 25],
  19.                         "translation": [1.13, 3.2, 1.13],
  20.                         "scale": [0.68, 0.68, 0.68]
  21.                 },
  22.                 "firstperson_lefthand": {
  23.                         "rotation": [0, 90, -25],
  24.                         "translation": [1.13, 3.2, 1.13],
  25.                         "scale": [0.68, 0.68, 0.68]
  26.                 }
  27.         },
  28.         "overrides": [
  29.                 {
  30.                         "predicate": {
  31.                                 "pulling": 1
  32.                         },
  33.                         "model": "item/bow_pulling_0"
  34.                 },
  35.                 {
  36.                         "predicate": {
  37.                                 "pulling": 1,
  38.                                 "pull": 0.65
  39.                         },
  40.                         "model": "item/bow_pulling_1"
  41.                 },
  42.                 {
  43.                         "predicate": {
  44.                                 "pulling": 1,
  45.                                 "pull": 0.9
  46.                         },
  47.                         "model": "item/bow_pulling_2"
  48.                 },
  49.                 {
  50.                         "predicate": {
  51.                                 "custom_model_data": 1
  52.                         },
  53.                         "model": "item/scale_0"
  54.                 }
  55.         ]
  56. }
复制代码