Build an Ancient Laser Automaton in vanilla Minecraft using block displays and continuous raycast particle beams that track and blast nearby intruders.
Custom MobsTechnologyOceanMysticCyanOrangeGreenBoss FightAdventure MapMap MakingBlock displaysArmor standsRiding & passengersBlock building (fill/setblock/clone)Rotation math21+ commands
The Ancient Laser Automaton brings a towering mechanical guardian into vanilla Minecraft using glowing block display entities and multi-layered particle beams. Standing atop a mossy prismarine temple pedestal, its giant copper and prismarine head rotates smoothly to lock onto any threat moving around the perimeter.
It tracks a circling intruder with a dense crimson targeting laser, charges up its glowing cyan eye with swirling soul fire and electric sparks, and unleashes a massive cyan-and-gold plasma beam that blasts the target in a ring of fire.
/scoreboard objectives add c9_timer dummy/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 dark_prismarine/fill ~-3 ~ ~-3 ~3 ~ ~3 mossy_stone_bricks/fill ~-2 ~1 ~-2 ~2 ~1 ~2 chiseled_stone_bricks/fill ~-3 ~1 ~-3 ~3 ~2 ~3 sea_lantern outline/fill ~-2 ~1 ~-2 ~2 ~2 ~2 air/setblock ~ ~1 ~ lodestone/summon block_display ~ ~4.6 ~ {Tags:["c9_auto","c9_body"],Glowing:1b,glow_color_override:43690,block_state:{Name:"minecraft:oxidized_copper_bulb",Properties:{lit:"true"}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.4f,-3.1f,-1.4f],scale:[2.8f,2.2f,2.8f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_auto"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:waxed_copper_grate"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.8f,-2.7f,-1.8f],scale:[3.6f,1.4f,3.6f]}},{id:"minecraft:block_display",Tags:["c9_auto"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:lightning_rod",Properties:{facing:"up"}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-2.6f,-3.4f,-0.5f],scale:[5.2f,0.9f,1.0f]}},{id:"minecraft:block_display",Tags:["c9_auto"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:lightning_rod",Properties:{facing:"up"}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.5f,-3.4f,-2.6f],scale:[1.0f,0.9f,5.2f]}}]}/summon block_display ~ ~4.6 ~ {Tags:["c9_auto","c9_eye"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.55f,-0.55f,0.35f],scale:[1.1f,1.1f,1.0f]},Passengers:[{id:"minecraft:block_display",Tags:["c9_auto","c9_head"],Glowing:1b,glow_color_override:43690,block_state:{Name:"minecraft:dark_prismarine"},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-1.1f,-0.9f,-1.1f],scale:[2.2f,1.9f,2.2f]}},{id:"minecraft:block_display",Tags:["c9_auto","c9_crest"],Glowing:1b,glow_color_override:16755200,block_state:{Name:"minecraft:cut_copper_stairs",Properties:{facing:"north",half:"bottom"}},transformation:{left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f],translation:[-0.8f,0.9f,-0.8f],scale:[1.6f,0.9f,1.6f]}}]}/summon armor_stand ~ ~1 ~ {Tags:["c9_auto","c9_orbit"],Invisible:1b,NoGravity:1b,Passengers:[{id:"minecraft:husk",Tags:["c9_auto","c9_target"],NoGravity:1b,NoAI:1b,Silent:1b,Glowing:1b,Invulnerable:1b,CustomName:'{"text":"Intruder","color":"red"}',CustomNameVisible:1b,equipment:{mainhand:{id:"minecraft:golden_sword",count:1},head:{id:"minecraft:golden_helmet",count:1},chest:{id:"minecraft:golden_chestplate",count:1},legs:{id:"minecraft:golden_leggings",count:1},feet:{id:"minecraft:golden_boots",count:1}}}]}/scoreboard players add #tick c9_timer 1/execute if score #tick c9_timer matches 60.. run scoreboard players set #tick c9_timer 0/execute as @e[tag=c9_orbit] at @s run tp @s ~ ~ ~ ~3 ~/execute as @e[tag=c9_target] at @e[tag=c9_orbit,limit=1] rotated as @e[tag=c9_orbit,limit=1] run tp @s ^ ^ ^7.5 ~-90 ~/execute as @e[tag=c9_eye] at @s facing entity @e[tag=c9_target,limit=1] eyes run tp @s ~ ~ ~ ~ ~/execute as @e[tag=c9_eye] at @s run tp @n[tag=c9_head] ~ ~ ~ ~ ~/execute as @e[tag=c9_eye] at @s run tp @n[tag=c9_crest] ~ ~ ~ ~ ~/execute at @e[tag=c9_eye] rotated as @e[tag=c9_eye] run particle dust_color_transition{from_color:[1.0,0.0,0.2],to_color:[1.0,0.8,0.0],scale:1.6} ^ ^ ^2 ^ ^ ^5 0 18 force/execute at @e[tag=c9_eye] rotated as @e[tag=c9_eye] run particle dust_color_transition{from_color:[1.0,0.0,0.2],to_color:[1.0,0.8,0.0],scale:1.6} ^ ^ ^4.2 ^ ^ ^7.2 0 18 force/execute if score #tick c9_timer matches 25..44 at @e[tag=c9_eye] rotated as @e[tag=c9_eye] run particle soul_fire_flame ^ ^ ^1.1 0.4 0.4 0.4 0.05 8 force/execute if score #tick c9_timer matches 40..56 at @e[tag=c9_eye] rotated as @e[tag=c9_eye] run particle dust_color_transition{from_color:[0.0,1.0,1.0],to_color:[1.0,1.0,1.0],scale:3.2} ^ ^ ^2.5 ^ ^ ^7.5 0.18 35 force/execute if score #tick c9_timer matches 40..56 at @e[tag=c9_eye] rotated as @e[tag=c9_eye] run particle sonic_boom ^ ^ ^4.5 0 0 0 0 1 force/execute if score #tick c9_timer matches 40..56 at @e[tag=c9_target] run particle flame ~ ~1 ~ 0.6 0.8 0.6 0.08 15 force/execute if score #tick c9_timer matches 42 at @e[tag=c9_target] run particle explosion_emitter ~ ~1 ~ 0 0 0 0 1 forcesetup #8 Summons the lower chassis of the automaton using a lit oxidized copper bulb as the core, with a waxed copper grate cage and giant crossed lightning rod legs riding as passengers so they spawn in a single command.setup #9 Summons the rotating sea lantern eye along with the dark prismarine head and copper crown riding as passengers, all with custom scale transformations and glowing outlines.loop #5 Rotates the automaton's glowing sea lantern eye every tick so that it stays locked onto the intruder's eyes as it moves around the pedestal.loop #6 Matches the rotation of the dark prismarine head display entity to the aiming direction of the eye.loop #8 Projects a continuous crimson-to-gold targeting laser beam straight out of the eye along its local Z axis (^ ^ ^).loop #11 Fires the high-energy cyan and white plasma laser beam between ticks 40 and 56 of every 3-second cycle.


Recorded on our own test server: 59 frames at about 9.7 fps. Our image check saw: A glowing prismarine and copper turret on a sea lantern pedestal rotates its head and fires a cyan sonic boom particle beam causing a fiery explosion.
Commands, video and screenshots: tested and recorded by www.9minecraft.net © 9Minecraft. Sharing a video or screenshot? Please credit www.9minecraft.net.
To make the automaton target real survival players instead of the demo husk, skip the last setup command that spawns c9_orbit and c9_target, and replace @e[tag=c9_target,limit=1] in the loop commands with @p[distance=..16]. You can also add /execute if score #tick c9_timer matches 42 at @p[distance=..16] run damage @s 6 minecraft:magic to deal laser damage when the beam fires.
/kill @e[tag=c9_auto]/scoreboard objectives remove c9_timer/fill ~-4 ~ ~-4 ~4 ~5 ~4 air/fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 grass_blockEach block display has a negative X and Z translation equal to half of its scale (for example, translation -1.1 for a scale of 2.2), which shifts the block so its center aligns with the entity's pivot point.
Yes! Lower the reset threshold in the second loop command from 60 ticks (3 seconds) to 40 ticks (2 seconds) and adjust the tick ranges on the particle commands to make it fire faster.
▶Thread-Spinning Loom Weaver BossCustom MobsExpert23 cmds
▶Neon Cyberpunk Hologram KitsuneCustom MobsHard24 cmds
▶Sub-Atomic Electron Cloud ElementalCustom MobsHard24 cmds
▶Temple Guardian MinibossCustom MobsExpert24 cmds
▶Phantom Projectile TurretCustom MobsMedium21 cmds
▶Soaring Sky-Whale Pod Cloud MigrationCustom MobsHard24 cmds