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.
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.
/scoreboard objectives add c9_t dummy/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"}}}/scoreboard players set @e[tag=c9_actor] c9_t 0/summon minecraft:marker ~-1 ~1.5 ~-1 {Tags:["c9_pivot"]}/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]}}/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]}}/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]}}/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]}}/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]}}/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]}}/scoreboard players add @e[tag=c9_actor] c9_t 1/scoreboard players set @e[tag=c9_actor,scores={c9_t=140..}] c9_t 0/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/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/execute at @e[tag=c9_pivot] rotated as @e[tag=c9_pivot] run tp @e[tag=c9_part] ~ ~ ~ facing ^ ^ ^1/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]}}/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]}}/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]}}/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]}}/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]}}/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]}}/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/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/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 12setup #2 Summons the armored stand tagged <code>c9_actor</code> with full netherite gear using the <code>equipment</code> component format.setup #8 Creates the iron blade shroud (<code>c9_shroud</code>) with <code>teleport_duration:4</code> and <code>interpolation_duration:8</code> so position and shape changes glide smoothly.loop #5 Locks all six <code>c9_part</code> block displays to the <code>c9_pivot</code> marker every tick using <code>facing ^ ^ ^1</code> so every component swings and aims together as one weapon.loop #9 At tick 46, resets <code>start_interpolation:0</code> and tilts <code>c9_shroud</code> upward by 18 degrees to uncover the copper rotary barrel.loop #11 At tick 96, stretches the glowing <code>c9_lance</code> sea lantern core forward into a 4.2-block spearhead before electric sparks erupt along the tip.


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.
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.
/kill @e[tag=c9_actor]/kill @e[tag=c9_pivot]/kill @e[tag=c9_part]/scoreboard objectives remove c9_tAll 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>.
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.
▶Tesla-Arc Chain-Lightning Conductor WhipMelee WeaponsHard24 cmds
▶Hydraulic Jaw-Crusher Pincer GreatswordMelee WeaponsMedium24 cmds
▶Pocket-Watch Gear-Train Chainsaw GreatswordMelee WeaponsHard24 cmds
▶Scissor-Lift Hydraulic Extendo-Punch GauntletMelee WeaponsMedium19 cmds
▶Spinning Drill Gauntlet Wall BreacherMelee WeaponsEasy24 cmds
▶Steampunk Locomotive Pile-Driver LanceMelee WeaponsHard24 cmds