I’m not sure what I did wrong here but after I added the cooldown requirements it stopped showing the item in the gui.
'goldhearts':
material: Totem_of_undying
slot: 13
display_name: '&5&lBonus Health'
lore:
- ' '
- '&eLeft click to get 20 golden hearts (10m)'
view_requirement:
requirements:
cooldown:
type: string equals
input: '%mcd_isinactive_COOLDOWN-ID%'
output: 'yes'
deny_commands:
- '[message] &cTry again in %mcd_left_formatted_COOLDOWN-ID%, you are on cooldown!'
left_click_commands:
- '[sound] ITEM_TOTEM_USE'
- '[console] effect give %player_name% minecraft:absorption 600 9'
- '[console] mcd add %player_name% COOLDOWN-ID 10'
- '[close]'
