Skip to main content

Text-only bar

saturn:text_only

Shows the resource value as formatted text.

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:text_only
formatStringno"%current%"Supports %current% and %maximum% substitution; it does not use printf formatting.
color#RRGGBB stringno"#FFFFFF"RGB colour string.
show_maximumBooleannofalseWhether to show the maximum.

JSON example​

{
"type": "saturn:text_only"
}

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.TextOnlyRenderData. This page is based on the Codec in the current 26.1.2 source.