1

Command Block Code not working

Slathian 9/1/17 4:04 am
186
9/1/2017 9:07 am
execute @e[tag=Admin] ~ ~ ~ detect ~ ~-1 ~ glass /tp @s -98 134 239

I am tagged as admin, and it is telling me it cannot run 'detect' as me.


Can anyone tell me what I am doing wrong?
Posted by
Slathian
Level 1 : New Miner
0

  Have something to say?

JoinSign in

3

Bertiecrafter
09/01/2017 6:20 am
Level 72 : Legendary System
history
You forgot to add the glass sub-id. Since you don't have multiple types of glass (only stained_glass), you have to use sub-id 0 or -1 (for any).

If you press F3+H and hover over an item, you can find the sub-id behind the slash.

You command should be:
execute @e[tag=Admin] ~ ~ ~ detect ~ ~-1 ~ glass -1 /tp @s -98 134 239

BTW, keep in mind that everything changes around commands in 1.13
2
Slathian
09/01/2017 9:07 am
Level 1 : New Miner
Works! Thank you!
1
ThatTonyboo
09/01/2017 4:30 am
Level 3 : Apprentice Ranger
singleplayer, multiplayer, version etc. add more detail to post
1

Welcome