Data Packs Other

Entity Info Bar

  • 11.2k views 1 today
  • save_alt 1.2k downloads
Compatibility
Minecraft 1.13
Changes include
  • Functions
  • 10
  • 14
  • 9
Amicdict
Lvl 57Grandmaster System
44
So, the original Mob Health Bar datapack has been made by divano242622. I decided to make a better version (NOT FOR COMPETITON AGAINST A DATAPACK CREATOR!) Theres one difference in this "Entity Info Bar" Datapack. Can you tell what it is? The answer is: (As long as its using one mob and customname tag) It's that it will display a mob name if a nearby mob has a name, meaning ITS DATAPACK COMPATIBLE! If you don't want something to display a bar, give it the "no_check" tag.

How This Works If you're interested.
How I got the Armor Points, Damage, And Mob/Name of mob to display on the bossbar, is through execute. I executed at the player as one MOB nearest, then ran bossbar set name. I set the name with the first line of text being Selector @s, Second being the separator, Third being the Damage Count, and the final being Armor Points. I used @s because wildcards(*) don't work with mobs.

EDIT: I changed the way it works. Above was what used to work (except the selectors). Instead I executed as the player then used a selector for finding the nearest entity with AI.

Now as for the rest of the commands, they're pretty easy.

While you're here, I may as well address: Unfortunately, just like mods, some datapacks are non-compatible with others. So check your datapack's compatibility with others first before releasing. This is why I used @s rather than separate mob bars.



Note: If you're ever stuck, do /trigger mb_help to get help.

5 Update Logs

Update #5 : by Amicdict 06/23/2019 2:26:42 pmJune 23, 2019 @ 6:26 pm UTC

Added support for 2 more langauges: Espanol and Chinese.

To change languages, do /trigger mb_change_lang.

If you want to reset the languages every time you reload, open load.mcfunction and uncomment the last line.
LOAD MORE LOGS

More like this

  Have something to say?

anonpmc2254489
09/18/2018 1:57 am
Level 1 : New Miner
[deleted]
1
anonpmc2254489
09/18/2018 1:58 am
Level 1 : New Miner
[deleted]
2
Phnnhp
09/12/2018 9:35 am
Level 39 : Artisan Miner
Nice idea. I forgot that Json text can do that. Can I leak this to my datapack?
1
Amicdict
09/12/2018 6:21 pm
Level 57 : Grandmaster System
I’d rather you recommend this datapack to players, but yeah sure! Just don’t forget to credit me first.
1
Phnnhp
09/14/2018 12:44 pm
Level 39 : Artisan Miner
I need to edit this datapack a little to make it compatible with multiplayer. Btw of course I'll credit you.
1
Amicdict
09/16/2018 10:05 pm
Level 57 : Grandmaster System
Sure! :D
1
Jazztache
09/11/2018 1:46 am
Level 27 : Expert Explorer
Very interesting. I might use this. Is this good for vanilla situations?
1
Amicdict
09/11/2018 2:11 am
Level 57 : Grandmaster System
Yes :D
1
Jazztache
09/14/2018 3:53 am
Level 27 : Expert Explorer
Very good. I am much too busy to use it yet, because I am working on my own projects, but I'll do a casual run with a bunch of dp's (yours included) and i'll tell ya how it goes ;).
1

Welcome