Rotating Pathway

Build a self-spinning obstacle bridge over a bubbling lava pit in Minecraft using smooth block displays, particles, and invisible shulker hitboxes.

Java EditionHolograms & Display EntitiesMedium24 commandsTested on a real 26.2 & 26.3 server
A glowing four-way bridge rotates over a lava pit, leaving trails of orange and blue flames. Download the GIF Video & GIF © www.9minecraft.net

Animated BlocksFireNetherGoldOrangeCyanMini-gameAdventure MapMap MakingBlock displaysArmor standsSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands

The Rotating Pathway is an automated parkour obstacle built out of block display entities and invisible shulker hitboxes. A glowing four-way bridge of gold and sea lanterns spins continuously on a central pillar above a sunken magma and lava pit, throwing sparks and flame trails from its tips as it turns.

Because block displays do not have collision on their own, invisible shulkers travel along the spinning arms to create a solid walking surface. In this demo, an automated test runner walks across the bridge while the rotating arms sweep past underneath.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_tick dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:polished_blackstone_bricks
  3. /fill ~-7 ~-1 ~-7 ~7 ~-1 ~7 minecraft:lava
  4. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 minecraft:magma_block
  5. /fill ~-2 ~-1 ~-2 ~2 ~-1 ~2 minecraft:chiseled_polished_blackstone
  6. /setblock ~ ~ ~ minecraft:sea_lantern
  7. /summon minecraft:block_display ~ ~1 ~ {Tags:["c9_obj","c9_hub"],Glowing:1b,glow_color_override:16755200,teleport_duration:1,block_state:{Name:"minecraft:gold_block"},transformation:{translation:[-1.0f,-0.5f,-1.0f],scale:[2.0f,0.6f,2.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon minecraft:block_display ~ ~1 ~ {Tags:["c9_obj","c9_arm1"],Glowing:1b,glow_color_override:5636095,teleport_duration:1,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-7.0f,-0.45f,-0.75f],scale:[14.0f,0.5f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon minecraft:block_display ~ ~1 ~ {Tags:["c9_obj","c9_arm2"],Glowing:1b,glow_color_override:16755200,teleport_duration:1,block_state:{Name:"minecraft:polished_blackstone"},transformation:{translation:[-0.75f,-0.4f,-7.0f],scale:[1.5f,0.45f,14.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}
  10. /summon minecraft:armor_stand ~ ~1.2 ~-8 {Tags:["c9_obj","c9_actor"],NoGravity:1b,ShowArms:1b,CustomName:'{"text":"Bridge Runner","color":"aqua"}',CustomNameVisible:1b,equipment:{head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:iron_chestplate",count:1},legs:{id:"minecraft:iron_leggings",count:1},feet:{id:"minecraft:golden_boots",count:1}}}

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

  1. /scoreboard players add #t c9_tick 1
  2. /execute as @e[tag=c9_hub] at @s run tp @s ~ ~ ~ ~3 ~
  3. /execute as @e[tag=c9_arm1] at @s run tp @s ~ ~ ~ ~3 ~
  4. /execute as @e[tag=c9_arm2] at @s run tp @s ~ ~ ~ ~3 ~
  5. /execute at @e[tag=c9_arm1] positioned ^ ^ ^6.5 run particle minecraft:flame ~ ~0.2 ~ 0.1 0.1 0.1 0.02 3 force
  6. /execute at @e[tag=c9_arm1] positioned ^ ^ ^-6.5 run particle minecraft:flame ~ ~0.2 ~ 0.1 0.1 0.1 0.02 3 force
  7. /execute at @e[tag=c9_arm1] positioned ^6.5 ^ ^ run particle minecraft:soul_fire_flame ~ ~0.2 ~ 0.1 0.1 0.1 0.02 3 force
  8. /execute at @e[tag=c9_arm1] positioned ^-6.5 ^ ^ run particle minecraft:soul_fire_flame ~ ~0.2 ~ 0.1 0.1 0.1 0.02 3 force
  9. /execute at @e[tag=c9_hub] run particle minecraft:dust{color:[1.0,0.8,0.1],scale:1.4} ~ ~0.5 ~ 2.5 0.2 2.5 0 4 force
  10. /particle minecraft:lava ~ ~-0.5 ~ 5 0.2 5 0 2 force
  11. /execute if score #t c9_tick matches ..80 as @e[tag=c9_actor] at @s run tp @s ~ ~ ~0.2
  12. /execute if score #t c9_tick matches 81..160 as @e[tag=c9_actor] at @s run tp @s ~ ~ ~-0.2 180 0
  13. /execute if score #t c9_tick matches 160.. as @e[tag=c9_actor] run tp @s ~ ~1.2 ~-8 0 0
  14. /execute if score #t c9_tick matches 160.. run scoreboard players set #t c9_tick 0

How it works

Frames from the test run

Rotating Pathway - frame 1Rotating Pathway - frame 2Rotating Pathway - frame 3

Recorded on our own test server: 58 frames at about 9.6 fps. Our image check saw: A glowing four-way cross-shaped bridge made of gold, sea lanterns, and dark blocks rotates above a square pit of lava and magma blocks while emitting orange and blue flame trails from its tips and a player walks across it.

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 a flat open area where you want the hazard pit and bridge to appear.
  2. Run each of the 10 setup commands in order to carve out the lava pit, summon the glowing bridge arms, and place the test runner.
  3. Place a stack of 14 repeating command blocks (or 1 repeating command block leading into 13 chain command blocks), all set to Always Active.
  4. Paste one loop command into each command block so the bridge rotates and emits particles every tick.
  5. Watch the glowing cross-bridge spin smoothly over the lava hazard while the runner crosses back and forth.

Use it with real players

To let real players walk on the spinning arms, remove the last four loop commands that move c9_actor and summon invisible minecraft:shulker entities tagged c9_pad with NoAI:1b,Silent:1b,active_effects:[{id:"minecraft:invisibility",duration:-1,show_particles:0b}]. Then teleport each shulker every tick to local caret offsets along c9_arm1 (such as ^ ^ ^2, ^ ^ ^4, and ^ ^ ^6) so solid collision boxes follow the visual beams.

Remove it again 4 commands

  1. /kill @e[tag=c9_obj]
  2. /scoreboard objectives remove c9_tick
  3. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 minecraft:grass_block
  4. /setblock ~ ~ ~ minecraft:air

FAQ

Why does the bridge spin around its center instead of one corner?

Block displays normally scale outward from their northwest bottom corner. By setting the transformation translation to negative half of the scale (-7.0 for a 14-block beam), the entity's center lines up with its position.

How can I change the rotation speed of the pathway?

Edit the yaw value in the three rotation /tp commands in the loop. Changing ~3 ~ to ~6 ~ doubles the speed, while ~-3 ~ reverses the spin direction.

Commands used

/execute/fill/particle/scoreboard/setblock/summon/tp

Similar creations

Join 9Minecraft News & Guides