Skip to content

Commit

Permalink
Added more detailed entity death reasons (such as suffocation).
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Jan 5, 2024
1 parent 15e8cd5 commit f7fea2b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ else if (cause.equals(EntityDamageEvent.DamageCause.MAGIC)) {
else if (cause.equals(EntityDamageEvent.DamageCause.WITHER)) {
e = "#wither_effect";
}
else if (!cause.name().contains("_")) {
e = "#" + cause.name().toLowerCase(Locale.ROOT);
}
}

if (entity instanceof ArmorStand) {
Expand Down

0 comments on commit f7fea2b

Please sign in to comment.