ARRP icon indicating copy to clipboard operation
ARRP copied to clipboard

Cant replace vanilla texture

Open Cardistymo opened this issue 4 years ago • 7 comments

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.

Cardistymo avatar Aug 25 '21 15:08 Cardistymo

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

Ueaj-Kerman avatar Aug 25 '21 21:08 Ueaj-Kerman

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

Cardistymo avatar Aug 26 '21 14:08 Cardistymo

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

Cardistymo avatar Aug 26 '21 14:08 Cardistymo

use BEFORE_VANILLA it says it in the documentation

Ueaj-Kerman avatar Aug 27 '21 14:08 Ueaj-Kerman

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

Cardistymo avatar Aug 27 '21 15:08 Cardistymo

I'll take a look when I get back

Ueaj-Kerman avatar Aug 27 '21 15:08 Ueaj-Kerman

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

Ueaj-Kerman avatar Jul 26 '22 21:07 Ueaj-Kerman