-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Health bars #1028
base: master
Are you sure you want to change the base?
Health bars #1028
Conversation
working prototype for the feature
also adds tooltips for options
let it be rendered though walls if the nametag is being rendered
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pretty neat,
would be nice to have an option for the bar to go from green to red like the health text
List<Text> parts = armorStand.getCustomName().getSiblings(); | ||
//loop though name and add every part to a new text skipping over the hidden health values | ||
int healthStartIndex = -1; | ||
System.out.println(healthMatcher.group(0).toString()+"testing"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print testing my beloved
* | ||
* @param armorStand updated armorstand | ||
*/ | ||
public static void HeathBar(ArmorStandEntity armorStand) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase
* | ||
* @param armorStand armorstand to check the name of | ||
*/ | ||
private static void HealthOnlyCheck(ArmorStandEntity armorStand) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
camelCase
add fading between colours and fix problems
adds health bars above mobs
I thought this would be a cool feature hopefully it should work for all mobs have tested most places.
I feel like this might need to be a feature off by default or with different default depending on what people think of this