Skip to content

Modify Elytra Render

Modifies how an elytra wings is rendered on the entity holding the power.

Type ID: kaya:modify/elytra/render

Info

When rendering the elytra wings, this type will specifically use the wings layer defined in the equipment definition specified in asset_id. See Minecraft Wiki: Equipment for more information about creating custom equipment definitions.

Format

Field Type Default Description
asset_id Identifier The ID of the equipment definition to use.
trim Identifier optional If specified, the trim with this ID will be applied to the rendered wings.
color Color optional If specified, this color will be applied to the rendered wings.
priority Integer 0 Determines the order of which the powers are iterated.
About priorities

The instances of this type will be sorted in its reversed natural order meaning that instances that have a higher priority value will have its elytra wings rendered first before those that have a lower priority value.

Example

{
    "type": "kaya:modify/elytra/render",
    "asset_id": "example:dyeable_elytra", // (1)!
    "color": {
        "type": "kaya:biome/foliage",
        "position": {
            "type": "kaya:entity/position",
            "entity": "this"
        },
        "alpha": 1.0,
        "dry": false
    }
}
  1. The file is assets/example/equipment/dyeable_elytra.json with this being its contents:

    {
        "layers": {
            //  For the elytra to be rendered, the properties must be defined in the 'wings' layer!
            "wings": [
                {
                    "texture": "minecraft:elytra",
                    "use_player_texture": true,
                    "dyeable": {}
                }
            ]
        }
    }
    

This example renders an elytra wings to the entity holding the power with its color being dependent on the biome the entity is in.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.