Tutorials/Pig parking lot
This tutorial will show many designs of how to make a pig parking lot. A pig parking lot is basically a structure where you can control whether a pig can get in or out of it.
Method 1 — Pistons
You will need the following materials to make this design:
- A pig
- A saddle
- A carrot on a stick
- Any pickaxe, shovel, or sword
- 4 sticky pistons
- 1 lever
- 4 redstone repeaters
- 6 of any solid block
- 12 redstone
- 4 fences (optional)
- 2 glowstone (optional)
- Step 1
Dig a 2×2 hole in the ground, four blocks deep.
- Step 2
Put sticky pistons on the very bottom, facing upwards.
- Step 3
Put 1 layer of any block on top of the pistons. The picture uses sponges.
- Step 4
Put 2 of any block on one side of the hole.
- Step 5
Put a lever on one (or both) of the blocks, on the side facing towards the hole.
- Step 6
Put 2 redstone behind the 2 blocks.
- Step 7
Dig stairs going down 2 blocks on each side of the redstone, like in the picture. Place redstone on each step.
- Step 8
Turn towards the hole, and dig two more steps down. Again, place redstone on each step.
- Step 9
Dig one block forward, then dig one layer in the direction of the hole. You should see your sticky pistons from the side, like this. Repeat for the other side as well.
- Step 10
Place redstone on the side farther from the pistons. Place redstone repeaters pointing toward the pistons. Once again, do the same thing on the other side.
- Step 11 (optional)
For lighting, you can optionally place glowstone on top of fences like so:
Now, when you flip the lever, the sponge will go up and down. When the lever is down, a pig can get in and out. When the lever is up, pigs cannot escape, so they are safe (unless somebody kills them.)
In the end, it should look something like this:
Note that so far, this design only has one (1) parking spot. Continuously repeat to get a full parking lot.
Method 2 — Fence (Simple)
This method is more simple to build than the previous one. However, it doesn't allow as many options.
- 7 fences
- 1 fence gate
- 1 pressure plate
- A stone pressure plate works better than a wooden one because it cannot be activated by dropped items.
- Glowstone or torches for light (optional)
- 1 chest for storing carrots on sticks (optional)
- Step 1
Place the fences in a 3×3 ring, with the middle section of one side missing.
- Step 2
Place the fence gate where the missing fence would be, matching up with the other fences.
- Step 3
Place the pressure plate outside the stall, directly adjacent to the gate.
- Optional step
Place a chest nearby the stall to store your Carrot on a Stick.
To enter the pen, ride the pig into the stall (the pressure plate will cause the gate to open automatically), dismount, and do whatever you need to do. If you want to leave with the pig, first mount the pig, open the gate, and ride away. The pressure plate this time will cause the gate to close automatically.
Please note that this is only one stall. You will need many of these for a parking lot, though the design does allow space-saving by overlapping the walls. Also note that nighttime isn't a good time to use this method, as a mob can stand on the pressure plate and let the pig out, unless you're on Peaceful and even then a stray sheep, pig, chicken, horse, or any other mob can wander over it.
Method 3: fence vs. nether brick fence
For this design, you will need the following:
- 6 fence
- 6 nether brick fence
- 4 blocks that do not require an attachment block. (optional, but doing this keeps out spiders and endermen)
- Glowstone, torches, redstone lamps, or sea lanterns for lighting (optional)
- Pick the place you want to put the stall. It should be a 2×2 area on the inside (4×4 total).
- Line the edges with fence and nether brick fence so that all the wooden fences are ajacent to two nether brick fences each and all the nether brick fences are adjacent to 2 wooden fences each.
- Place the remaining 4 blocks so that they are above the inside and are 2 blocks above the ground. (optional)
- Light up the place. (optional)
To activate, ride a pig into your new stall.
Why it works
- Alternating fences
Fences do not connect to nether brick fences, but pigs think that you are placing two solid blocks next to each other.
- Preventing spiders
Fences are 1.5 blocks high, so when a spider tries to climb them, they will end up climbing the blocks above your structure.
- Preventing endermen
The blocks leave a 2-block space, but endermen are 3 blocks high.
Method 4: Leads
Since version 1.6, leads have been added. You can set up fences in front of your shops (or wherever else) and tie pigs to fences and leave them there. However, leads break when the chunks unload, so these other methods still have their uses. They also come in very handy if you are unwilling to make leads.