Started by
CyberGrinder1324
on
Topic category: Help with Minecraft modding (Java Edition)
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
Sorry I don't exactly know what you mean, could you go in to more detail?
@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?
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.
@woodcraft Thanks! I'll use the plugin
@woodcraft where can i find the 'amount' block?