How do i check if the attack is fully charged

Started by notduc on

Topic category: Help with Minecraft modding (Java Edition)

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.

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

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont think that would work…
Mon, 11/04/2024 - 22:42

i dont think that would work at all