Skip to main content

Radial bar

saturn:radial_bar

Draws ring progress within the given angle range.

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:radial_bar
radiusIntegeryes—Radius in blocks; in a resource bar it is in pixels. Codec range: 1, 512.
thicknessIntegeryes—Ring thickness, in pixels. Codec range: 1, 128.
start_angleNumberno0.0Start angle, in degrees.
end_angleNumberno360.0End angle, in degrees.
fill_color#RRGGBB stringno"#FFFFFF"Fill RGB colour string.

JSON example​

{
"type": "saturn:radial_bar",
"radius": 1,
"thickness": 1
}

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