how can i add cooldowns

give @a magma_cream[custom_name='["",{"text":"Fire Charge","italic":false,"color":"#ff3300"}]',lore=['["",{"text":"A magic that can deal upto 15","italic":false,"color":"#cc0000"}]','["",{"text":"hearts of damage and sets the ","italic":false,"color":"#cc0000"}]','["",{"text":"enemy on fire for 15 seconds.","italic":false,"color":"#cc0000"}]'],enchantments={levels:{fire_aspect:5,sharpness:60},show_in_tooltip:false},attribute_modifiers={modifiers:[{type:"player.entity_interaction_range",amount:13,slot:mainhand,name:"player.entity_interaction_range",uuid:[I;-124516,30596,222935,-61192],operation:add_value}],show_in_tooltip:false}] i want to give this item a cooldown a 20 second cooldown after every hit
Continue to help post