In survival mode, this only works if you actually have the block you’re facing. Otherwise, nothing happens. And in creative mode, whether you have the block in your inventory or not, it will always ...
/effect give [Player Name] 1 [seconds] [Effect Level] Provides the Speed effect to the indicated player, according to the chosen duration and level /effect give [Player Name] 2 [seconds] [Effect Level ...