-
Notifications
You must be signed in to change notification settings - Fork 85
Portals
Portals are blocks that have an "exit" location that can be in the same level or another level. This means portals are one way, unless you create two of them.
By default, only a limited set of blocks can be used as portals. These are listed in /help portal
and I will be referring to them as "portal-capable" blocks.
Portals are triggered when you click (break) the block or if you walk through it (assuming it is non-solid).
As a side note, another way to create portals is by using /goto
in message blocks, which is more convenient and practical than portal blocks when creating a hub level
As usual, we'll start with /help portal
.
Pretty self-explanatory. If you want to stop creating a portal, you can use /abort
.
Because portals are one-way only, you must create two portals to create a two-way link.
A word of caution: do not place the exit of a portal in the entrance of another portal! This will create an infinite portal loop that may be impossible to get out of unless you leave the level.
There are a few ways to delete portals.
- Place a regular block inside of it, then remove that block.
- Activate delete mode by using
/delete
. This will allow you to delete blocks such as portals, message blocks, and doors instead of triggering them.
Any building command such as /z air
can also be used to erase portals, assuming the block you are using to erase them is not also a portal-capable block.
Using /portal show
, we can see all the entrances and exits of portals in the level. This is useful because portals can be made of air which normally renders them invisible.
To hide the portals, use /portal show
again.
Although removing a portal block will make it lose its ability to be triggered, the portal's data is not actually erased right away. This is useful because if you accidentally erase a portal, you can use /undo or place another portal-capable block where it was to restore its functionality. The portal data will only be truly erased if the level unloads and there is no longer a portal-capable block at its position.
As mentioned previously, not all blocks can be used as portals.
To change this, we will need to use /blockprops
(or /os blockprops
).
/blockprops level [block] portal
/blockprops global [block] portal
For /os blockprops
, only the level you're in can be changed and the level/global argument is not included.
For example, /os blockprops myportal portal
These commands act as toggles. You can make the block stop working as a portal if you use the command again.
Be aware that this may cause you to permanently lose portal data if you remove the portal property from a block that is currently being used for portals in levels.