版本:1.14.4
如何通过改资源包使带有特定NBT(CustomModelData)的弓完全不可见(鼠标放在上面还是可以显示这把弓的信息),包括拉弓时也不可见
如何通过改资源包使带有特定NBT(CustomModelData)的弓完全不可见(鼠标放在上面还是可以显示这把弓的信息),包括拉弓时也不可见
资源包放入以下
assets\minecraft\models\item\scale_0.json
复制代码
assets\minecraft\models\item\bow.json
复制代码
assets\minecraft\models\item\scale_0.json
- {
- "display": {
- "thirdperson_righthand": { "scale": [ 0, 0, 0 ] },
- "thirdperson_lefthand": { "scale": [ 0, 0, 0 ] },
- "firstperson_righthand": { "scale": [ 0, 0, 0 ] },
- "firstperson_lefthand": { "scale": [ 0, 0, 0 ] },
- "gui": { "scale": [ 0, 0, 0 ] },
- "head": { "scale": [ 0, 0, 0 ] },
- "ground": { "scale": [ 0, 0, 0 ] },
- "fixed": { "scale": [ 0, 0, 0 ] }
- }
- }
assets\minecraft\models\item\bow.json
- {
- "parent": "item/generated",
- "textures": {
- "layer0": "item/bow"
- },
- "display": {
- "thirdperson_righthand": {
- "rotation": [-80, 260, -40],
- "translation": [-1, -2, 2.5],
- "scale": [0.9, 0.9, 0.9]
- },
- "thirdperson_lefthand": {
- "rotation": [-80, -280, 40],
- "translation": [-1, -2, 2.5],
- "scale": [0.9, 0.9, 0.9]
- },
- "firstperson_righthand": {
- "rotation": [0, -90, 25],
- "translation": [1.13, 3.2, 1.13],
- "scale": [0.68, 0.68, 0.68]
- },
- "firstperson_lefthand": {
- "rotation": [0, 90, -25],
- "translation": [1.13, 3.2, 1.13],
- "scale": [0.68, 0.68, 0.68]
- }
- },
- "overrides": [
- {
- "predicate": {
- "pulling": 1
- },
- "model": "item/bow_pulling_0"
- },
- {
- "predicate": {
- "pulling": 1,
- "pull": 0.65
- },
- "model": "item/bow_pulling_1"
- },
- {
- "predicate": {
- "pulling": 1,
- "pull": 0.9
- },
- "model": "item/bow_pulling_2"
- },
- {
- "predicate": {
- "custom_model_data": 1
- },
- "model": "item/scale_0"
- }
- ]
- }