forum Forumsplay_arrow Minecraft fiber_manual_record Help

1

Help with redstone

1 emerald4 replies135 views
created 03/25/2019 5:44 pm by SilverWater123
last reply 03/27/2019 2:56 pm
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 avatar
SilverWater123
Level 7 : Apprentice Explorer
0

comment Login or register to post a reply.

4 replies

03/26/2019 10:04 am
Level 8 : Apprentice Engineer
Gilran
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
03/27/2019 12:16 am
Level 7 : Apprentice Explorer
SilverWater123
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.
03/27/2019 3:00 am
Level 8 : Apprentice Engineer
Gilran
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.
03/27/2019 2:56 pm
Level 7 : Apprentice Explorer
SilverWater123
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

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome