-
Notifications
You must be signed in to change notification settings - Fork 113
Commands Reference
The global portal commands require level 2 permission.
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.
Can only be used by a player. Converts the normal portal entity that you are pointing to into a global portal.
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.
Similar to the above but creates an outward wrapping zone.
Remove the global portal wrapping zone that you are in. This does not work for the wrapping zone constituted by normal portals.
View the wrapping zones in the current dimension and know their ids.
Remove a global portal wrapping zone by its id.
Creates a global portal that connects dimensionA
's floor with dimensionB
's top. It only generates one one-way global portal instance.
Creates a global portal that connects dimensionA
's ceiling with dimensionB
's bottom. It only generates one one-way global portal instance.
Remove the floor connection portal in that dimension. This command only removes one global portal instance.
Remove the ceil connection portal in that dimension. This command only removes one global portal instance.
Not only the ones with level 2 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 a portal entity's destination to a specific dimension and a specific position.
Set the portal destination to an entity's position.
Move the portal's destination along the direction that you are looking at.
Set the portal's NBT data. Portal NBT Data Format
View the portal's NBT data.
Remove the portal.
Move the portal along the direction that you are looking at.
Change the portal's position.
Create a new portal entity to make the portal bi-way. Duplicated portals will be removed.
Create a new portal entity to make the portal bi-faced. Duplicated portals will be removed.
Create new portal entities to make the portal bi-way and bi-faced. Duplicated portals will be removed.
Remove portal entities to make the portal one-way and one-faced.
Completely remove a bi-way portal (4 portal entities). Equivalent to /portal remove_connected_portals
and then /portal delete_portal
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.
Does not rotate the portal itself.
Similar to the above but use x
, y
or z
to represent the axis vector
Rotate the portal. This command does not change the portal's rotating transformation.
Similar to the above.
Change the portal's rotation transformation by applying an additional rotation to the original rotation.
Similar to the above.
Set the portal's scale transformation.
Make the portal entity only accessible by one player.
Make the portal entity accessible to all players.
This command modifies the portal cluster. It firstly removes the portals that are specific to the player
and then adds new portals that are 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.
Remove the player-specific portal from the portal cluster.
Set a portal entity's custom name. The custom name can be used for selecting the portal entity (for example @e[name="xxx"]).
Make the portal entity's shape to be an ellipse. If the portal's width equals height, the shape will be round.
Can be used by level-2 permission ones and creative mode players.
Create a new portal coming off of the side of the block you're pointing at. The portal will face towards you.
Create a portal whiches destination is distance
blocks in front of the portal.
Create a small inward wrapping zone. The generated portals are normal portals. (The global portal commands does not affect them.)
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 placed on @p
's position)
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.
Create a portal entity that goes from fromEntity
to toEntity
. The portal's orientation is determined by fromEntity
's orientation.
Can be used by creative mode players and permission 2 ones.
Teleport you across dimensions without any loading screen. Can only be invoked by players.
Teleport entities across dimensions.
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.
Can be used by creative mode players and permission 2 ones.
Load the chunks near the specific position and display a GUI portal for the player. Used for testing GUI portal functionality.
For example, /portal debug gui_portal minecraft:the_end 0 80 0
Press ESC to quit.
Enable the experimental isometric view for the player. viewHeight
is the corresponding length of the screen height.
For example, /portal debug isometric_enable 100
Isometric view is implemented by replacing the projection matrix with the orthogonal projection matrix. Isometric view equivalents the camera being in an infinitely far place.
Quit the isometric view for the player.
Align the player position by 0.5, set the yaw to be 45 degrees and set the pitch to be 30 degrees. Can be used for taking isometric screenshots.
Creates a command stick . For example /portal debug create_command_stick "/say hi"
This command requires level 2 permission.
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]