I have an item I want to replace the texture of, via kubeJS.
I made a texture I liked using
event.create('sweg:cobalt_dust')
.displayName("Cobalt Dust")
.textureJson({
layer0: "thermal:item/iron_dust"
})
.color(0, "#2665ff")
But I recently found JAOCPA which adds a bunch of missing ore processing items. However, I would rather use the texture for cobalt dust that I was able to create above.
The following code only partially works for some reason (see video, first cobalt dust is the one I made, but the jaocpa one is still the output for various jaocpa recipes)
// replace jaopca cobalt dust with better looking dust in all recipes
event.replaceInput('jaopca:dusts.cobalt', 'sweg:cobalt_dust')
event.replaceOutput({}, 'jaopca:dusts.cobalt', 'sweg:cobalt_dust')
Not all the recipes are converted and I think it is because jaopca generates the recipes dynamically, and perhaps kubejs runs before that? Considering I just want to replace the texture though, creating a new item is probably the wrong way to do it. I am open to other suggestions as to how to code this.