KubeJS

KubeJS

69M Downloads

ItemBuilder.texture() layer argument

briarss opened this issue ยท 0 comments

commented

Describe the feature

It'd be great to have an overload method for ItemBuilder.texture() to allow for specifying a texture part/layer in the model json. For example, with this model;

{
    "parent": "wand",
    "textures": {
        "wand": "kubejs:textures/silver_wand",
        "cap": "kubejs:textures/iron_cap",
        "particle": "wand"
    },
}

I'd be able to do item.texture('cap', 'kubejs:textures/copper_cap') and it would change that texture.

Additional info

It's a small but incredibly useful feature for any kind of modular system