#Help making items invisible again

1 messages · Page 1 of 1 (latest)

rich grove
#

my old items were invisible but they arent working anymore both codes are in the comments

#
    "format_version": "1.20.80",
    "minecraft:item": {
        "description": {
            "identifier": "power:hellfire",
            "menu_category": {
                "category": "construction"
            }
        },
        "components": {
            "minecraft:icon": "power_hellfire",
        "minecraft:display_name": {
            "value": "§rHellire"
        },
        "minecraft:render_offsets": {
        "main_hand": {
          "first_person": {
            "scale": [ 0, 0, 0 ]
          },
          "third_person": {
            "scale": [ 0, 0, 0 ]
          }
        },
        "off_hand": {
          "first_person": {
            "scale": [ 0, 0, 0 ]
          },
          "third_person": {
            "scale": [ 0, 0, 0 ]
          }
        }
      },
      "minecraft:max_stack_size": 1,
      "tag:invisible_item": {}
    }
  }
}```
#
    "format_version": "1.16.100",
    "minecraft:item": {
        "description": {
            "identifier": "power:hellfire",
            "category": ""
        },
        "components": {
            "minecraft:icon": {
                "texture": "power_hellfire"
            },
            "minecraft:display_name": {
                "value": "§rHellire"
            },
            "minecraft:render_offsets": {
                "main_hand": {
                    "first_person": {
                        "scale": [
                            0,
                            0,
                            0
                        ]
                    },
                    "third_person": {
                        "scale": [
                            0,
                            0,
                            0
                        ]
                    }
                }
            },
            "minecraft:use_duration": 0,
            "minecraft:max_stack_size": 1,
            "minecraft:food": {
                "can_always_eat": true
            }
        }
    }
}```
rich grove
#

@delicate drum sorry for the ping but can an attachable make an item invisible? I’ve been seeing yall say use attachables for 2d textures now that render offsets is gone.

inland ruin
#

Yeah, i believe you can use an attachable with an empty geometry

rich grove
#

are you able to tether multiple items to one attachable file?

inland ruin
#

No, you need one for each item

rich grove
#

How would you scale an attachable or would I just make a geometry that has nothing in it

inland ruin
#

I'd recommend trying to make a geometry with nothing in it first

#

If that doesn't work, you can try scaling in an animation.

rich grove
#
    "format_version": "1.10.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "omni:omnitrix",
            "render_controllers": [
                "controller.render.item_default"
            ],
            "materials": {
                "default": "entity_alphatest",
                "enchanted": "entity_alphatest_glint"
            },
            "textures": {
                "default": "textures/entity/attachable/empty",
                "enchanted": "textures/misc/enchanted_item_glint"
            },
            "geometry": {
                "default": "geometry.empty"
            },
            "animations": {
                "hold": "animation.large_item.hold"
            },
            "scripts": {
                "animate": [
                    "hold"
                ]
            }
        }
    }
}``` heres what it looks like in game with the attachable file
inland ruin
#

That looks like it's not applying. Any content log errors when you load up the world?

#

Also, why not just make the armband part of the attachable?

#

Rather than modifying player.entity.json

rich grove
#

no content log errors and i'll try

#

it has a custom model that renders the original item used the render_offsets to make it invis and it used a model before being put on

#
    "format_version": "1.10.0",
    "minecraft:attachable": {
        "description": {
            "identifier": "omni:omnitrix",
            "render_controllers": [
                "controller.render.omnitrix_item"
            ],
            "materials": {
                "default": "entity_alphatest",
                "enchanted": "entity_alphatest_glint"
            },
            "textures": {
                "default": "textures/omnitrix/os/omnitrix_default",
                "enchanted": "textures/misc/enchanted_item_glint"
            },
            "geometry": {
                "default": "geometry.omnitrix_item"
            },
            "animations": {
                "omnitrix_item": "animation.player.omnitrix_item"
            },
            "scripts": {
                "animate": [
                    "omnitrix_item"
                ]
            }
        }
    }
}``` its still doing that i'll send the animation that i used in a sec
#
            "loop": true,
            "bones": {
                "omnitrix_item": {
                    "position": [
                        0,
                        9,
                        -5
                    ],
                    "scale": [
                        0.4,
                        0.4,
                        0.5
                    ]
                },
                "dial_item": {
                    "position": [
                        0,
                        0,
                        2
                    ]
                },
                "base_item": {
                    "scale": [
                        1,
                        1,
                        0.8
                    ]
                },
                "omnitrix_item_fp": {
                    "position": [
                        0,
                        9,
                        -5
                    ],
                    "scale": [
                        0.3,
                        0.3,
                        0.4
                    ]
                },
                "dial_item_fp": {
                    "position": [
                        0,
                        0,
                        2
                    ]
                },
                "base_item_fp": {
                    "scale": [
                        1,
                        1,
                        0.8
                    ]
                }
            }
        }```
rich grove
#
            "geometry": "geometry.omnitrix_item",
            "materials": [
                {
                    "*": "material.glow"
                }
            ],
            "textures": [
                "texture.omnitrix"
            ],
            "part_visibility": [
                {
                    "*": "query.get_equipped_item_name('main_hand') =='omnitrix'"
                }
            ]
        },``` could the reason be that i have it to where it renders a custom model when the item is held
inland ruin
#

I don't think that's why the attachable isn't working

#

I'll put it in an editor later today, maybe some json got malformatted. Only other things I can think of could be a typo in the item identifier for the attachable, or your pack not updating. It's in the development packs ajd not attached to the world at all, right?

rich grove
#

Yea development packs but I just removed the icon and it works