HomeJavaModsEscapegoat
Escapegoat

Escapegoat

Escapegoat is a Fabric mod that adds various escape sequences to SNBT strings. This mod was made because of the change made in snapshot 25w02a regarding text components in commands like tellraw, because they now use SNBT instead of JSON. Because of this change, some functionality was lost, such as the ability to escape most characters. This mod is there to fix that by adding the escape functionality to SNBT. See the bug reports MC-279229 and MC-279250 for more information.

Escape sequences work both ways, for input and for output, though note that stringifying data only works with NBT. This is something that is very likely to change in the future to make it independent of NBT, either by Mojang or by me in this mod, so please watch out for that.

Examples

Escape Sequences

All escape sequences start with the \ character.

Simple escape sequences

Other common simple escape sequences are currently not allowed due to Minecraft not rendering them properly.

Escape sequences for surrounders are only allowed when used in a string with that surrounder. This means that ' and " may be escaped depending on which one is used for a string that is surrounded by that character. In other words: '\'' is valid, but '\"' is not, and vice versa, just like how it works in Minecraft already.

Complicated escape sequences

These complicated escape sequences can be used to represent any Unicode character.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more