Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/18/20 in all areas

  1. LivingHurtEvent only triggers when a living is being attacked, where you can recalculate the corresponding damage when the attacker is holding your sword. If you want to change sword texture based on the time, check out ItemModelProperties, the provider has world as one of its parameter which you can also apply the game time logic there as well.
    1 point
  2. You can use LivingHurtEvent and check if the attacker (DamageSource#getTrueSource, it can be null) is holding the sword, then modify the damage according to the time (World#getDayTime or something) there. Or you can override Item#getAttributeModifers and apply the calculations there.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.