Build a realistic swinging rope in Minecraft using 7 linked display segments, inverse kinematics, and a glowing sea lantern weight with command blocks.
SimulationsTechnologyMedievalGoldCyanWhiteLearningMap MakingDecorationBlock displaysArmor standsSmooth animation (interpolation)Riding & passengersSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
Traditional ropes built from fences or chains in Minecraft are completely rigid and static. This command creation constructs a suspended, glowing tether out of seven linked display segments and a heavy sea lantern weight that sways, bends, and ripples smoothly through the air.
By coupling a physics-driven pendulum bob with a chain of directional teleports, each segment dynamically rotates and follows its neighbor. Periodic wind gusts push the lantern back and forth across a stone frame while emitting glowing flame and end rod trails.
/scoreboard objectives add c9_tick dummy/fill ~-5 ~ ~ ~-5 ~11 ~ minecraft:deepslate_brick_wall/fill ~5 ~ ~ ~5 ~11 ~ minecraft:deepslate_brick_wall/fill ~-6 ~12 ~ ~6 ~12 ~ minecraft:polished_deepslate_slab[type=bottom]/summon minecraft:block_display ~ ~11.4 ~ {Tags:["c9_all","c9_anchor"],Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:lodestone"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-0.5f,-0.5f],scale:[1.0f,1.0f,1.0f]}}/summon minecraft:armor_stand ~4.5 ~7.5 ~1.5 {Tags:["c9_all","c9_bob"],Invisible:1b,Small:1b,NoBasePlate:1b,Motion:[-0.55d,0.25d,-0.25d]}/summon minecraft:block_display ~ ~10.5 ~ {Tags:["c9_all","c9_seg","c9_s1"],teleport_duration:2,Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.25f,-0.25f,-0.55f],scale:[0.5f,0.5f,1.1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_seg","c9_s2"],teleport_duration:2,Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.22f,-0.22f,-0.55f],scale:[0.44f,0.44f,1.1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_seg","c9_s3"],teleport_duration:2,Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.25f,-0.25f,-0.55f],scale:[0.5f,0.5f,1.1f]}}]}/summon minecraft:block_display ~ ~7.5 ~ {Tags:["c9_all","c9_seg","c9_s4"],teleport_duration:2,Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.22f,-0.22f,-0.55f],scale:[0.44f,0.44f,1.1f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_seg","c9_s5"],teleport_duration:2,Glowing:1b,glow_color_override:16755200,brightness:{sky:15,block:15},block_state:{Name:"minecraft:gold_block"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.25f,-0.25f,-0.55f],scale:[0.5f,0.5f,1.1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_seg","c9_s6"],teleport_duration:2,Glowing:1b,glow_color_override:16766720,brightness:{sky:15,block:15},block_state:{Name:"minecraft:shroomlight"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.22f,-0.22f,-0.55f],scale:[0.44f,0.44f,1.1f]}}]}/summon minecraft:block_display ~ ~5.5 ~ {Tags:["c9_all","c9_seg","c9_s7"],teleport_duration:2,Glowing:1b,glow_color_override:5636095,brightness:{sky:15,block:15},block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.6f,-0.6f,-0.6f],scale:[1.2f,1.2f,1.2f]}}/execute as @e[tag=c9_seg] run ride @s dismount/scoreboard players add #c9_clock c9_tick 1/execute if score #c9_clock c9_tick matches 45 run data merge entity @e[tag=c9_bob,limit=1] {Motion:[-0.65d,0.35d,-0.25d]}/execute if score #c9_clock c9_tick matches 45 at @e[tag=c9_s7] run particle minecraft:gust_emitter_small ~ ~ ~ 0 0 0 0 1/execute if score #c9_clock c9_tick matches 90.. run scoreboard players set #c9_clock c9_tick 0/execute if score #c9_clock c9_tick matches 1 run data merge entity @e[tag=c9_bob,limit=1] {Motion:[0.65d,0.35d,0.25d]}/execute if score #c9_clock c9_tick matches 1 at @e[tag=c9_s7] run particle minecraft:gust_emitter_small ~ ~ ~ 0 0 0 0 1/execute as @e[tag=c9_bob] at @e[tag=c9_anchor] facing entity @s feet run tp @s ^ ^ ^5.6/execute as @e[tag=c9_s1] at @e[tag=c9_anchor] facing entity @e[tag=c9_s2,limit=1] feet run tp @s ^ ^ ^0.75 ~ ~/execute as @e[tag=c9_s2] at @e[tag=c9_s1] facing entity @e[tag=c9_s3,limit=1] feet run tp @s ^ ^ ^0.85 ~ ~/execute as @e[tag=c9_s3] at @e[tag=c9_s2] facing entity @e[tag=c9_s4,limit=1] feet run tp @s ^ ^ ^0.85 ~ ~/execute as @e[tag=c9_s4] at @e[tag=c9_s3] facing entity @e[tag=c9_s5,limit=1] feet run tp @s ^ ^ ^0.85 ~ ~/execute as @e[tag=c9_s5] at @e[tag=c9_s4] facing entity @e[tag=c9_s6,limit=1] feet run tp @s ^ ^ ^0.85 ~ ~/execute as @e[tag=c9_s6] at @e[tag=c9_s7] facing entity @e[tag=c9_s5,limit=1] feet run tp @s ^ ^ ^0.85 ~ ~/execute as @e[tag=c9_s7] at @e[tag=c9_bob] facing entity @e[tag=c9_s6,limit=1] feet run tp @s ~ ~ ~ ~ ~setup #6 Summons an invisible armor stand tagged <code>c9_bob</code>. Because armor stands experience vanilla gravity and velocity drag, it acts as the physical pendulum weight at the bottom of the rope.setup #7 Summons the upper rope segments as stacked passengers so multiple <code>block_display</code> entities can be created in a single command, with full <code>brightness</code> and <code>teleport_duration:2</code> for smooth 20 TPS interpolation.setup #10 Immediately dismounts all segments so they become independent entities in the world, ready to be positioned and rotated individually by the loop.loop #7 Constrains the falling armor stand bob to a 5.6-block radius sphere around the top anchor using local coordinates (<code>^ ^ ^5.6</code>), converting its downward gravity into a smooth pendulum swing.loop #8 Anchors the top rope segment (<code>c9_s1</code>) 0.75 blocks out from the top lodestone while rotating it to face the second segment (<code>c9_s2</code>), initiating the top-down kinematic chain.loop #13 Pulls the sixth segment (<code>c9_s6</code>) from the bottom sea lantern weight toward the fifth segment, bridging the bottom-up tension with the top-down links so the rope curves naturally as it swings.


Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A glowing segmented golden tether with a sea lantern weight at the end swings sideways from a stone frame at night.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To let a player push or pull the swinging rope directly instead of using the automatic wind timer, remove the first six loop commands and replace them with /execute at @a[distance=..3] as @e[tag=c9_bob,distance=..3] facing entity @p feet run data merge entity @s {Motion:[0.0d,0.3d,0.0d]} or attach the bottom segment c9_s7 directly to a player by changing the final loop command to execute at @p instead of at @e[tag=c9_bob].
/kill @e[tag=c9_all]/scoreboard objectives remove c9_tick/fill ~-6 ~ ~ ~6 ~12 ~ minecraft:airSetting teleport_duration to 2 tells the Minecraft client to smoothly interpolate both the position and rotation of each block display over 2 ticks, eliminating jitter during fast swings.
Summoning multiple block displays using the Passengers tag lets us pack several segments into a single setup command, and running ride dismount separates them so they can move independently.
▶Autonomous Turret Defense ArenaSimulationsHard26 cmds
▶Clockwork Siege DefenseSimulationsHard24 cmds
▶Four-Dimensional Hypercube Tesseract RotationSimulationsExpert24 cmds
▶Holographic DNA Double-Helix SplicerSimulationsHard24 cmds
▶Magnetic Ferrofluid Audio VisualizerSimulationsHard24 cmds