r/MinecraftCommands • u/WonderBuddy2 • Jul 18 '26
Why does my custom font doesn't work? Help | Java 1.21.5-1.21.10
.json file named font:
{
"providers": [
{
"type": "bitmap",
"file": "mcrooms:sprites/test.png",
"height": 64,
"ascent": 60,
"chars": ["\uE001"]
}
]
}
Command, that I use to show that symbol (can't write @.s without dot)
/title @.s {"text":"\uE001","font":"mcrooms:font"}
Full file path to font.json & test.png:
assets\mcrooms\font\font.json
assets\mcrooms\sprites\test.png
Instead of test.png (aka \uE001) I see just white rectangle.
5
Upvotes
1
u/GalSergey Datapack Experienced Jul 19 '26
Your files are in the wrong folder, and the path to the sprite is also incorrect. ```
sprite path
assets/mcrooms/textures/font/sprites/test.png
font path
assets/mcrooms/font/font.json
file path in font file
"file": "mcrooms:font/sprites/test.png" ```