I made a horse race track and at the start everyone gets slowness. At the end when they cross the finish line I want them to lose this effect. How can I achieve this?
3 Answers
The command for getting rid of all effects is /effect *player* clear
, so if you put a pressure plate or something on the finish line connected to a command block, the block command would be effect @p clear
. If however your racers have other effects that you don't want to remove, use effect @p 2 0
, which will remove slowness only.
-
2@alixey999 No problem, if my answer works remember you can accept it by clicking the green tick mark :)– imulsionCommented Feb 18, 2015 at 17:13
-
Instead of a pressure plate, I would just put the clearing command block on a 20Hz clock and use selectors to clear the effect from everyone within a specific area. Commented Feb 19, 2015 at 2:14
-
You can remove slowness from a player using
/effect <player> 2 0
Use /effect player clear This will clear all effects