1

Help with redstone

SilverWater123's Avatar SilverWater1233/25/19 5:44 pm history
1 emeralds 344 4
3/27/2019 2:56 pm
SilverWater123's Avatar SilverWater123
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?
Posted by SilverWater123's Avatar
SilverWater123
Level 11 : Journeyman Explorer
0

Create an account or sign in to comment.

4

1
03/26/2019 10:04 amhistory
Level 24 : Expert Fisherman
Gilran
Gilran's Avatar
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
1
03/27/2019 12:16 am
Level 11 : Journeyman Explorer
SilverWater123
SilverWater123's Avatar
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
03/27/2019 3:00 amhistory
Level 24 : Expert Fisherman
Gilran
Gilran's Avatar
Yes sorry, I didnt see those were deleted from java. But execute opened an another oportunity:

    • /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
03/27/2019 2:56 pmhistory
Level 11 : Journeyman Explorer
SilverWater123
SilverWater123's Avatar
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.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome