Devan-Kerman / ARRP

A fabric api for creating resources and assets at runtime
Mozilla Public License 2.0
101 stars 25 forks source link

Cant replace vanilla texture #38

Open Cardistymo opened 2 years ago

Cardistymo commented 2 years ago

Hello,

I am trying to replace a vanilla texture via ARRP. But if I add a texture like RESOURCE_PACK.addTexture(new Identifier("minecraft", "/gui/options_background"), image);, it changes nothing.

Devan-Kerman commented 2 years ago

This is likely because of how you're registering the pack

Cardistymo commented 2 years ago

I am registering the pack like this: RuntimeResourcePack.create(MODID + ":resource");. How to register the pack, so I can replace vanilla textures?

Cardistymo commented 2 years ago

Ohh sry. This is how i am register the pack: RRPCallback.AFTER_VANILLA.register(a -> a.add(RESOURCE_PACK));

Devan-Kerman commented 2 years ago

use BEFORE_VANILLA it says it in the documentation

Cardistymo commented 2 years ago

@Devan-Kerman tried this already and now again, it doesnt work...

Devan-Kerman commented 2 years ago

I'll take a look when I get back

Devan-Kerman commented 1 year ago

ensure your path is correct, try dumping resources with RuntimeResourcePack#dump