I am trying to figure out how to make a command that does this:
command /teamone:
trigger:
remove all active potion effects from player
wait 5 ticks
apply potion of strength I to player for 999 days
the line "remove all active potion effects from player" is where I am having issues, I don't know the proper syntax for that. I have tried milk player, other wordings, etc.. I have also tried execute console command /effect clear @p but that didn't work either.
improper indentation I know but it's just an example.
the purpose of this is to choose a team, and each team gives you a separate effect. if I could utilize tags or something to make it easier, that would be helpful.
each team gives: strength I, fire resistance, jump boost 2, water breathing & resistance I, and night vision & speed I.