Adds damage based procedures.
Current procedures:
- set damage to <number>: only works for the trigger Before Entity is Hurt and is used to change the value of the damage dealt. Since the damage dealt is a float are automatically converted to a float.
Future Additions:
- depends on suggestions and if I can make them work
Current versions supported:
- Forge 1.18.2-1.20.1
Changelog:
1.0: initial release
1.1: added support for forge 1.18.2 and 1.20.1
1.2: changed rounding values to just converting them into a float. Decimals should work fine now
Comments
I found theres only one code representing the procedure. I asked chatgpt and it says let me replace it with if (event instanceof net.neoforged.neoforge.event.entity.living.LivingHurtEvent e) {
e.setAmount((float)${input$amount});
}
I don't know if it works or not im testing it right now.
can you update this to 2025.1 if possible and add a damage procedure if touch water damage entity/target