Resistance effect analogue (SOLVED)

Started by CyberGrinder1324 on

Topic category: Help with modding (Java Edition)

Last seen on 16:11, 21. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Resistance effect analogue (SOLVED)
Thu, 03/21/2024 - 11:16 (edited)

How to make an analogue of the resistance effect so that you can reduce the damage received as a percentage?

Edited by CyberGrinder1324 on Thu, 03/21/2024 - 11:16
Last seen on 23:48, 26. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry I don't exactly know…
Tue, 03/19/2024 - 12:22

Sorry I don't exactly know what you mean, could you go in to more detail?

Last seen on 16:11, 21. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@woodcraft An effect that…
Tue, 03/19/2024 - 13:29

@woodcraft An effect that works the same as vanilla resistance. Is it possible to do something in procedures that will allow  edit the damage incoming to the player without vanilla resistance?

Last seen on 23:48, 26. Apr 2024
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I can think of 2 ways to…
Tue, 03/19/2024 - 14:03

I can think of 2 ways to change incoming damage.

1: Is to use the global trigger "Before entity is hurt" and then using the provided "amount" dependency and doing said calculation giving back or taking more health etc.

2: Is to use the Attribute plugin and set the armor level of the player to a higher amount which would reduce incoming damage to an extent using the armor calculation.

Last seen on 16:11, 21. Apr 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
@woodcraft Thanks! I'll use…
Thu, 03/21/2024 - 11:10

@woodcraft Thanks! I'll use the plugin