the third attack will do extra damage

Started by FroakieGamer12260 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the third attack will do extra damage

I want to do a especial "power" to an weapon. I want to do something like, when the weapon first hit hits an mob, does nothing; when the weapon second hit hits an mob, does nothing; when the weapon third  hit hits an mob, does extra damage, and start the cycle again.

if someone help me how to do that, I'll me grateful ( ̄︶ ̄)↗ .

Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
add a variable for the…
Sun, 02/04/2024 - 17:33

add a variable for the number of times the weapon is swung, when you need to reset the counter, set it to 0, and when you swing, add 1

when the counter = 2 do damage

 

I honestly don't know how though

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i tried to do this, but it…
Sun, 02/04/2024 - 18:48

i tried to do this, but it didnt work