Keybind Armour Cooldown Problem

Started by GeoMetri on

Topic category: Help with modding (Java Edition)

Last seen on 23:13, 25. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Keybind Armour Cooldown Problem
If (armour slot 3 = [helmet name] and not is cooldown for armour slot 3) then
	add potion invisibility 1 200
	cooldown armour slot 3 for 600 ticks
return create text with ("Helmet: " + Get remaining cooldown percentage for armour slot 3 + "%")

The percentage output keeps looping but it functions normally.

Last seen on 11:33, 7. Sep 2024
Joined Apr 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
from what the code does I…
Sun, 07/21/2024 - 21:46

from what the code does I guess that the global trigger is on loaded entity tick update or on player tick update, and since there is only one return block it has to be outside the "do" of the "if", so it returns text every tick

Last seen on 23:13, 25. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It is
Mon, 07/22/2024 - 10:12

It is

Last seen on 23:13, 25. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
All the code works fine with…
Mon, 07/22/2024 - 10:16

All the code works fine with the timing but the return just goes 100%-0% and back to 100% ect

Last seen on 23:13, 25. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If the script only happens…
Mon, 07/22/2024 - 10:20

If the script only happens when X is pressed how would I make a second procedure that would take the cooldown of all armour on a player every tick

Last seen on 23:13, 25. Aug 2024
Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
NVM i found out how
Mon, 07/22/2024 - 10:35

NVM i found out how