Spatial Accordion Corridor-Fold Dagger

Slice two cyan and magenta portals across a 15-block bridge, then watch the floor fold like a glowing accordion to pull distant enemies into melee range.

Java EditionWands, Weapons & ToolsExpert24 commandsTested on a real 26.2 & 26.3 server
A glowing prismarine and sea lantern bridge folds like an accordion with cyan and magenta portals. Download the GIF Video & GIF © www.9minecraft.net

Melee WeaponsMysticSpaceCyanPinkPurplePvPAdventure MapBoss FightBlock displaysArmor standsSmooth animation (interpolation)Summoned mobsBlock building (fill/setblock/clone)21+ commands

The Spatial Accordion Corridor-Fold Dagger bends space instead of making you sprint across a room. When the wielder slashes open a cyan portal in front of them and a magenta portal behind a distant husk, the six segments of the dark prismarine and sea lantern bridge tilt upward and compress like a glowing accordion.

Built with interpolated block_display transformation matrices and quaternion rotations, the entire 15-block corridor smoothly pleats into a tight zigzag, dragging the far portal and the enemy straight to the wielder's blade before unfolding back into place.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /scoreboard players set #tick c9_t 0
  3. /fill ~-8 ~-1 ~-2 ~7 ~-1 ~2 minecraft:obsidian
  4. /fill ~-7 ~-1 ~-1 ~6 ~-1 ~1 minecraft:crying_obsidian
  5. /summon minecraft:armor_stand ~-7.2 ~ ~0 {Tags:["c9_all","c9_actor"],NoGravity:1b,ShowArms:1b,Rotation:[-90f,0f],Pose:{RightArm:[-35f,0f,15f],LeftArm:[-20f,-25f,-10f]},equipment:{mainhand:{id:"minecraft:netherite_sword",count:1,components:{"minecraft:enchantment_glint_override":true}},head:{id:"minecraft:netherite_helmet",count:1},chest:{id:"minecraft:netherite_chestplate",count:1},legs:{id:"minecraft:netherite_leggings",count:1},feet:{id:"minecraft:netherite_boots",count:1}}}
  6. /summon minecraft:husk ~5.2 ~ ~0 {Tags:["c9_all","c9_enemy"],NoAI:1b,Silent:1b,Invulnerable:1b,PersistenceRequired:1b,Glowing:1b,Rotation:[90f,0f],equipment:{mainhand:{id:"minecraft:iron_axe",count:1},head:{id:"minecraft:chainmail_helmet",count:1}}}
  7. /summon minecraft:block_display ~-6.0 ~ ~0 {Tags:["c9_all","c9_seg","c9_up","c9_s1"],Glowing:1b,glow_color_override:65535,interpolation_duration:20,teleport_duration:20,block_state:{Name:"minecraft:dark_prismarine"},transformation:{translation:[-1.1f,-0.9f,-1.5f],left_rotation:[0f,0f,0f,1f],scale:[2.2f,0.9f,3f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon minecraft:block_display ~-3.8 ~ ~0 {Tags:["c9_all","c9_seg","c9_dn","c9_s2"],Glowing:1b,glow_color_override:16711935,interpolation_duration:20,teleport_duration:20,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-1.1f,-0.9f,-1.5f],left_rotation:[0f,0f,0f,1f],scale:[2.2f,0.9f,3f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon minecraft:block_display ~-1.6 ~ ~0 {Tags:["c9_all","c9_seg","c9_up","c9_s3"],Glowing:1b,glow_color_override:65535,interpolation_duration:20,teleport_duration:20,block_state:{Name:"minecraft:dark_prismarine"},transformation:{translation:[-1.1f,-0.9f,-1.5f],left_rotation:[0f,0f,0f,1f],scale:[2.2f,0.9f,3f],right_rotation:[0f,0f,0f,1f]}}
  10. /summon minecraft:block_display ~0.6 ~ ~0 {Tags:["c9_all","c9_seg","c9_dn","c9_s4"],Glowing:1b,glow_color_override:16711935,interpolation_duration:20,teleport_duration:20,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-1.1f,-0.9f,-1.5f],left_rotation:[0f,0f,0f,1f],scale:[2.2f,0.9f,3f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /execute unless entity @e[tag=c9_s5] run summon minecraft:block_display ~2.8 ~ ~0 {Tags:["c9_all","c9_seg","c9_up","c9_s5"],Glowing:1b,glow_color_override:65535,interpolation_duration:20,teleport_duration:20,block_state:{Name:"minecraft:dark_prismarine"},transformation:{translation:[-1.1f,-0.9f,-1.5f],left_rotation:[0f,0f,0f,1f],scale:[2.2f,0.9f,3f],right_rotation:[0f,0f,0f,1f]}}
  2. /execute unless entity @e[tag=c9_s6] run summon minecraft:block_display ~5.0 ~ ~0 {Tags:["c9_all","c9_seg","c9_dn","c9_s6"],Glowing:1b,glow_color_override:16711935,interpolation_duration:20,teleport_duration:20,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-1.1f,-0.9f,-1.5f],left_rotation:[0f,0f,0f,1f],scale:[2.2f,0.9f,3f],right_rotation:[0f,0f,0f,1f]}}
  3. /scoreboard players add #tick c9_t 1
  4. /execute if score #tick c9_t matches 110.. run scoreboard players set #tick c9_t 1
  5. /execute if score #tick c9_t matches 5..95 run particle minecraft:dust{color:[0.1,0.95,1.0],scale:1.6} ~-6.4 ~1.6 ~0 0.05 1.2 1.3 0 14 force
  6. /execute if score #tick c9_t matches 10..95 at @e[tag=c9_enemy] run particle minecraft:dust{color:[1.0,0.15,0.85],scale:1.6} ~0.5 ~1.6 ~0 0.05 1.2 1.3 0 14 force
  7. /execute if score #tick c9_t matches 18 as @e[tag=c9_up] run data merge entity @s {start_interpolation:0,interpolation_duration:22,teleport_duration:22,transformation:{translation:[-0.6f,0.1f,-1.5f],left_rotation:[0f,0f,0.4617f,0.887f],scale:[2.4f,0.85f,3f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if score #tick c9_t matches 18 as @e[tag=c9_dn] run data merge entity @s {start_interpolation:0,interpolation_duration:22,teleport_duration:22,transformation:{translation:[-0.6f,0.1f,-1.5f],left_rotation:[0f,0f,-0.4617f,0.887f],scale:[2.4f,0.85f,3f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute if score #tick c9_t matches 19..40 run tp @e[tag=c9_s2] ~-5.2 ~ ~0
  10. /execute if score #tick c9_t matches 19..40 run tp @e[tag=c9_s3] ~-4.3 ~ ~0
  11. /execute if score #tick c9_t matches 19..40 run tp @e[tag=c9_s4] ~-3.4 ~ ~0
  12. /execute if score #tick c9_t matches 19..40 run tp @e[tag=c9_s5] ~-2.5 ~ ~0
  13. /execute if score #tick c9_t matches 19..40 as @e[tag=c9_s6,tag=!c9_enemy] run tp @s ~-1.6 ~ ~0
  14. /execute if score #tick c9_t matches 19..40 as @e[tag=c9_enemy] at @s run tp @s ~-0.38 ~ ~

How it works

Frames from the test run

Spatial Accordion Corridor-Fold Dagger - frame 1Spatial Accordion Corridor-Fold Dagger - frame 2Spatial Accordion Corridor-Fold Dagger - frame 3

Recorded on our own test server: 51 frames at about 8.4 fps. Our image check saw: Six segments of dark prismarine and sea lanterns fold upward like a glowing cyan and magenta accordion over a pit of obsidian and crying obsidian, bringing a husk forward.

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 and run the 10 setup commands in chat to build the obsidian trench, the wielder armor stand, the target husk, and the first four bridge segments.
  2. Place a column or line of 14 repeating command blocks set to Always Active near the center.
  3. Paste one loop command into each repeating command block in order from 1 to 14.
  4. Watch the cyan and magenta portals ignite at tick 5 and the bridge fold upward into a glowing accordion at tick 18, pulling the enemy across the corridor.
  5. To reset or remove the build, turn off the repeating command blocks and run the cleanup commands below.

Use it with real players

To let a real player trigger the spatial fold when swinging a custom dagger, create a minecraft.used:minecraft.netherite_sword scoreboard objective and replace the @e[tag=c9_actor] reference with @a[scores={c9_use=1..}]. Summon the six block_display bridge segments using local coordinates (^ ^ ^2 through ^ ^ ^12) facing the player's look direction, and pull any mob tagged or selected near the far portal toward ^ ^ ^2.5 over 22 ticks.

Remove it again 3 commands

  1. /kill @e[tag=c9_all]
  2. /fill ~-8 ~-1 ~-2 ~7 ~-1 ~2 minecraft:grass_block
  3. /scoreboard objectives remove c9_t

FAQ

Why do the bridge slabs move smoothly instead of snapping instantly?

Each block_display has teleport_duration and interpolation_duration set to 20-22 ticks, so Minecraft smoothly blends both their /tp positions and their quaternion rotation matrices.

Can I change the angle of the accordion pleats?

Yes. Edit the left_rotation quaternion in loop commands 7 and 8. The third and fourth numbers are sin(angle/2) and cos(angle/2) around the Z axis.

Commands used

/data/execute/fill/particle/scoreboard/summon/tp

Similar creations

Join 9Minecraft News & Guides