Hi, I wanted to do a maze with command blocks instead of pleasure plates (to look better), and when player stand on the wrong block it will teleport him back to starting location (in Minecraft 1.13.2) I tried with
/execute if entity @a positioned ~ ~2 ~ run tp @p -161 58 -137
but it always teleports me to this location where I started anywhere I stand. I know that I can just do everywhere this command
/execute if entity @a[x=1,y=1,z=1,distance=..1] run tp @p -161 58 -137
but it will take so much time to do. Is there a way to instead of @a[x=1,y=1,z=1,distance=..1] use something like ~ ~ ~
Hi, I wanted to do a maze with command blocks instead of pleasure plates (to look better), and when player stand on the wrong block it will teleport him back to starting location (in Minecraft 1.13.2) I tried with
/execute if entity @a positioned ~ ~2 ~ run tp @p -161 58 -137
but it always teleports me to this location where I started anywhere I stand. I know that I can just do everywhere this command
/execute if entity @a[x=1,y=1,z1,distance=..1] run tp @p -161 58 -137
but it will take so much time to do. Is there a way to instead of @a[x=1,y=1,z=1,distance=..1] use something like ~ ~ ~
Does that mean there will be like 100 repeating command blocks under the maze?
If you just want a pressure plate maze without pressure plate, there's always an easier way.
The Meaning of Life, the Universe, and Everything.
Join Date:
2/11/2017
Posts:
662
Member Details
Here is a better solution that saves command blocks, but requires you to change the nbt of the blocks you place:
/execute as @a if block ~ ~-1 ~ your_block{your_tag:1b} run tp @p -161 58 -137
"your_block" is the type of block the pressure plate is.
"your_tag" is a tag specifying whether to have the block act as a pressure plate.
To add the nbt to the block you can either use "/data merge block <x> <y> <z> {your_tag:1b}" or you could place the block with the nbt already in it using the resulting item from this command: "/give @p your_block{your_tag:1b} 1"
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
Am I doing something wrong?
What I do is I gave my self a red concrete with tag wrong (here is a command)
/give @p minecraft:red_concrete{wrong:1b} 1
And placed a repeat command block(and yes it's always active):
/execute as @a if block ~ ~-1 ~ minecraft:red_concrete{wrong:1b} run tp @p -161 58 -137
And for some reason, it isn't working I tried also with {tag:wrong}, {tag:"wrong:1b"},{tag:"wrong"} nothing is working
I don't think normal blocks can store data tags.
What you can do is to put the red concrete 2 block below the player. Then, cover it with normal blocks so that players cannot see the red concrete, and to walk on it.
Then,
/execute as @a at @s if block ~ ~-2 ~ minecraft:red_concrete run tp @s -161 58 -137
The Meaning of Life, the Universe, and Everything.
Join Date:
2/11/2017
Posts:
662
Member Details
Apparently, NBT will only work correctly if the block is a special block such as a furnace, brewing stand, or chest. I would suggest you go with the other solution.
Rollback Post to RevisionRollBack
Remember those versions that minecraft pranked us with? Specifically:
Minecraft 2.0
Minecraft 1.VR-Pre1
Snapshot 15w14a
Minecraft 3D
Those are still downloadable! Watch this video for 2.0:
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
Hi, I wanted to do a maze with command blocks instead of pleasure plates (to look better), and when player stand on the wrong block it will teleport him back to starting location (in Minecraft 1.13.2) I tried with
but it always teleports me to this location where I started anywhere I stand. I know that I can just do everywhere this command
but it will take so much time to do. Is there a way to instead of @a[x=1,y=1,z=1,distance=..1] use something like ~ ~ ~
Does that mean there will be like 100 repeating command blocks under the maze?
If you just want a pressure plate maze without pressure plate, there's always an easier way.
I solved the problem. I don't believe that I was that dumb. I can just simply use the "dx=1,dy=1,dz=1" so the command will look like that:
Here is a better solution that saves command blocks, but requires you to change the nbt of the blocks you place:
/execute as @a if block ~ ~-1 ~ your_block{your_tag:1b} run tp @p -161 58 -137
"your_block" is the type of block the pressure plate is.
"your_tag" is a tag specifying whether to have the block act as a pressure plate.
To add the nbt to the block you can either use "/data merge block <x> <y> <z> {your_tag:1b}" or you could place the block with the nbt already in it using the resulting item from this command: "/give @p your_block{your_tag:1b} 1"
Remember those versions that minecraft pranked us with? Specifically:
Those are still downloadable! Watch this video for 2.0:
https://www.youtube.com/watch?v=PQdu9LKAdIU
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
15w14a is on this link:
http://minecraft.gamepedia.com/15w14a
1.RV-Pre1 is here:
http://minecraft.gamepedia.com/1.RV-Pre1
Minecraft 3D is here:
https://minecraft.gamepedia.com/Java_Edition_3D_Shareware_v1.34
Am I doing something wrong?
What I do is I gave my self a red concrete with tag wrong (here is a command)
And placed a repeat command block(and yes it's always active):
And for some reason, it isn't working I tried also with {tag:wrong}, {tag:"wrong:1b"},{tag:"wrong"} nothing is working
I don't think normal blocks can store data tags.
What you can do is to put the red concrete 2 block below the player. Then, cover it with normal blocks so that players cannot see the red concrete, and to walk on it.
Then,
/execute as @a at @s if block ~ ~-2 ~ minecraft:red_concrete run tp @s -161 58 -137
can do.
Apparently, NBT will only work correctly if the block is a special block such as a furnace, brewing stand, or chest. I would suggest you go with the other solution.
Remember those versions that minecraft pranked us with? Specifically:
Those are still downloadable! Watch this video for 2.0:
https://www.youtube.com/watch?v=PQdu9LKAdIU
To download the other ones you need to make a folder in the versions folder for minecraft and put the client and JSON file for the versions in there. They all need to be named the same aside from file extensions. Once you do that, you will be able to choose that version when making a new profile with the minecraft launcher.
15w14a is on this link:
http://minecraft.gamepedia.com/15w14a
1.RV-Pre1 is here:
http://minecraft.gamepedia.com/1.RV-Pre1
Minecraft 3D is here:
https://minecraft.gamepedia.com/Java_Edition_3D_Shareware_v1.34