Started by
platrbx
on
Topic category: Help with Minecraft modding (Java Edition)
Hello! Im trying to get the damage of an item in your main hand (eg. diamond sword = 7.)
I've tried these solutions but neither of them work:
Get damage of | Item in main hand of | Event target entity | Result: 0 Damage
Get max possible damage of | Item in main hand of | Event target entity | Result Huge number
Im using 2023.1
Yea so I've been making a dash mechanic to my mod that does however much attack damage the item in main hand of the entity (player) is (e.g. Diamond sword = 7), but that requires you to do the procedure condition "entity attacked", but I need player tick update so doesn't work for me. platrbx if you were wondering how this works, basically you make a new procedure, go to the conditions, and select Entity Attacked. then you go down to the "provided dependencies" on the bottom right corner, and the word "amount" should be in that list, double click that and it should show up in your code.
If this helps your problem, great, if not just ask.