Elemental Affinity

Started by Zacyia on

Topic category: Help with MCreator software

Last seen on 15:00, 9. Feb 2023
Joined Mar 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Elemental Affinity

Looking to give tools/armor/mobs elemental affinities. If I have a water sword and strike a fire mob, I do double damage. If I strike a water mob with a fire sword, I do half of normal damage. Is this possible? if so how would I go about this?

You could make the sword do…
Sat, 07/10/2021 - 09:23

You could make the sword do the lowest damage itself (same as when hitting a mob that is resistant to your kind of sword) and then do the rest of the damage in a procedure that checks for mob types and deals the additional damage.