Datapack for an SMP
Each player gets a random potion out of a list I make. When a player joins for the first time, they obtain a potion at random from that list. Each time a player kills another, they obtain another random potion from this list.
I have never made a datapack before. How would I go about doing this?