How can you make damage indicators

Started by Grimlock on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How can you make damage indicators

Is it possible to make a damage indicator that pops up near you when you hit a entity, which tells you how much damage you did to that entity. I found a entity called  "text display", but IDK if that actually works at all with what I'm trying to do. Any way to do this?

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You're correct, the way to…
Wed, 09/27/2023 - 15:20

You're correct, the way to do this would probably be to make an overlay with a text-display that runs a procedure that gets the damage dealt. (You might also need to mess around with some global player variables to get this working properly.) Another alternative would be to have a selection of pre-designed overlays based on the amount of damage dealt, which you could then custom-design instead of using the built in fonts and stuff.