Minecraft Data Packs / Other

Entity Info Bar

  • check_circle Functions
  • 10,660 views, 1 today
  • 1,278 downloads, 0 today
  • 9
  • 13
  • 9
Amicdict's Avatar Amicdict
Level 57 : Grandmaster Engineer
43
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.
CompatibilityMinecraft 1.13
Tags

5 Update Logs

Update #5 : by Amicdict 06/23/2019 2:26:42 pmJun 23rd, 2019

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

Create an account or sign in to comment.

1
09/18/2018 1:57 am
Level 27 : Expert Professor
SirSTP
SirSTP's Avatar
I tried running this on my realms server while multiple people were online and it didn't quite work the way its suppose to. However in single player or if only one person is on the server this datapack runs perfectly. Any way you can fix it so your datapack can run on the server?
2
09/18/2018 1:58 am
Level 27 : Expert Professor
SirSTP
SirSTP's Avatar
Never mind, just read some of your older post and see you are working on it.
1
09/12/2018 9:35 am
Level 39 : Artisan Miner
Phnnhp
Phnnhp's Avatar
Nice idea. I forgot that Json text can do that. Can I leak this to my datapack?
1
09/12/2018 6:21 pm
Level 57 : Grandmaster Engineer
Amicdict
Amicdict's Avatar
I’d rather you recommend this datapack to players, but yeah sure! Just don’t forget to credit me first.
1
09/14/2018 12:44 pm
Level 39 : Artisan Miner
Phnnhp
Phnnhp's Avatar
I need to edit this datapack a little to make it compatible with multiplayer. Btw of course I'll credit you.
1
09/16/2018 10:05 pm
Level 57 : Grandmaster Engineer
Amicdict
Amicdict's Avatar
Sure! :D
1
09/11/2018 1:46 am
Level 21 : Expert Crafter
JaRetroYT
JaRetroYT's Avatar
Very interesting. I might use this. Is this good for vanilla situations?
1
09/11/2018 2:11 am
Level 57 : Grandmaster Engineer
Amicdict
Amicdict's Avatar
Yes :D
1
09/14/2018 3:53 am
Level 21 : Expert Crafter
JaRetroYT
JaRetroYT's Avatar
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 ;).
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome