Whenever you build a castle or fort to make your lodgings or store your items, you will naturally want to create an entrance that anyone and everyone could be impressed by. You also want it to be the kind of entrance that no mob could use a door to get into, so no damage could be incurred. In this case, we’re going to see how you can build a very specific fully functioning castle gate that can be activated with the push of a button.
First, you will need to build a hole that is 3x6 in dimensions and 5 blocks deep.
Next, fill four rows of sticky pistons with the same amount of regular pistons on top. Then place four blocks of gravel on each set of pistons.
Next place three sets of fences on top of each set of gravel.
Put a Redstone repeater in front of each sticky piston and set each repeater to a one tick delay.
Create a trail of Redstone dust that travels upwards using terracotta blocks to give them distinction. With this trail of Redstone dust, create a platform three blocks down from the top of the gravel blocks you have created. At the foot of the platform, set four more Redstone repeaters to extend the Redstone's activation range.
To the right of the repeaters and a bit more forward and elevated, created a block with a Redstone dust trail that has a Redstone torch on its side and Redstone dust on the top. Build a block on top of this trail so that it floats and make sure that this terracotta block is a different color than the ones you have used up until this point. This is going to be your first button which you will put your first stone button on the front of.
Now comes building the top part. Build for stone blocks on top of the fence. On the leftmost stone block, build three more on top of it, but afterward, destroy the bottom two so the topmost floats. Replace now missing two blocks with two pistons now instead. Continue this process until pistons are now across the stone structure.
Build another differently colored terracotta block on top of a block with a button on it and then proceed to place another stone button on this block. After that, put a Redstone torch on top of this new block and then another block on top of it. Place yet another Redstone torch on that block and then build another platform structure in front of your top switch with a Redstone dust trail following it. Create another platform of blocks on top of the one you just built with yet another Redstone dust trail on top of it. Your gate should now be working.
Despite the complicated design, the way the castle gate works is simple. With the Redstone dust trail on the top, by pressing the topmost button, the pistons on the upper level will activate, pressing your gated fence downwards.
Alternatively, with the help of similar designs below, by pressing the bottom button, you can activate the pistons on the lower level push upwards, opening the gate.
This is among one of the more complicated contraptions to build when it comes to what you can put together in Minecraft. That being said it can be an amazing tool at your disposal once the fruits of your labor have finally paid off.