Escapegoat

Quick rating

Escapegoat

No reviews yet

A mod that adds various escape sequences to SNBT.

API/Library
Mod Loaders
Fabric
Minecraft

Community voices

Reviews

Versions
Loading versions…
Match includes

Click once to include, again to exclude, again to clear

Rating Any
Any 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0
Min
Max
Play Status
Reviews
Time Played
hrs+
Verified developers only
Has developer response
List view
Grid view
Compact view
Sort by
Date
Rating
Helpful
Unhelpful
Edited
Sort ascending
Delete this review?

This removes your review from the project. You can write a new review after.

Review submitted for moderation

Your review has been sent to moderators, who will check that it meets our guidelines before it appears publicly.

No reviews yet. Be the first to review this project!

Get it on

Available Platforms

Compatibility

Supported Environments

Dev Environment
Client Optional
Server Optional

About

Project Details

Type
Mod
License
MIT License
Latest Version
1.0.0
Authors

For authors

Embed Badge

If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.

Custom banner text
ModDex rating badge preview

Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.

Identifiers

Platform IDs

Modrinth ID

Resources

External Links

Source Issues Wiki Discord

About

Description

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

  • /tellraw @a "Mi\necraft"
  • /tellraw @a {text: 'Abracadabra: \u{2728}', bold: true, color: "yellow"}
  • /item modify entity @s weapon {function: 'minecraft:set_writable_book_pages', pages: ['Line 1\nLine 2\nLine 3'], mode: 'replace_all'}

Escape Sequences

All escape sequences start with the \ character.

Simple escape sequences

  • \\: Backslash
  • \': Single quote (context-dependent, see below)
  • \": Double quote (context-dependent, see below)
  • \n: Line feed

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.

  • \uXXXX: A fixed-length four-character hexadecimal UTF-16 character. The same as the one used in languages like JSON and JavaScript.
    Examples:
    • \u004D (M)
    • \u2605 (★)
    • \uD83D\uDE0A (😊)
    • \u{XXXXXX}: A variable-length hexadecimal UTF-32 character. The same as the one used in JavaScript.
      Examples:
      • \u{4D} (M)
      • \u{2605} (★)
      • \u{1F60A} (😊)

Screenshots

Gallery

  • Example
    Example A tellraw command with an escape sequence.

Versions

Files

Relations

Project Relations

More like this

Similar Mods

Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.

On ModDex

Community snapshot

0
Ratings
0
Followers
0
In stacks

By the numbers

Statistics

<1,000
Downloads
Last Updated
CurseForge
Modrinth
Created
Last synced
When ModDex last fetched this project from CurseForge or Modrinth. Every project is re-checked on a schedule, and any project that ships a new file is synced automatically within hours of the release.
New file updates sync automatically
How syncing works