Resistance effect analogue (SOLVED)

Started by CyberGrinder1324 on

Topic category: Help with Minecraft modding (Java Edition)

Active 8 months ago
Joined Mar 2024
Points:
51

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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
Active 17 hours ago
Joined Jan 2020
Points:
999

User statistics:

  • Modifications: 0
  • Forum topics: 29
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 492
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?

Active 8 months ago
Joined Mar 2024
Points:
51

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
@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?

Active 17 hours ago
Joined Jan 2020
Points:
999

User statistics:

  • Modifications: 0
  • Forum topics: 29
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 492
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.

Active 8 months ago
Joined Mar 2024
Points:
51

User statistics:

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

@woodcraft Thanks! I'll use the plugin

Active 2 months ago
Joined May 2024
Points:
86

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
@woodcraft where can i find…
Sun, 07/07/2024 - 07:40

@woodcraft where can i find the 'amount' block?