Skip to content

xw1w1/ShowDamage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Logo

ShowDamage

What does this do?

This is a simple (yet configurable) plugin that allows to see the damage done to any entity. This is how it looks:

Non critical damage dealt by an entity:

non-critical-damage

Critical damage dealt by an entity has an indicator:

critical-damage

Damage dealt to entity plus sweep attack to other entity (can be disabled in config):

sweep-attack

Damage dealt to entity with an explosion by block (or entity):

explosion-attack-gif

The plugin also has a message output if damage was caused by a projectile:

projectile-message

Feature list

  • Highly configurable config
    • Popup lifetime adjustable
    • Projectile Chat messages toggleable
    • Multiple Entity damage stacking toggleable & adjustable
    • Popup visiblity through walls toggleable
    • Hex Color-coded messages adjustable
    • Plugin functionality toggleable
  • Config hot-reloadable
  • Multiple entity damage stacks into one message
  • Chat messages for projectile damage
  • Gradient text for popups

Commands

  • /disablepopup (alias: dpu)

Roadmap (18/05/23)

  • Add Text Displays
  • Add Multi Entity damage
  • Add text visiblity through walls
  • Add more configurability (pop-up lifetime, config use in new features)
  • Animated text displays for MC 1.20 (requires bug fix in the release)
  • Add hearts option
  • Add alternate visible to all option where only PVP is affected and PVE is still visible to other players.
  • Add command to disable pop-ups for the executor only
  • Add an option that switches the received damage in hp to the remaining (Zombie took 6 HP damage / Zombie have 14 HP left) + heart form
  • Add action bar features

Config

# * does not work in legacy mode
messages:
  damage-visible: true                    # Toggles damage popup visiblity.
  damage-projectile-chat-messages: true   # Toggles projectile chat messages being sent to player shooter.
  popup-background-transparency: 64       # Determines the transparency of the popup.*
  
damage:
  legacy-mode: false                      # Toggles whether ArmorStands should be used instead of TextDisplays
  visible-to-all: false                   # Toggles whether other players should see popups generated by players.
  show-through-walls: true                # Toggles whether popups should be visible through blocks and entities.*
  popup-lifetime: 25.0                    # Determines how long a popup should stay alive for. 20 ticks ~> 1 second
  allow-players-to-disable: true          # Toggles whether players can disable the popup, overrides visble-to-all individually
  hide-entity-radius: 32                  # Hides popups to players who are within a (x) radius and have disabled popups for themselves
  
multiple-entity-count:
  enabled: true                           # Toggles whether damage dealt to multiple entities should stacked and displayed in one popup
  distance: 10.0                          # Determines size of radius to consider what damage is related.
  
colors:
  crit-damage:
    first: "BE2510"                       # First HEX color of crit-damage pop-up gradient
    second: "FD7348"                      # Second HEX color of crit-damage pop-up gradient
  crit-sign:
    sign: "x"                             # Special sign showing that the damage was critical: ✧, https://forum.maestrea.com/threads/minecraft-symbols-emoticons-and-characters.11264/
  default-damage:
    first: "F16666"                       # First HEX color of non-crit-damage pop-up gradient
    second: "B79191"                      # Second HEX color of non-crit-damage pop-up gradient
  accent:
    first: "25af46"                       # Main projectile-damage message color. Dark green by default
    second: "c3c3c3"                      # Entity name, damage and HP values color
    third: "2a4858"                       # Color of "i" inside square brackets

Releases

Check releases for the latest jar files, this plugin gets updated often as of 18/05/2023. You can build the jar file if you would like, as releases might not contain the latest fixes and features, however expect them to be more buggy than an official release.

Other

If you notice any bugs or errors in plugin, please file an issue in this repo or contact us via Discord: xw1w1# 0001 & Maik# 0711

All source code is available for free.

About

Source code of ShowDamage plugin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages