mojira.dev
MC-267198

Resource pack is failing if there are changes to font.

Resource pack works if there are no changes to font and even loads if there is old "pack_format", but fails to load if there are changes to font. (I'm talking about custom icons that replace text like "\uE001"...). I'm writing the code into "default.json" file that is in: ["resource pack name"/assets/minecraft/font/default.json] and takes png file in: ["resource pack name"/assets/minecraft/textures/font/"other files"]. Here is the code in the default.json file:

 
{
    "providers": [
        {
            "type": "bitmap",
            "file": "minecraft:font/icons/hotbars/thirst_filled.png",
            "ascent": 11,
            "height": 11,
            "chars": [
                "\uE001"
            ]
        }
    ]
}

Comments 3

Look at the client output log for the error.
If it complains about PNG format, it means your texture file is malformatted.

It does work in 1.19.3. But then crashes when it is in 1.20 and above.

Changes have been made to the way resource packs are handled.
Again,look at the log.

You also didn't mention crashing before. If the game crashes, attach the crash report.

MrRedi

(Unassigned)

Unconfirmed

1.20.3

Retrieved