Infinite Portal Loop

Two glowing vertical energy portals trap an iron-clad test subject in an endless freefall, trailing colorful sparks and teleporting back to the top on impact.

Java EditionHolograms & Display EntitiesEasy24 commandsTested on a real 26.2 & 26.3 server
An armored figure falls endlessly between a floating orange portal and a blue portal on the ground. Download the GIF Video & GIF © www.9minecraft.net

Statues & FiguresTechnologySpaceOrangeBlueWhiteDecorationServer LobbyCinematicBlock displaysArmor standsSounds21+ commands

Inspired by classic momentum puzzles, this command creation suspends two bright energy gateways in mid-air: a blazing orange exit portal near the ceiling and a cool blue entry portal just above the grass.

Between them, an armored test subject drops endlessly through the center column. As it enters the lower blue ring, it immediately teleports back out of the top orange ring with a burst of sparks and a gradient trail of orange-to-blue energy dust.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_ptimer dummy
  2. /team add c9_orange
  3. /team modify c9_orange color gold
  4. /team add c9_blue
  5. /team modify c9_blue color aqua
  6. /summon block_display ~ ~11.2 ~ {Tags:["c9_portal","c9_top_ring"],Glowing:1b,brightness:{sky:15,block:15},block_state:{Name:"minecraft:ochre_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.6f,-0.1f,-1.6f],scale:[3.2f,0.2f,3.2f]}}
  7. /summon block_display ~ ~11.2 ~ {Tags:["c9_portal","c9_top_core"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:orange_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.2f,-0.15f,-1.2f],scale:[2.4f,0.3f,2.4f]}}
  8. /summon block_display ~ ~1.2 ~ {Tags:["c9_portal","c9_bot_ring"],Glowing:1b,brightness:{sky:15,block:15},block_state:{Name:"minecraft:verdant_froglight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.6f,-0.1f,-1.6f],scale:[3.2f,0.2f,3.2f]}}
  9. /summon block_display ~ ~1.2 ~ {Tags:["c9_portal","c9_bot_core"],brightness:{sky:15,block:15},block_state:{Name:"minecraft:light_blue_stained_glass"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.2f,-0.15f,-1.2f],scale:[2.4f,0.3f,2.4f]}}
  10. /summon armor_stand ~ ~10.8 ~ {Tags:["c9_portal","c9_faller"],Invisible:1b,NoGravity:1b,Glowing:1b,equipment:{head:{id:"minecraft:lodestone",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:iron_boots",count:1}}}

2. Loop - one repeating command block each (Always Active) 14 commands

  1. /team join c9_orange @e[tag=c9_top_ring]
  2. /team join c9_blue @e[tag=c9_bot_ring]
  3. /particle dust{color:[1.0,0.55,0.0],scale:1.8} ~ ~11.1 ~ 1.1 0.05 1.1 0 10 force
  4. /particle flame ~ ~11.0 ~ 0.9 0.05 0.9 0.02 3 force
  5. /particle dust{color:[0.0,0.75,1.0],scale:1.8} ~ ~1.3 ~ 1.1 0.05 1.1 0 10 force
  6. /particle soul_fire_flame ~ ~1.4 ~ 0.9 0.05 0.9 0.02 3 force
  7. /particle electric_spark ~ ~6.2 ~ 0.3 4.2 0.3 0.05 4 force
  8. /scoreboard players add @e[tag=c9_faller] c9_ptimer 1
  9. /execute as @e[tag=c9_faller] at @s run tp @s ~ ~-0.38 ~ ~18 ~
  10. /execute as @e[tag=c9_faller] at @s run particle end_rod ~ ~0.9 ~ 0.15 0.3 0.15 0.02 3 force
  11. /execute as @e[tag=c9_faller] at @s run particle dust_color_transition{from_color:[1.0,0.55,0.0],to_color:[0.0,0.75,1.0],scale:1.6} ~ ~0.8 ~ 0.18 0.35 0.18 0 6 force
  12. /execute as @e[tag=c9_faller,scores={c9_ptimer=25..}] at @s run playsound minecraft:entity.enderman.teleport ambient @a ~ ~ ~ 0.4 1.6
  13. /execute as @e[tag=c9_faller,scores={c9_ptimer=25..}] at @s run tp @s ~ ~9.5 ~
  14. /scoreboard players set @e[tag=c9_faller,scores={c9_ptimer=25..}] c9_ptimer 0

How it works

Frames from the test run

Infinite Portal Loop - frame 1Infinite Portal Loop - frame 2Infinite Portal Loop - frame 3

Recorded on our own test server: 50 frames at about 9.8 fps. Our image check saw: An armored figure falls repeatedly between a floating orange portal at the top and a glowing blue portal on the grass below, surrounded by spark particles.

Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.

Build it in your world

  1. Stand at the center of an open area and run the 10 setup commands in chat or in impulse command blocks.
  2. Place a stack of 14 repeating command blocks (or one repeating command block chained into 13 chain command blocks) set to Always Active.
  3. Paste each loop command in order into the command blocks.
  4. If your command blocks are not at the center of the portals, wrap the particle commands with execute positioned at the portal coordinates.
  5. Switch the time to night to make the glowing froglight frames and stained glass cores stand out brightly.

Use it with real players

To let real players fall through the infinite loop instead of the armor stand, position an always-active repeating command block under the blue portal at the center spot and run /execute positioned ~ ~1.2 ~ as @a[distance=..1.8] at @s run tp @s ~ ~10.0 ~. Whenever you drop into the lower blue ring, you will instantly warp up to the top orange ring while keeping your downward momentum.

Remove it again 4 commands

  1. /kill @e[tag=c9_portal]
  2. /scoreboard objectives remove c9_ptimer
  3. /team remove c9_orange
  4. /team remove c9_blue

FAQ

Why does the armor stand use NoGravity and a scoreboard timer instead of normal falling?

Normal gravity accelerates quickly and can cause entities to overshoot thin trigger zones during lag. Stepping the position down every tick with a 25-tick cycle guarantees a smooth loop that never misses the bottom portal.

How do the portals glow in the right colors?

The outer block display rings have the Glowing tag enabled and are placed on scoreboard teams with gold and aqua colors, which outlines the froglight blocks in orange and blue.

Commands used

/execute/particle/playsound/scoreboard/summon/team/tp

Similar creations

Join 9Minecraft News & Guides