Minecraft Data Packs / Other

Custom Dynamic Souls-like Boss Bar (utility data pack)

  • check_circle Functions
  • 1,154 views, 4 today
  • 78 downloads, 0 today
  • 10
  • 7
  • 1
hidd3n_'s Avatar hidd3n_
Level 7 : Apprentice System
2
Someone wanted the code I used, so I uploaded it here in case anyone else would need something like this.

This is a simple utility data pack you can use to give your custom bosses (or any entity you wish) a custom boss bar (displayed on your actionbar title) which will dynamically react to damage inflicted to the boss, reducing it in a gradual, animated manner, akin to the behavior of a boss health bar from Dark Souls or Elden Ring.


Use this command to summon a test entity for you to try right away, after installing the data pack:

/summon skeleton ~ ~ ~ {Health:100.0f,Attributes:[{Name:"minecraft:generic.max_health",Base:100.0f}],Tags:["designated_boss"]}


Further guidance & comments present within the main function of the data pack.
CompatibilityMinecraft 1.20
Tags

Create an account or sign in to comment.

juberbosses
05/11/2024 1:33 pm
Level 1 : New Miner
juberbosses's Avatar
I LOVE THIS
THA'S SO GOOD!
thanks for make this
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome