1

Portcullis gate circuit help needed.

Ravenrose's Avatar Ravenrose8/5/15 6:41 am
1 emeralds 130 1
8/5/2015 3:47 pm
Jmal116's Avatar Jmal116
I am working on a castle and been using the

/fill xyz x2y2z2 old_oak_fence 0 replace air

or the reversal to give me a portcullis raising and lowering effect.

Now I'd like to advance it to open an close off of the same button.

Open Gate
|
|
?-----------------Button
|
|
Close gate

At '?' I wanted to put in a logic gate, preferably a command_block but would try a redstone gate. ideally at '?' if the gate is closed it would send power up, and if it detects that it's closed it would send power down.

Could I use /test for in this simple circuit? Or do you have a better suggestion?
Posted by Ravenrose's Avatar
Ravenrose
Level 2 : Apprentice Miner
2

Create an account or sign in to comment.

1

1
08/05/2015 3:47 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
You could use a /testforblock on one of the blocks inside the gate to see if there is a fence or air there. That should essentially toggle to circuit each time you press the button. You could also put a T flip flop there, which may end up being slightly more reliable if the button is pressed quickly.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome