#How do i get dyed items to work with resizing attachables?

1 messages · Page 1 of 1 (latest)

low cliff
#

attachable:

{
    "format_version": "1.21.30",
    "minecraft:attachable": {
        "description": {
            "identifier": "civ_currency:standard",
            "materials": {
                "default": "entity_alphatest",
                "enchanted": "entity_alphatest_glint"
            },
            "textures": {
                "default": "textures/items/currency/quartz",
                "dyed":"textures/items/currency/dstandard",
                "enchanted": "textures/misc/enchanted_item_glint"
            },
            "geometry": {
                "default": "geometry.large_item"
            },
            "animations": {
                "hold": "animation.large_item.hold"
            },
            "scripts": {
                "animate": ["hold"]
            },
            "render_controllers": ["controller.render.large_item"]
        }
    }
}
#

render controller:

{
    "format_version": "1.8.0",
    "render_controllers": {
        "controller.render.large_item": {
            "geometry": "Geometry.default",
            "materials": [{ "*": "variable.is_enchanted ? Material.enchanted : Material.default" }],
            "textures": ["Texture.default", "Texture.enchanted"]
        }
    }
}
fallen grove
#

Your render controller is not set up to use the dye texture. This file should show you how to set up the render controller. Then in the scripts, you need a "pre_animation" for the "variable.is_dyed". Here is the official link from Microsoft on how to do it. You can use their render controller if you don't need to have an enchantment glint on it, but if you do want an enchantment glint then use mine. https://learn.microsoft.com/en-us/minecraft/creator/documents/addcustomitems?view=minecraft-bedrock-stable#dyable-custom-chestplate-behavior-pack

A tutorial for creating custom items in Minecraft: Bedrock Edition

low cliff
fallen grove