Transforming Mecha Switch-Axe Weapon

A netherite mecha armor stand wields a transforming switch-axe that smoothly unfolds from a giant greatsword into a rotary cannon and crackling energy lance.

Java EditionWands, Weapons & ToolsExpert24 commandsTested on a real 26.2 & 26.3 server
An armored Minecraft warrior wields a transforming mechanical weapon firing flames and slash arcs. Download the GIF Video & GIF © www.9minecraft.net

Melee WeaponsTechnologyIndustrialCyanWhiteBlackPvPCinematicAdventure MapBlock displaysArmor standsSmooth animation (interpolation)Summoned mobsRotation math21+ commands

Watch an armored mecha warrior wield a massive multi-part weapon that cycles through three distinct combat forms on its own. It begins by raising a broad iron greatsword overhead and cleaving downward with bright slash arcs.

Mid-combo, the upper blade shroud hinges open to uncover a copper rotary barrel firing a stream of flames, before a glowing sea lantern core telescopes forward into a crackling energy lance.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /summon minecraft:armor_stand ~-1 ~ ~-1 {Tags:["c9_actor"],Rotation:[-25f,0f],ShowArms:1b,NoBasePlate:1b,NoGravity:1b,Invulnerable:1b,Pose:{RightArm:[-145f,-10f,-10f],LeftArm:[-140f,15f,10f]},equipment:{head:{id:"minecraft:netherite_helmet",components:{"minecraft:enchantment_glint_override":true}},chest:{id:"minecraft:netherite_chestplate"},legs:{id:"minecraft:netherite_leggings"},feet:{id:"minecraft:netherite_boots"}}}
  3. /scoreboard players set @e[tag=c9_actor] c9_t 0
  4. /summon minecraft:marker ~-1 ~1.5 ~-1 {Tags:["c9_pivot"]}
  5. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_part","c9_hilt"],block_state:{Name:"minecraft:netherite_block"},teleport_duration:4,transformation:{translation:[-0.275f,-0.2f,-0.25f],left_rotation:[0f,0f,0f,1f],scale:[0.55f,0.4f,0.9f],right_rotation:[0f,0f,0f,1f]}}
  6. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_part","c9_barrel"],block_state:{Name:"minecraft:copper_block"},teleport_duration:4,transformation:{translation:[-0.13f,-0.13f,0.2f],left_rotation:[0f,0f,0f,1f],scale:[0.26f,0.26f,2.1f],right_rotation:[0f,0f,0f,1f]}}
  7. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_part","c9_reactor"],block_state:{Name:"minecraft:redstone_block"},brightness:{sky:15,block:15},teleport_duration:4,transformation:{translation:[-0.16f,-0.16f,-0.55f],left_rotation:[0f,0f,0f,1f],scale:[0.32f,0.32f,0.35f],right_rotation:[0f,0f,0f,1f]}}
  8. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_part","c9_shroud"],block_state:{Name:"minecraft:iron_block"},teleport_duration:4,interpolation_duration:8,transformation:{translation:[-0.29f,-0.07f,0.5f],left_rotation:[0f,0f,0f,1f],scale:[0.58f,0.14f,3.0f],right_rotation:[0f,0f,0f,1f]}}
  9. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_part","c9_lance"],block_state:{Name:"minecraft:sea_lantern"},Glowing:1b,brightness:{sky:15,block:15},teleport_duration:4,interpolation_duration:8,transformation:{translation:[-0.09f,-0.09f,0.5f],left_rotation:[0f,0f,0f,1f],scale:[0.18f,0.18f,2.2f],right_rotation:[0f,0f,0f,1f]}}
  10. /summon minecraft:block_display ~ ~ ~ {Tags:["c9_part","c9_muzzle"],block_state:{Name:"minecraft:amethyst_block"},brightness:{sky:15,block:15},teleport_duration:4,transformation:{translation:[-0.17f,-0.17f,2.1f],left_rotation:[0f,0f,0f,1f],scale:[0.34f,0.34f,0.22f],right_rotation:[0f,0f,0f,1f]}}

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

  1. /scoreboard players add @e[tag=c9_actor] c9_t 1
  2. /scoreboard players set @e[tag=c9_actor,scores={c9_t=140..}] c9_t 0
  3. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 1..14 at @e[tag=c9_actor] run tp @e[tag=c9_pivot] ^-0.5 ^1.55 ^0.3 -40 -65
  4. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 15..140 at @e[tag=c9_actor] run tp @e[tag=c9_pivot] ^-0.5 ^1.35 ^0.6 -25 -3
  5. /execute at @e[tag=c9_pivot] rotated as @e[tag=c9_pivot] run tp @e[tag=c9_part] ~ ~ ~ facing ^ ^ ^1
  6. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 1 run data merge entity @e[tag=c9_actor,limit=1] {Pose:{RightArm:[-145f,-10f,-10f],LeftArm:[-140f,15f,10f]}}
  7. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 15 run data merge entity @e[tag=c9_actor,limit=1] {Pose:{RightArm:[-70f,-15f,0f],LeftArm:[-75f,25f,0f]}}
  8. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 1 run data merge entity @e[tag=c9_shroud,limit=1] {start_interpolation:0,interpolation_duration:6,transformation:{translation:[-0.29f,-0.07f,0.5f],left_rotation:[0f,0f,0f,1f],scale:[0.58f,0.14f,3.0f],right_rotation:[0f,0f,0f,1f]}}
  9. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 46 run data merge entity @e[tag=c9_shroud,limit=1] {start_interpolation:0,interpolation_duration:8,transformation:{translation:[-0.21f,0.22f,0.15f],left_rotation:[0f,0f,0f,1f],scale:[0.42f,0.24f,1.8f],right_rotation:[-0.1564f,0f,0f,0.9877f]}}
  10. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 1 run data merge entity @e[tag=c9_lance,limit=1] {start_interpolation:0,interpolation_duration:6,transformation:{translation:[-0.09f,-0.09f,0.5f],left_rotation:[0f,0f,0f,1f],scale:[0.18f,0.18f,2.2f],right_rotation:[0f,0f,0f,1f]}}
  11. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 96 run data merge entity @e[tag=c9_lance,limit=1] {start_interpolation:0,interpolation_duration:8,transformation:{translation:[-0.11f,-0.11f,1.1f],left_rotation:[0f,0f,0f,1f],scale:[0.22f,0.22f,4.2f],right_rotation:[0f,0f,0f,1f]}}
  12. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 17..23 at @e[tag=c9_pivot] rotated as @e[tag=c9_pivot] run particle minecraft:sweep_attack ^ ^ ^2.5 0.6 0.3 0.6 0 2
  13. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 56..92 at @e[tag=c9_pivot] rotated as @e[tag=c9_pivot] run particle minecraft:flame ^ ^ ^2.3 0.42 0.05 0.91 0.85 0
  14. /execute if score @e[tag=c9_actor,limit=1] c9_t matches 104..136 at @e[tag=c9_pivot] rotated as @e[tag=c9_pivot] run particle minecraft:electric_spark ^ ^ ^3.8 0.7 0.25 1.3 0.15 12

How it works

Frames from the test run

Transforming Mecha Switch-Axe Weapon - frame 1Transforming Mecha Switch-Axe Weapon - frame 2Transforming Mecha Switch-Axe Weapon - frame 3

Recorded on our own test server: 70 frames at about 9.9 fps. Our image check saw: An armored figure on a grassy plain wields a custom block-display weapon that transforms between an extended glowing sea-lantern blade with sparkles, a greatsword producing white slash arcs, and a hinged cannon shooting a line of flames.

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. Clear a flat area of at least 15x15 blocks with plenty of open headroom above the center.
  2. Stand at the center of your stage and run each of the 10 <strong>setup</strong> commands once in chat (or via impulse command blocks).
  3. Place 14 repeating command blocks set to <strong>Always Active</strong> in a neat row near the edge of the stage.
  4. Paste one <strong>loop</strong> command into each repeating command block using relative coordinates anchored to your stage center.
  5. Watch the 7-second combo loop automatically from greatsword cleave to rotary cannon fire and energy lance discharge.

Use it with real players

To wield the switch-axe yourself, skip summoning c9_actor, tag your player with /tag @s add c9_actor, and delete the two Pose merge commands in the loop. Replace the fixed yaw and pitch in the c9_pivot teleport commands with rotated as @e[tag=c9_actor] and facing ^-0.5 ^1.35 ^1.6 so the weapon follows wherever you look.

Remove it again 4 commands

  1. /kill @e[tag=c9_actor]
  2. /kill @e[tag=c9_pivot]
  3. /kill @e[tag=c9_part]
  4. /scoreboard objectives remove c9_t

FAQ

Why do the weapon parts stay together when swinging?

All six <code>block_display</code> entities are teleported every tick to the single <code>c9_pivot</code> marker with <code>facing ^ ^ ^1</code>, while their local offsets are stored inside each entity's <code>transformation</code>.

Can I change the colors or blocks of the transforming weapon?

Yes. Change the <code>block_state</code> values in the setup commands—for example, swap <code>sea_lantern</code> on <code>c9_lance</code> for <code>shroomlight</code> or <code>ochre_froglight</code> to recolor the energy blade.

Commands used

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

Similar creations

Join 9Minecraft News & Guides