Skip to content

Hud Render

apace100 edited this page Mar 11, 2021 · 4 revisions

A data type used in powers which have the possibility for displaying a cooldown / resource bar in the HUD.

Fields:

should_render, boolean, default = true: Whether the bar should actually be visible.

sprite_location, string, default = "origins:textures/gui/resource_bar.png": The path to the file in the resource pack which contains what the bar looks like. See List of resource bar files for a list of files included by default in the mod.

bar_index, int, default = 0: The indexed position of the bar on the sprite to use.

condition, Entity Condition, optional: If set (and should_render is true), the bar will only display when the entity with the power fulfills this condition.

Clone this wiki locally