1. Welcome to the official Starbound Mod repository, Guest! Not sure how to install your mods? Check out the installation guide or check out the modding help thread for more guides.
    Outdated Mods have been moved to their own category! If you update your mod please let a moderator know so we can move it back to the active section.
    Dismiss Notice

Shield Bars API 1.0

modding resource for displaying overhead bars

  1. GTG3000
    This mod allows you to display overhead bars with custom colour through entity messages to player.

    • Adding/Changing a bar :
    world.sendEntityMessage( playerId, "setBar", barName, barPercentage, barColour )

    barName is a unique identifier for your bar. Store it to modify and remove the bar.
    barPercentage is a value between 0 and 1.
    barColour is a colour in format of {R, G, B, A}. Values from 0 to 255.

    • Removing a bar :
    world.sendEntityMessage( playerId, "removeBar", barName )

    Using this mod :

    Install this mod alongside yours, add "requires":["shieldBars"] in your .metadata

    OR

    Copy this mod contents into yours, add "includes":["shieldBars"] in your .metadata

    WARNING - changing the overheadBars function in player primary will lead to compatibility issues. Use the messages.
    Mod Pack Permissions:
    You must get the author's consent before including this mod in a compilation.
    Mod Assets Permissions:
    You must get the author's consent before altering/redistributing any assets included in this mod.