Difference between revisions of "Gates, Making"

From Madminer Municipal Wiki
Jump to: navigation, search
(Created page with "'''Gates''' are fence gates made of arbitrary shapes and sizes that can be toggled on and off. * They can be toggled by right clicking a sign, or; * They can be set with redst...")
 
Line 57: Line 57:
 
</table>
 
</table>
  
== Permissions ==
+
==Troubleshooting==
 +
The gate mechanism can be a little moody sometimes. Here are some solutions to common issues:
 +
* "Failed to finda  gate!" - Try putting the sign in several places. Often times when this happens the gate is very large or it doesn't make any sense that it can't find the gate, but putting the sign elswhere helps. Also, you can hide the sign underground and activate it with a redstone circuit.
 +
* "Not enough blocks to trigger mechanic!" - This either means that you didn't build your gate fully or the gate became incomeplete somehow. Just hold the proper fence pieces in your hand and right click the sign several times to "fill" the sign with enough pieces to complete your gate when it's closed.
  
{| class="wiki-table sortable"
+
[http://wiki.sk89q.com/wiki/CraftBook/Gates Official Docs]
|-
+
[[Category:How_To_Guides]]
! Permission Node
 
! Effect
 
|-
 
| craftbook.mech.gate
 
| Allows the creation of gates.
 
|-
 
| craftbook.mech.dgate
 
| Allows the creation of D-Gates. (Small Gates)
 
|-
 
| craftbook.mech.gate.use
 
| Allows the usage of gates.
 
|-
 
| craftbook.mech.gate.restock
 
| Allows the user to restock gates.
 
|-
 
| craftbook.mech.gate.infinite
 
| Allows the creation of gates with infinite materials.
 
|}
 
 
 
== Configuration ==
 
 
 
{| class="wiki-table sortable"
 
|-
 
! Configuration Node and Path
 
! Default Value
 
! Effect
 
|-
 
| mechanics.gate.enable
 
| false
 
| Enables the gate mechanic.
 
|-
 
| mechanics.gate.allow-redstone
 
| true
 
| Allows the gate mechanic to be toggled via redstone.
 
|-
 
| mechanics.gate.limit-columns
 
| true
 
| Limit the amount of columns a gate can toggle.
 
|-
 
| mechanics.gate.max-columns
 
| 14
 
| If limit-columns is enabled, the maximum number of columns that a gate can toggle.
 
|-
 
| mechanics.gate.blocks
 
| [FENCE, IRON_FENCE, THIN_GLASS, NETHER_FENCE]
 
| The list of blocks that a gate can use.
 
|-
 
| mechanics.gate.enforce-type
 
| true
 
| Make sure gates are only able to toggle a specific material type. This prevents transmutation.
 
|-
 
| mechanics.gate.max-column-height
 
| 12
 
| The max height of a column.
 
|-
 
| mechanics.gate.gate-search-radius
 
| 3
 
| The radius around the sign the gate checks for fences in. Note: This is doubled upwards.
 
|}
 
 
 
[[Category:Mechanisms]]
 

Revision as of 02:00, 19 January 2018

Gates are fence gates made of arbitrary shapes and sizes that can be toggled on and off.

  • They can be toggled by right clicking a sign, or;
  • They can be set with redstone input.

When toggled off, gates leave the top row of fences intact as so it knows where to restore the fence blocks.

Construction

Gate.png

Gates consist of two parts:

  1. Stacked fence blocks make up the gate. To stack fence blocks, place fences on top of each other. Repeat for each row. Make sure the top of the gate is covered.
  2. A nearby wall sign Template:WSign with [Gate] on the second line.
  3. If the player is allowed to, they can put infinite on the last line of the signs to not run out of blocks. (If stop-mechanism-dupe is active.)

If stop-mechanism-dupe is turned on in the configuration, you must create the entire gate or it will not work. You can restock mechanics by right clicking with the required block.

Template:Tutorial video

Redstone support

Gates support redstone: just put a redstone current next to the sign.

  • An active input creates the gate.
  • An inactive input removes the gate.

Because gate signs work with an area effect (looking for fences), they may trigger adjacent gates accidentally. An alternative is to use the [DGate] sign which looks at most one block away and two blocks below for gates to open.

Uses

Gates can be used as:

  • Flood gates to block water or lava.
  • Gates to castles or doors.
  • Trapping unfortunate creatures or players in an area
  • Some other clever use that will blow all of our minds.

Castle gate example

Gates are often used for castles, they have a nice medieval look. Below is an example of a castle gate.

  • Make a hole in the wall that is 1 higher and 2 wider than the resulting walk-through area
  • Fill the highest row with solid blocks (probably stone). This is needed for a gate for function.
  • Fill the space below with fences.
  • Add solid blocks (stone again) in front of the gate, as shown on the image.
  • Add the gate signs to both sides of the gate (left and right) and possibly also on the outside.


Gate example closed.png
Gate example open.png
An example of a gate used in a castle, closed and opened.

Troubleshooting

The gate mechanism can be a little moody sometimes. Here are some solutions to common issues:

  • "Failed to finda gate!" - Try putting the sign in several places. Often times when this happens the gate is very large or it doesn't make any sense that it can't find the gate, but putting the sign elswhere helps. Also, you can hide the sign underground and activate it with a redstone circuit.
  • "Not enough blocks to trigger mechanic!" - This either means that you didn't build your gate fully or the gate became incomeplete somehow. Just hold the proper fence pieces in your hand and right click the sign several times to "fill" the sign with enough pieces to complete your gate when it's closed.

Official Docs