Minecraft – command to stop fire damage in minecraft

minecraft-java-edition

I made a little dungeon and I wanted to know if there was a command to stop people from burning. I have buttons to tp all players, and some may still be on fire, and I don't want them to be on fire after they're teleported.

Best Answer

Players in creative lose the fire effect immediately after leaving fire. If you toggle the players you teleport into creative immediately, i.e. /gamemode 1 @a, then back to survival (/gamemode 0 @a) then the fire effects will go out.