Skip to main content

Badge JSON Format

A Badge displays an icon and optional tooltip next to a power's name in the Origins GUI.

File Location

Badge JSON files go in data/<namespace>/origins/badge/ within your data pack.

Common Fields

FieldTypeDefaultDescription
typeIdentifierrequiredThe badge type ID

Badge Types

origins:keybind

Shows a keybind hint badge.

FieldTypeDefaultDescription
spriteIdentifierrequiredTexture location of the badge icon
textStringrequiredTranslation key for the badge tooltip

origins:sprite

Shows only an icon badge.

FieldTypeDefaultDescription
spriteIdentifierrequiredTexture location of the badge icon

origins:tooltip

Shows an icon with a tooltip text badge.

FieldTypeDefaultDescription
spriteIdentifierrequiredTexture location of the badge icon
textText ComponentrequiredTooltip text shown on hover

origins:crafting_recipe

Shows a crafting recipe hint badge.

FieldTypeDefaultDescription
spriteIdentifierrequiredTexture location of the badge icon
recipeIdentifierrequiredThe crafting recipe ID to associate

Preset Badges

Origins provides two built-in preset badges. Reference them by ID in a power's badges List:

IDDescription
origins:activeIndicates an "active use" power
origins:toggleIndicates a "toggle" power

Examples

{
"type": "origins:tooltip",
"sprite": "origins:textures/gui/badge/star.png",
"text": "A gold star!"
}
{
"type": "origins:keybind",
"sprite": "origins:textures/gui/badge/active.png",
"text": "origins.gui.badge.active"
}