This mod allows you to display overhead bars with custom colour through entity messages to player.
world.sendEntityMessage( playerId, "setBar", barName, barPercentage, barColour )
- Adding/Changing a bar :
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.
world.sendEntityMessage( playerId, "removeBar", barName )
- Removing a bar :
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.
-
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.Dismiss Notice
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.
Shield Bars API 1.0
modding resource for displaying overhead bars
Tags: