I have been looking this up and watching videos on it for a week now. Nothing has helped! Please, does anyone know how I can do it?
-
I'm doing a teleport command btw– LegoLunaCommented Sep 18, 2020 at 1:45
-
1What resources did you find before giving up on your search? Sharing your research helps everyone - it shows that you've taken the time to help yourself before posting, and it stops us from reiterating answers that you may have already tried.– One 2 ManyCommented Sep 18, 2020 at 1:57
-
This is typically done with a pressure plate or a repeating command which runs for a particular area and teleports all players in the area. See gaming.stackexchange.com/questions/303331/…. If you can't seem to trigger your command, it may also just be doing nothing. Have you tried just making your command block /say 'Hello World' first?– aphidCommented Sep 18, 2020 at 7:55
-
1Please see What to do before asking a minecraft-commands question?– galacticninjaCommented Sep 18, 2020 at 8:17
-
If you think my answer works for you, you can press the check mark button below the "vote" buttons.– WarpPrimeCommented Sep 22, 2020 at 12:22
1 Answer
There is a simple fix to this:
Have Repeating command block set to Always Active, with this command:
execute @a ~ ~ ~ detect ~ ~-1 ~ stone 0 tag @s add block
Next, have a command chain set to Conditional, Always active with command:
setblock x y z redstone_block
Next, have a command chain set to Conditional, Always active. Its delay in ticks is 2, with this command:
setblock x y z air
One block next to coordinates x y z
, place a command block with command:
tp *@a[tag=block] x' y' z'
You can replace stone
with the block of choice, and x' y' z'
with the coordinates of the location where players are teleported to.
I hope this helps.
-
For modern versions of minecraft, you must use
execute at @a if block ~ ~-1 ~ stone run <INSERT COMMAND HERE>
Commented Sep 18, 2020 at 14:19 -
@David Callanan if I'm doing a teleport command do I put cordinates and an @?– LegoLunaCommented Sep 18, 2020 at 14:22
-
-
@fasterthanlight what kind of redstone/command circuit should I use?– LegoLunaCommented Sep 18, 2020 at 14:30
-
1@fasterthanlight Thanks for pointing that out, I didn't notice Commented Sep 18, 2020 at 17:18