Skip to content
Goodlyay edited this page Sep 12, 2023 · 5 revisions

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

Creating portals

As usual, we'll start with /help portal.

image

Pretty self-explanatory. If you want to stop creating a portal, you can use /abort.

About two-way portals

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.

Deleting portals

There are a few ways to delete portals.

If the portal is air or liquid:

  • Place a regular block inside of it, then remove that block.

If the portal is solid

  • 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.

Showing and hiding portals

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.

Why is my portal is still appearing in /portal show after I've deleted it?

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.

Changing what blocks can be used as portals

As mentioned previously, not all blocks can be used as portals.

To change this, we will need to use /blockprops (or /os blockprops).

Making a block portal-capable in the level you're in

  • /blockprops level [block] portal

Making a block portal-capable across all levels

  • /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.

Clone this wiki locally