Keybind Armour Cooldown Problem

Started by GeoMetri on

Topic category: Help with Minecraft modding (Java Edition)

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.

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

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

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

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