-
-
Notifications
You must be signed in to change notification settings - Fork 12
Custom Gates & Gatepacks
A gate format is a collection of blocks that, when built in-game, constitutes a valid portal frame.
You can create as many gate formats as you want; they are to be are stored in .gate
files within your plugins/Stargate/gates/
folder.
.gate
files must be laid out a specific way; the first lines are used for material information and the last lines are used for material layout.
There are four default files in the gates folder; each shows a particular aspect of the gate system, as will be explored below.
This example uses
nether.gate
# Gate Materials
portal-open=NETHER_PORTAL
portal-closed=AIR
X=OBSIDIAN
-=OBSIDIAN
# Gate Layout
XX
X..X
-..-
X*.X
XX
Tip
A list of common traversable materials is maintained here.
The Gate Materials
section accepts any entry from this list, and has four components:
- The
portal-open
material (aka the traversable material). - The
portal-closed
material (aka the iris material). - The
X
material (aka the frame material). - The
-
material (aka the control surface material).
Note that:
The traversable material is shown (placed) whenever the gate is active (on).
The iris material is shown (placed) whenever the gate is inactive (off).
The X
and material constitutes the gate's frame; the structure built by the player.
The -
material is notable for being a control surface -- the location upon which a sign and/or button will be placed.
Note that all portals require a minimum of two control surfaces.
The Gate Layout follows one line of blank space after the Gate Materials.
It represents the pattern that players will need to build to construct this portal.
Each character represents a block:
Note the presence of two types of special blocks: .
and *
.
These blocks are contained within the portal's aperture (i.e. the space in the middle of the frame).
Depending on the portal's state, they will be replaced with either the iris (portal-closed) or traversable (portal-open) material.
A .
is used to represent a normal aperture block; a *
is used to represent the aperture block from which players will be teleported out from when they exit the portal.
As such, per the above, a constructed nether.gate
portal looks like this:
This example uses
water.gate
portal-open=KELP_PLANT
portal-closed=WATER
X=SEA_LANTERN
-=SEA_LANTERN
XX
X..X
-..-
X*.X
XX
By default, portals do not function properly when waterlogged (built underwater)
Whenever the iris material (portal-closed) is WATER
, the gate is treated as an Underwater gate.
Underwater gates are functionally similar to normal gates, but can only be constructed underwater.
Underwater portal activator materials (heretofore buttons) will be replaced with wall coral.
The activator's functionality remains the same insofar as it must be right-clicked to turn the portal on.
This example uses
wool.gate
portal-open=WATER
portal-closed=AIR
X=#WOOL
-=#WOOL
XXXXX
X...X
-...-
X.*.X
XXXXX
Gates are not limited to the shape of a standard nether portal; in fact, they can be tens of thousands of blocks in size.
In this case, a simple 5x5 square has been used as a gate.
In addition to material enumerations (such as OBSIDIAN), SG can also handle tags (such as WOOL).
All tags must be prefaced with a hashtag (#), as in #WOOL
.
Any block that is included within the tag can be used to construct the portal.
For example, see the visualization provided below:
This example uses
end.gate
portal-open=END_GATEWAY
portal-closed=AIR
-=IRON_BLOCK,QUARTZ_PILLAR
S=QUARTZ_STAIRS
H=QUARTZ_SLAB
F=SMOOTH_QUARTZ,#WOOL
HFFH
S..S
-..-
S*.S
HFFH
Gates frames are not limited to the X
character; in fact, any letter can be used to represent any block!
Furthermore, the control surface does not need to be the same as any of the frame materials.
Valid materials and/or tags can be stringed together through the use of commas.
In such cases, any material included within the list (or within a tag included in the list) is considered valid.
For example, see the visualization provided below:
On occasion, a server will publish their gate library for free as a gate-pack.
To install a gate pack, simply download the applicable zip from the list below and extract it into your gates folder.
Warning
The existing gatepack format is informal, poorly defined, and was inherited from legacy.
A complete overhaul is planned in the future, but until then, this feature may not be all that useful.
Name | Publisher | Link |
---|---|---|
SlabSuite | The LockedCraft Legacy Organisation | Link |
Want to submit a gatepack to the community?
Upload your gates to a github repo, link to it on the stargate discord, and ping the core devs!
For additional support, join the Stargate Discord!
Want to contribute to the project? We are always looking for:
Translators, Documenters, and Developers!
Important
This is the rewrite (>1.0.0.0) wiki!
The legacy wiki (>1.0.0.0) is here!