Is it possible to write a function that changes damage immunities for certain types of mobs?

Started by DerERESKIGAL on

Topic category: Help with modding (Java Edition)

Last seen on 19:09, 17. Apr 2021
Joined Apr 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to write a function that changes damage immunities for certain types of mobs?

For example, is it possible to write a function where the Instant Damage and Wither effects can be applied to all hostile mobs with 100% potency?