Skip to content

Commands Reference

qouteall edited this page Feb 8, 2021 · 46 revisions

A list of all commands of Immersive Portals mod.

Global Portal Commands

The global portal commands require OP permission.

/portal global convert_global_portal_to_normal_portal

Can only be used by a player. Converts the global portal instance that you are pointing to into a normal portal. Requires the player to be near the portal center.

/portal global convert_normal_portal_to_global_portal

Can only be used by a player. Converts the normal portal entity that you are pointing to into a global portal.

/portal global create_inward_wrapping <x1> <z1> <x2> <z2>

Create an inward wrapping zone. The created portals are global portals. The two XZ coordinates define the wrapping area. The generated portals go from y level 0 to y level 256.

/portal global create_outward_wrapping <x1> <z1> <x2> <z2>

Similar to the above but creates an outward wrapping zone.

/portal global remove_wrapping_zone

Remove the global portal wrapping zone that you are in. This does not work for the wrapping zone constituted by normal portals.

/portal global view_wrapping_zones

View the wrapping zones in the current dimension and know their ids.

/portal global remove_wrapping_zone <id>

Remove a global portal wrapping zone by its id.

/portal global connect_floor <dimensionA> <dimensionB>

Creates a portal that connects dimensionA 's floor with dimensionB 's top. It only generates one one-way global portal instance.

/portal global connect_ceil <dimensionA> <dimensionB>

Creates a portal that connects dimensionA 's ceiling with dimensionB 's bottom. It only generates one one-way global portal instance.

/portal global connection_remove_floor <dimension>

Remove the floor connection portal in that dimension. This command only removes one portal instance.

/portal global connection_remove_ceil <dimension>

Remove the floor connection portal in that dimension. This command only removes one portal instance.

Portal Targeted Commands

Not only the ones with OP permission, but any creative mode players can also use the portal targeted commands.

The portal targeted commands all targets to one portal entity. If the command sender is a player, it targets the portal that the player is looking at. If the command sender is a portal entity, the command will target that portal entity.

These commands don't work with global portals.

Change the Portal's Destination

/portal set_portal_destination <dimenision> <x> <y> <z>

Change a portal entity's destination to a specific dimension and a specific position.

/portal set_portal_destination_to <entity>

Set the portal destination to an entity's position.

/portal move_portal_destination <distance>

Move the portal's destination along the direction that you are looking at.

Manage the Portal

/portal set_portal_nbt <nbt>

Set the portal's NBT data. Portal NBT Data Format

/portal view_portal_data

View the portal's NBT data.

/portal delete_portal

Remove the portal.

/portal move_portal <distance>

Move the portal along the direction that you are looking at.

/portal set_portal_position <dimension> <x> <y> <z>

Change the portal's position.

Portal Clutter Management

See

/portal complete_bi_way_portal

Create a new portal entity to make the portal bi-way. Duplicated portals will be removed.

/portal complete_bi_faced_portal

Create a new portal entity to make the portal bi-faced. Duplicated portals will be removed.

/portal complete_bi_way_bi_faced_portal

Create new portal entities to make the portal bi-way and bi-faced. Duplicated portals will be removed.

/portal remove_connected_portals

Remove portal entities to make the portal one-way and one-faced.

/portal eradicate_portal_clutter

Completely remove a bi-way portal (4 portal entities). Equivalent to /portal remove_connected_portals and then /portal delete_portal

Rotation

/portal set_portal_rotation <axisX> <axisY> <axisZ> <angleDegrees>

Set the portal's rotation transformation. The rotation transformation is defined by a rotating axis vector and the angle in degrees. When the axis is pointing on you, a positive angle corresponds to rotating counter-clockwise.

/portal set_portal_rotation_along <axis> <angleDegrees>

Similar to the above but use x, y or z to represent the axis vector

/portal rotate_portal_body <axisX> <axisY> <axisZ> <angleDegrees>

Rotate the portal. This command does not change the portal's rotating transformation.

/portal rotate_portal_body_along <axis> <angleDegrees>

Similar to the above.

/portal rotate_portal_rotation <axisX> <axisY> <axisZ> <angleDegrees>

Change the portal's rotation transformation by applying an additional rotation to the original rotation.

/portal rotate_portal_rotation_along <axis> <angleDegrees>

Similar to the above.

Scale

/portal set_portal_scale <scale>

Set the portal's scale transformation.

Player-specific Property

/portal set_portal_specific_accessor <player>

Make the portal entity only accessible by one player.

/portal set_portal_specific_accessor

Make the portal entity accessible to all players.

/portal multidest <player> <dimension> <x> <y> <z> <isBiFaced> <isBiWay>

This command modifies the portal clutter. It firstly removes the portals that are specific to the player and then adds new portals that specific to the player and point to the specified dimension and position. isBiFaced and isBiWay respectively controls whether the generated portal is bi-faced and bi-way.

/portal multidest <player>

Remove the player-specific portal from the portal clutter.

Other

/portal set_portal_custom_name <name>

Set a portal entity's custom name. The custom name can be used for selecting the portal entity.

/portal make_portal_round

Make the portal entity's shape to be an ellipse. If the portal's width equals height, the shape will be round.

Direct Portal Creation Commands

Can be used by OPs and creative mode players.

/portal make_portal <width> <height> <dim> <toX> <toY> <toZ>

Create a new portal coming off of the side of the block you're pointing at. The specified height is always pointing away from the surface and the width is always the other way, and the portal will point towards you.

/portal make_portal <width> <height> <dim> shift <distance>

Create a portal whiches destination is distance blocks in front of the portal.

/portal create_small_inward_wrapping <x1> <y1> <z1> <x2> <y2> <z2>

Create a small inward wrapping zone. The generated portals are normal portals.

/portal create_small_outward_wrapping <x1> <y1> <z1> <x2> <y2> <z2>

Similar to the above but the wrapping zone is outward.

/portal create_scaled_box_view <x1> <y1> <z1> <x2> <y2> <z2> <scale> <placeTargetEntity> <isBiWay> [teleportChangesScale]

Create a scaled box wrapping zone. <x1> <y1> <z1> <x2> <y2> <z2> defines the inner box area. <placeTargetEntity> defines the outer box position. If isBiWay is true, it will generate the reverse portals for every portal. teleportChangesScale defines the generated portal's teleportChangesScale attribute.

The command sender dimension is the dimension of the view box. For example, if you want to create a box viewing the end island, use /execute in minecraft:the_end run portal create_scaled_box_view -100 0 -100 100 128 100 20 @p true (-100 0 -100 100 128 100 is a box with radius 100 on the end dimension, 20 is the scale, the outer box will be palced on @p 's position)

/portal create_scaled_box_view_optimized <x1> <y1> <z1> <x2> <y2> <z2> <scale> <placeTargetEntity>

Similar to the above but the created scale box has better rendering performance.

The outer portals will have "fuse view" enabled and "rendering mergable" enabled. The inner portals will have "rendering mergable" enabled. The portals will have "teleport changes scale" disabled.

This command requires that the scale box area is either aligned to chunk border (Press F3+G to see the chunk border) or does not have anything around that area (for example, a skyland). Because the merged portal rendering does not handle the front clipping well, if this requirement is not meet, the things outside the box may appear in view.

/portal cb_make_portal <width> <height> <fromEntity> <toEntity>

Create a portal entity that goes from fromEntity to toEntity. The portal's orientation is determined by fromEntity 's orientation.

Miscellaneous Commands

/portal tpme <dimension> <x> <y> <z>

Teleport you across dimensions without any loading screen. Can only be invoked by players.

/portal tp <entity> <dimension> <x> <y> <z>

Teleport entities across dimensions.

/portal goback

Sometimes you went into a one-way portal and want to come back, but you forgot the coordinate where you come in. Use this command to come back.

Deprecated Commands

These commands are deprecated. They will be removed in 1.17.

/portal cb_set_portal_destination <portal> <dimension> <x> <y> <z> /portal cb_complete_bi_way_portal <portal> /portal cb_complete_bi_faced_portal <portal> /portal cb_complete_bi_way_bi_faced_portal <portal> /portal cb_remove_connected_portals <portal> /portal cb_set_portal_specific_accessor <portal> [player]