Recently, many friends who play Minecraft have asked a lot of questions about command codes. Some people asked me what a world clearing effect command is. If you want to learn, let's take a look at the sharing of the Minecraft clearing effect instruction code.
Type /effect clear. The principle is that using /effect to give a status effect with a time of 0 will cancel the specified effect. For example: if you have a weak effect, if you enter /effect @p180, the weak effect will be cleared immediately. This is different from /effect@pclear. The latter is equivalent to milk, which will clear all potion effects, while the former only clears specific potion effects. For example, if you have multiple potion effects, you can use it when you only want to clear one of them.