Boss bar renderer
saturn:boss_bar
Uses the boss bar style of the given texture.
Used for ResourceBar.renderer; it displays the resource snapshot and does not modify the resource. Colours are written as #RRGGBB.
JSON fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
type | Resource ID | yes | — | saturn:boss_bar |
sprite_location | Resource ID | no | "saturn:textures/gui/resource_bar.png" | Resource bar texture. |
bar_index | Integer | no | 0 | Index of the resource bar inside the texture. Codec range: 0, 24. |
inverted | Boolean | no | false | Whether to invert the check or the display direction. |
JSON example
{
"type": "saturn:boss_bar"
}
This is a value to embed in the corresponding field, not a standalone loadable data pack file. The example: references in the examples must be replaced with defined entries.
Java entry point
com.iafenvoy.saturn.data.resourcebar.builtin.renderdata.OriginsRenderData. This page is based on the Codec in the current 26.1.2 source.