Skip to main content

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​

FieldTypeRequiredDefaultDescription
typeResource IDyes—saturn:boss_bar
sprite_locationResource IDno"saturn:textures/gui/resource_bar.png"Resource bar texture.
bar_indexIntegerno0Index of the resource bar inside the texture. Codec range: 0, 24.
invertedBooleannofalseWhether 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.