How to Get Attack Damage of Item Being Used?

Started by Lil Shoosh on

Topic category: Troubleshooting, bugs, and solutions

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to Get Attack Damage of Item Being Used?

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!

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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.

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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!

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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!