I am creating a resource pack, and one of the features is to change the texture based on the rename of the barrel on the anvil.
For example, if you name it "oak", its texture will be changed to an oak barrel.
Initially, it was successful, but when I exited and re-entered the save file, its texture reverted to its original state. I then placed a wooden barrel named "oak," and the new barrel was also made of oak. However, after exiting and re-entering, they all reverted to their original textures.
My code is:
matchTiles=barrel_side
method=fixed
tiles=oak_side
name=oak
All the blocks involving names have encountered this kind of failure during reloading.
However, when I switch to using Forge's OptiFine's built-in CTM feature, it can display as an oak barrel immediately after entering the save file. but Fabric-based Continuity will lose its effect after reloading. Is this issue solvable?