Fail Totem

Hi guys ,I want do a datapack where the totem has a custom failure percentage and that says the probability in the chat, for example, The USER has used a totem (5/99). Can you help me? 1.20.4

Continue to help post