1
Help with redstone
I'm not sure if this is possible or not, but I would like some help.
I'm making a map and there is a puzzle where you need to create a pattern on the floor out of certain blocks. What I would like is when the player places all of the correct blocks in the correct place, a command block will be activated. I would like all of the redstone hidden and not able to be seen.
I don't know how to do this so I would love it if I could get some help. Thanks!
EDIT: I think the way I can do this is using the /execute command. I know that instead of having multiple commands to detect blocks, you can link it together into one command. Can I have detect if a certain blocks are in certain positions using the execute command?
I'm making a map and there is a puzzle where you need to create a pattern on the floor out of certain blocks. What I would like is when the player places all of the correct blocks in the correct place, a command block will be activated. I would like all of the redstone hidden and not able to be seen.
I don't know how to do this so I would love it if I could get some help. Thanks!
EDIT: I think the way I can do this is using the /execute command. I know that instead of having multiple commands to detect blocks, you can link it together into one command. Can I have detect if a certain blocks are in certain positions using the execute command?
Create an account or sign in to comment.
4
1
Yes, it is possible. You can use /testforblok or testforblocks . And you can also create execute from those testings.
https://minecraft.gamepedia.com/Commands/testforblock
https://minecraft.gamepedia.com/Commands/testforblocks
The difference between a testforblock and testforblocks that:
Testforblock testing one position
Testforblocks testing region matching
I hope I can help you
https://minecraft.gamepedia.com/Commands/testforblock
https://minecraft.gamepedia.com/Commands/testforblocks
The difference between a testforblock and testforblocks that:
Testforblock testing one position
Testforblocks testing region matching
I hope I can help you
1
This would help me but I think those commands are only available in the Bedrock Edition and I'm looking for something in the Java Edition. If there is a way I can do the same thing in Java edition, then that would be perfect. Thanks for trying though.
1
Yes sorry, I didnt see those were deleted from java. But execute opened an another oportunity:
https://minecraft.gamepedia.com/Commands/execute
/execute (if|unless) block <pos> <block> <chained command>
executes a command if (or unless)<pos>
matches<block>
.
/execute (if|unless) blocks <begin> <end> <destination> (all|masked) <chained command>
executes a command if (or unless) the region between<begin>
and<end>
matches<destination>
.
https://minecraft.gamepedia.com/Commands/execute
According to the gamepedia those are java commands.
1
Can I have <destination> be the area inside a square? Also, what's the difference between the "all and masked" options?
What I would like is:
(A is the area inside the square that the player builds the pattern in, B is the square outside the map that is compared to A)
"If A matches B then activate the next command block in the chain"
I don't know if that made sense. If you need me to explain it better, let me know.
What I would like is:
(A is the area inside the square that the player builds the pattern in, B is the square outside the map that is compared to A)
"If A matches B then activate the next command block in the chain"
I don't know if that made sense. If you need me to explain it better, let me know.