Data Packs Simple

Castle Gate

  • 15.3k views 4 today
  • save_alt 1.6k downloads
Compatibility
Minecraft 1.16
to version
Minecraft 1.17
Changes include
  • Functions
  • Structures
Added CreditThis was made for Busaruba's Medival Time Contest
  • 31
  • 31
  • 27
One_Nose
Lvl 59Grandmaster Dragonborn Hero
89
This data pack was created for PrivateMe's Medieval Time Contest.
This data pack allows you to make easily a working classic medieval castle gate. To create a gate, simply drop a stack of oak fences and a stack of stone bricks on a redstone block. The redstone, fences and stone will disappear and four buttons will appear, one for each direction. Press the button in the desired direction and a huge structure will appear.

Move the lever to open and close the gate. You can decorate the gate with your own design, but make sure you don't block the fences' way with blocks. This may cause many issues while trying to open/close the gate. Also don't put blocks in front to the gate, where there are normally barriers when the gate is closed.

To destroy the gate, break the lever. You will get your redstone, stone bricks and fences back. If you did something I told you not to do and weird things happen, destroying the gate will do.

If there are more than one gate, switching one lever will switch all levers in gates in the same direction.

2 Update Logs

Castle Gate 1.2: Destruction Update : by One_Nose 02/02/2021 5:31:49 amFebruary 2, 2021 @ 10:31 am UTC

  • Fixed a bug where west castle gates didn't work.
  • Added an ability to remove the gate. Thanks Nihilistique for the feedback.
LOAD MORE LOGS

  Have something to say?

Sorro_Playz
11/19/2024 7:11 am
Level 1 : New Crafter
"If there are more than one gate, switching one lever will switch all levers in gates in the same direction."



Is there a way to prevent this at all?



Wanting to use this on a server with a lot of players on building multi castles and gate houses?



Thanks, i know this is a few years later but couldn't see anyone asking :)
2
One_Nose
11/20/2024 12:41 pm
He/Him • Level 59 : Grandmaster Dragonborn Hero
Sorry, but this is one of many bugs this pack has since I made it in a rush and designed it pretty horribly. I just took a look at the code and I can't find an easy way to fix it. Even if I managed to this data pack has many other bugs that make it unfit for that kind of server. This actually isn't a big pack and I would make a revised version that actually works properly, but I currently don't have a lot of time so I can't promise (I made this pack during the time of covid priveleges).
1
DJkell
07/04/2021 11:09 pm
Level 1 : New Miner
no me funciona por alguna razon
sgo todos los pasos y no pasa nada
1
One_Nose
07/05/2021 8:09 am
He/Him • Level 59 : Grandmaster Dragonborn Hero
Escribe "/datapack list" en el chat. ¿Que ves? Si "Castle Gate" no está en la lista, probablemente lo instaló incorrectamente.

(Via Google Translate)
1
KaruMC
02/12/2021 6:03 am
Level 3 : Apprentice Explorer
Been working my ass off following youtube redstone tutorials making portcullises then I found this datapack.
2
Nihilistique
01/31/2021 8:22 pm
Level 2 : Apprentice Explorer
How do you remove them? Nothing I seem to do will remove a gate, short of completely removing the datapack. Trying to remodel an area and need to move a gate but it just persists and keeps reappearing.
2
One_Nose
02/02/2021 5:32 am
He/Him • Level 59 : Grandmaster Dragonborn Hero
Updated. Download the latest version and destroy the lever.
2
One_Nose
02/01/2021 5:47 am
He/Him • Level 59 : Grandmaster Dragonborn Hero
history
I will update it.

TEMPORAL SOLUTION

It's been a while since I made this data pack, but I am pretty sure the whole building is standing on a single invisible armor stand with the tag castle_gate_east, castle_gate_west, castle_gate_north or castle_gate_south. You can use the following command to kill all armor stands of east castle gates (you can change 'east' to something else if it's not east, or just try all directions if you're not sure. It also should autocomplete to the right direction). This will remove all castle gates of that direction in your world. There may be bugs if your gate is open, so make sure to close it first and wait until the fences become solid (not the barriers, the fences themselves). After you killed the armor stand, pull the lever to make sure it is really destroyed. If nothing happens, you can break the gate safely.
/kill @e[tag=castle_gate_east]
2
Nihilistique
02/02/2021 1:32 pm
Level 2 : Apprentice Explorer
That did the trick! Thanks so much for the help.
2
Technopathic759
09/20/2020 5:44 am
Level 39 : Artisan Mage
finally
2

Welcome