How to get the attack damage value of a held weapon via procedure

Started by Zilver on

Topic category: Help with MCreator software

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to get the attack damage value of a held weapon via procedure

The latest section of my project requires me to get the attack damage value of the weapon being held by the player.

 

Under certain circumstances, the weapon used by the player is supposed to multiply its own attack damage by 2, so I plan on doing this by directly getting the attack damage value of the held weapon and applying it to the target. I've figured out how to apply a flat damage amount to the target entity and how to find the item held in the player's main hand, but I am having trouble getting the held weapon's attack damage value. Is there a way to do this?

Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
not right now, I will add…
Wed, 06/17/2020 - 01:32

not right now, I will add this to my plugin.

Joined May 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks for the reply, and…
Wed, 06/17/2020 - 01:40

Thanks for the reply, and happy to see that it will eventually be possible in some form. ^^

Joined Jan 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Theres is a procedure part,…
Sun, 01/31/2021 - 18:41

Theres is a procedure part, that is called "Get max possible damage of..." . If you combine that with "Item in main-hand of: Source entity" you have a way to get the damage of the item held by a player.

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that will not work because …
Sun, 12/18/2022 - 22:01

that will not work because "Get max possible damage of..." is referring to durability not attack damage