the third attack will do extra damage

Started by FroakieGamer12260 on

Topic category: Help with Minecraft modding (Java Edition)

Active 6 months ago
Joined Aug 2018
Points:
740

User statistics:

  • Modifications: 0
  • Forum topics: 13
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
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 ( ̄︶ ̄)↗ .

Active 10 months ago
Joined Nov 2023
Points:
114

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 16
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

Active 6 months ago
Joined Aug 2018
Points:
740

User statistics:

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

i tried to do this, but it didnt work