How to Get Attack Damage of Item Being Used?

Started by Lil Shoosh on Sun, 06/26/2022 - 10:14

Topic category: Troubleshooting, bugs, and solutions

Last seen on 05:12, 21. Jul 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to Get Attack Damage of Item Being Used?
Sun, 06/26/2022 - 10:14

Heyo!

 

Was working on an enchantment that when crouching doubles the damage of the item in hand at the cost of dealing half of the damage to yourself. However, this project hinges on getting the attack damage of a given item. I do not know how to do this. I have used both "get damage/get max possible damage" of item in source entity's hand, yet both refer to durability. Is there a way either that I am missing or through plugins where I could be able to get the attack damage of a given weapon?

 

Thanks!

Last seen on 09:03, 13. Jul 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Hello there, To get the…
Mon, 06/27/2022 - 06:27

Hello there,

To get the attack damage dealt you could double click the word "amount" in the bottom right corner of the "entity attacked" trigger.

https://ibb.co/XZKswYB

Anyway, hope this helps.

Last seen on 05:12, 21. Jul 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Heyo!   Thank you for…
Fri, 07/01/2022 - 06:27

Heyo!

 

Thank you for reaching out to help! However, I have no idea where the "amount" block is located within Mcreator. Could you direct me?

 

Thanks!

Last seen on 05:12, 21. Jul 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
My apologies, I now…
Fri, 07/01/2022 - 06:28

My apologies, I now understand what you meant. Thank you and I will update if this system works!