Elemental Affinity

Started by Zacyia on Sat, 07/10/2021 - 04:04

Topic category: Help with MCreator software

Last seen on 16:33, 7. Aug 2021
Joined Mar 2016

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Elemental Affinity
Sat, 07/10/2021 - 04:04

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.