I'm making a map for Minecraft and I want the player to teleport when standing on orange wool. I used this:
/execute @a ~ ~ ~ detect ~ ~-1 ~ minecraft:wool 1 0 tp @p[c=1] 0 0 0
But I constantly get an error
[16:40:51] Failed to execute 'detect' as F1NN3RT
(F1NN3RT is my in-game name)
What am I doing wrong?