Skip to content
TIGXR Labs
Commands Reference
Commands Reference

Minecraft 26.3, 26.2

Commands Reference

Complete verified reference of /portal commands and bundled DimLib /dims commands in Immersive Portals Continued for Minecraft 26.2 and 26.3.

Every command on this page has been verified directly against the Immersive Portals Continued (26.2 / 26.3) and bundled DimLib 1.2.0 command dispatchers.

Permissions & Targeting Rules

  • Who can run /portal: Operators (Gamemaster permission level 2+) can run all /portal commands. Players in Creative mode can also run most non-global /portal commands when easeCreativePermission is true (default).
  • Operator-only branches: /portal global ..., /portal tp ..., /portal dimension_stack, /portal create_command_stick, /portal add_command_on_teleported (and its edit/remove variants), /portal euler make_portal, /portal euler set_this_side, and all /dims commands always require Gamemaster / Operator permission.
  • How portal-targeted commands work: Commands that modify an existing portal automatically target the non-global portal entity you are looking at (up to 100 blocks away). You can also run any portal-targeted command from a command block or function by executing as the portal entity:
Run a portal-targeted command via /execute
/execute as @e[type=immersive_portals:portal,limit=1,sort=nearest] run portal make_portal_round

Creating Portals

Quick Wall / View Portals

Creates a one-way, one-faced portal directly in front of you facing your direction:

Create a 4x4 portal to absolute coordinates in a dimension
/portal make_portal 4 4 minecraft:overworld 0 80 0
Create a 4x4 portal shifted 20 blocks forward along its normal
/portal make_portal 4 4 minecraft:overworld shift 20

Command-Block & Entity-Based Creation

Spawns a portal at from entity’s position/orientation pointing to to entity’s position and dimension (with optional custom name):

Create a portal between two marker entities
/portal cb_make_portal 3 4 @e[tag=portal_a,limit=1] @e[tag=portal_b,limit=1] my_portal

Diagonal & Euler-Oriented Portals

Create a bi-faced diagonal portal spanning two 3D points along axis x, y, or z
/portal create_diagonal_portal 0 64 0 5 69 5 y
Spawn a portal at origin with Euler pitch/yaw rotation, width, height, scale, and NBT (Op only)
/portal euler make_portal 0 70 0 0 45 4 4 1.0 {}

Non-Euclidean Room & Cube Generators

Generate 5 randomly placed rooms seamlessly stitched together in a loop
/portal create_connected_rooms roomSize 6 4 6 roomNumber 5
Wrap all 6 faces of a cube region so walking off an edge transitions to the adjacent face
/portal create_cube_surface_unwrapping 0 64 0 10 74 10 5

Bi-Way, Bi-Faced & Removing Portals

A newly spawned /portal make_portal entity is one-way and one-faced (only visible from one side, with no return portal). Use these commands while looking at it:

Add the return portal at the destination (enables bindCluster)
/portal complete_bi_way_portal
Add the back face at the origin (enables bindCluster)
/portal complete_bi_faced_portal
Complete all 4 entities of a full two-way, two-sided portal
/portal complete_bi_way_bi_faced_portal
Strip a cluster back down to only the single portal face you are looking at
/portal remove_connected_portals
Delete only the single portal entity you are looking at
/portal delete_portal
Delete the targeted portal AND all connected reverse/flipped entities
/portal eradicate_portal_cluster
Alias that deletes the targeted portal and logs each removed connected entity
/portal eradicate_portal_clutter

Moving, Resizing & Scaling

Position & Destination

Set the destination dimension and coordinates
/portal set_portal_destination minecraft:the_nether 10 70 -20
Set the destination to an entity's current dimension and position
/portal set_portal_destination_to @p
Move the portal origin to new coordinates (even across dimensions)
/portal set_portal_position minecraft:overworld 100 65 100
Move the portal origin to an entity's position
/portal set_portal_position_to @p
Nudge portal origin 0.5 blocks in the direction you are looking (use -0.001 to fix Z-fighting)
/portal move_portal 0.5
Nudge portal destination 0.5 blocks in your viewing direction
/portal move_portal_destination 0.5
Move portal origin along its local offset vector
/portal relatively_move_portal 1 0 0
Move destination along the portal's local width, height, and normal axes
/portal relatively_move_portal_destination 0 1 0

Size & Scale

Set portal width and height (resets custom shape to rectangle)
/portal set_portal_size 6 4
Auto-expand the portal to fit tightly inside surrounding solid blocks
/portal adjust_portal_to_fit_square_frame
Set destination view/teleport scale factor (must be > 0)
/portal set_portal_scale 2.0
Multiply current portal scale by a factor
/portal multiply_portal_scale 2
Divide current portal scale by a factor
/portal divide_portal_scale 2
Scale a group of portals uniformly around an origin point
/portal scale_portals_relative_to_point @e[type=immersive_portals:portal,distance=..10] ~ ~ ~ 0.5

Rotation & Orientation

Each rotation command comes in two forms: arbitrary 3D axis vector (<x> <y> <z> <degrees>) or cardinal axis shortcut (_along x|y|z <degrees>):

Set the portal's teleport/view rotation to 90° around the Y axis
/portal set_portal_rotation_along y 90
Add 15° to the portal's view/teleport rotation around Y
/portal rotate_portal_rotation_along y 15
Tilt the physical portal doorway frame by 45° around X
/portal rotate_portal_body_along x 45
Set rotation around an arbitrary 3D axis vector
/portal set_portal_rotation 0 1 0 180
Orbit and rotate multiple portal entities around a shared pivot point
/portal rotate_portals_around @e[type=immersive_portals:portal,distance=..10] ~ ~ ~ 0 1 0 90
Link two existing portals and automatically align their rotations
/portal adjust_rotation_to_connect @e[tag=p1,limit=1] @e[tag=p2,limit=1]
Reset the targeted portal's physical orientation to identity
/portal reset_portal_orientation

Euler Orientation Helpers

Set this side's orientation using Minecraft pitch/yaw angles
/portal euler set_orientation 0 45
Set origin, Euler rotation, width, height, and NBT on this side (Op only)
/portal euler set_this_side 0 70 0 0 90 4 4 {}
Set destination position and Euler orientation on the far side
/portal euler set_other_side 20 70 0 0 180

Custom Portal Shapes & Mirrors

Convert the targeted portal into a smooth 30-sided oval/circle
/portal make_portal_round
Subtract intersecting block collision shapes from the portal mesh (pass false to keep original bounds)
/portal shape sculpt
Restore the portal to its default rectangular shape
/portal shape reset
Run one mesh simplification step on a sculpted SpecialFlatPortalShape
/portal debug simplify_portal_mesh
Convert a portal linking two symmetric rooms into two mirrors + two invisible portals
/portal turn_info_fake_enterable_mirror

Portal Animations (/portal animation)

Animate portals continuously or build smooth keyframe loops! Supported easing curves (timingFunction) are linear, sine (default), sineFlipped, circle, and easeInOutCubic.

Quick Presets & Playback Controls

Animate the portal opening outward from its center over 20 ticks
/portal animation expand_from_center 20
Spin the portal continuously around its own normal at 1.5°/tick
/portal animation rotate_along_normal 1.5
Orbit the portal infinitely around an entity's position
/portal animation rotate_infinitely @s 0 1 0 1.0
Add a random infinite rotation around your current position
/portal animation rotate_infinitely_random
Rotate selected portals 90° smoothly over 40 ticks
/portal animation rotate_portals @e[type=immersive_portals:portal,distance=..8] ~ ~ ~ 0 1 0 90 40
Rotate multiple portals infinitely around a coordinate
/portal animation rotate_portals_infinitely @e[type=immersive_portals:portal,distance=..8] ~ ~ ~ 0 1 0 1.0
Inspect active animations on the targeted portal
/portal animation view
Pause animations across the portal's cluster
/portal animation pause
Resume paused animations
/portal animation resume
Pause all portal animations in the current dimension
/portal animation all_pause
Remove the most recently added animation driver on this side
/portal animation remove_last
Remove the animation driver at a specific 0-based index
/portal animation remove_at 0
Clear all animations on this side
/portal animation clear
Clear all animations on both sides of the portal
/portal animation clear_both_sides

Keyframe Animation Builder

  1. Look at a portal and run /portal animation build begin (pauses and saves the reference state).
  2. Move, resize, or rotate the portal (with the Portal Wand or commands), then snapshot a phase with /portal animation build append_phase <durationTicks> [timingFunction]. Repeat for as many keyframes as you like.
  3. Finish and start looping with /portal animation build finish [loopCount] (omitting loopCount loops 100000 times).
Start recording a multi-phase keyframe animation
/portal animation build begin
Record the portal's current state as a 40-tick eased phase
/portal animation build append_phase 40 easeInOutCubic
Finish building and start playing the animation
/portal animation build finish
Jump back to a specific recorded phase index while editing
/portal animation build jump_to_phase 0

Portal Properties, NBT, Access & Triggers

Inspecting, Naming & Quick Toggles

Print full NBT, orientation quaternion, and rotation data of the targeted portal
/portal view_portal_data
Assign a custom text component name to the portal
/portal set_portal_custom_name "Hub Portal"
Merge NBT tags onto the targeted portal (alias: /portal set_portal_nbt)
/portal nbt {fuseView:true,unbreakable:true}

Quick boolean toggles (/portal toggle <property>) flip a property on the targeted portal without writing NBT:

  • /portal toggle interactable
  • /portal toggle teleportable
  • /portal toggle teleportChangesScale
  • /portal toggle teleportChangesGravity
  • /portal toggle fuseView
  • /portal toggle visible
  • /portal toggle crossPortalCollisionEnabled
  • /portal toggle doRenderPayer (note the exact upstream spelling doRenderPayer in the command parser)

Commands Executed on Teleportation (Op Only)

Run server commands automatically as any entity that walks through the targeted portal:

Append a command triggered whenever an entity teleports through this portal
/portal add_command_on_teleported /effect give @s minecraft:speed 10 1
Replace the teleport command at 0-based index
/portal set_command_on_teleported_at 0 /say Crossed!
Remove the teleport command at 0-based index
/portal remove_command_on_teleported_at 0
Clear all teleport commands from the targeted portal
/portal clear_commands_on_teleported

Player-Specific Portals & Multi-Destination

Make a portal visible and accessible to only one player, or give different players different destinations through the exact same frame:

Restrict the targeted portal to one player (omit player to allow everyone)
/portal set_portal_specific_accessor @p
Assign player Steve a personal bi-faced, bi-way destination through this portal
/portal multidest Steve minecraft:the_nether 0 70 0 true true
Remove Steve's personal multidest entry from this portal
/portal multidest Steve

Teleportation, Global Portals & Debug Utilities

Cross-Dimension Teleportation

Teleport yourself cleanly to another dimension (or to coordinates / an entity)
/portal tpme minecraft:the_end 0 80 0
Teleport selected entities (Op only)
/portal tp @a minecraft:overworld 0 80 0
Return to your position before your most recent portal teleport
/portal goback

Global Portals, Wrapping & Scaled Boxes

See Dimension Stack & World Wrapping for full explanations of:

  • /portal dimension_stack
  • /portal global connect_floor <from> <to> & /portal global connect_ceil <from> <to>
  • /portal global connection_floor_remove <dim> & /portal global connection_ceil_remove <dim>
  • /portal global create_inward_wrapping <x1> <z1> <x2> <z2> & create_outward_wrapping
  • /portal global view_wrapping_zones, remove_wrapping_zone [id], clear_wrapping_border [id]
  • /portal global view_global_portals, convert_normal_portal_to_global_portal, convert_global_portal_to_normal_portal, delete_global_portal
  • /portal create_small_inward_wrapping <p1> <p2> & create_small_outward_wrapping <p1> <p2>
  • /portal create_scaled_box_view_optimized <p1> <p2> <scale> <targetEntity> & create_scaled_box_view

Diagnostics, Isometric & Fun Utilities (/portal debug)

Enable Reverse-Z Isometric View with a 50-block vertical span
/portal debug isometric_enable 50
Return to standard perspective view
/portal debug isometric_disable
Snap player camera to exact 45° yaw / 30° pitch isometric angle
/portal debug align
Disable client distance fog (disable with nofog_disable)
/portal debug nofog_enable
Launch yourself forward along your look vector (or use accelerate_along <x> <y> <z>)
/portal debug accelerate 50
Report server/client loaded chunks, tickets, entities, and mesh sections
/portal debug report_resource_consumption
List total Immersive Portals loaded chunks per online player
/portal debug report_per_player_chunk_loading
Check server & client chunk status and tickets at a block position
/portal debug report_chunk_at minecraft:overworld 0 64 0
Dump all loaded server and client portals to chat/logs (Admin)
/portal debug list_portals
Give yourself a Command Stick bound to any command (Op only)
/portal create_command_stick /portal goback

Bundled DimLib Commands (/dims)

Immersive Portals Continued bundles DimLib 1.2.0, allowing server operators (Gamemaster permission level 2+) to create, clone, inspect, and remove dimensions dynamically without restarting the server!

Dynamically add a new empty void dimension
/dims add_dimension "custom:void_room" void
Dynamically add a new dimension using the Overworld's type and worldgen
/dims clone_dimension minecraft:overworld "custom:overworld_2"
List all currently loaded dimension IDs
/dims list
Print the serialized LevelStem JSON configuration of a dimension
/dims view_dim_config minecraft:overworld
Dynamically unload/remove a dimension (does not delete saved region files)
/dims remove_dimension custom:void_room

Note that /dims clone_dimension clones the dimension type and chunk generator, not existing blocks or entities. Removing a dimension does not delete its region folder on disk, and if a datapack defines that dimension it will be re-added on next server restart.

Need help or found a bug?

Ask questions on Discord or report bugs and crashes on GitHub.