How to add a condition to a custom bow
So basically I am making a personal weapons datapack and I am trying to make a bow which has a 10% chance to shoot a potion of slowness when hitting the ground or another player, can anyone please help me on how to write the code for it.