Skip to main content

Badge

A badge is reserved metadata that describes how a badge is displayed. Badges are a writable datapack registry, but they are not shown automatically in selection screens or the compendium.

File Location

Badge files go in data/<namespace>/mxt/badge/ within your datapack.

The filename corresponds to its ID. For example, data/example/mxt/badge/info.json has the ID example:info.

Fields

Badge definitions use built-in type dispatch:

typeFieldsDefaultDescription
mxt:emptynone-Empty placeholder badge.
mxt:spritespriterequiredShows a texture only.
mxt:tooltipsprite, texttext is an empty textA texture with a hover tooltip.
mxt:keybindsprite, text, keytext="", key="key.mxt.primary_active"Records a client key mapping.
mxt:crafting_recipesprite, recipe, from_power, prefix, suffixfrom_power=falseReserved recipe hint metadata.
Work In Progress

Badge is currently a reserved writable datapack registry. It is not displayed automatically in the selection screen or the compendium.

Example

{
"type": "mxt:tooltip",
"sprite": "mxt:textures/gui/badge/info.png",
"text": "badge.example.info"
}