Skip to main content

Sprite (Badge Type)

The simplest badge: an icon next to the power in the origin selection screen, with no hover text.

Type ID: origins:sprite

note

Badges come from the Origins mod, and core Apoli has nothing like them.

Fields

FieldTypeDefaultDescription
spriteIdentifierrequiredThe full path of the texture to draw, such as my_pack:textures/gui/badge/water.png.
fallbackIdentifier or Array of identifiersoptionalTextures to draw when sprite isn't in any loaded resource pack. The first one that exists is used.

Examples

{
  "type": "apoli:swimming",
  "badges": [
    {
      "type": "origins:sprite",
      "sprite": "my_pack:textures/gui/badge/water.png"
    }
  ]
}

This puts the badge inline on a power.

data/my_pack/badges/aquatic.json
{
  "type": "origins:sprite",
  "sprite": "my_pack:textures/gui/badge/water.png"
}

As a standalone badge in its own file, any power can reference it by ID from its badges array.

Notes

  • With no text, a sprite badge is decoration. Use origins:tooltip whenever the icon needs explaining.
  • sprite is a full texture path, including textures/ and .png. Sprite atlas names don't work.