How do i check if the attack is fully charged

Started by notduc on

Topic category: Help with modding (Java Edition)

Last seen on 19:12, 20. Jul 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i check if the attack is fully charged

Im trying to make an enchantment but you can spam-click to get the effect faster.

Last seen on 20:51, 9. Aug 2024
Joined Mar 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could make a variable,…
Sun, 08/04/2024 - 04:46

you could make a variable, that if you start charging it sets to 0 then gets bigger, when the player stops charging check if the variable is the value you need, if not do nothing and when they start charging again it will be 0, if its that value you want it does what you want it to do

 

its just an idea, if it doesnt work idk man