Summon a floating cybernetic eyeball made of glowing block displays that tracks a target, dilates its iris, and sweeps the ground with a laser grid.
Creatures & ModelsTechnologyIndustrialHorrorCyanWhiteRedBoss FightAdventure MapDecorationParticlesBlock displaysArmor standsSmooth animation (interpolation)Scoreboard timersExecute chainsGlowing outlinesRotation math21+ commands
This command creation builds a giant hovering cybernetic eye using block_display entities. The eye consists of a dark prismarine outer shell, a sea lantern sclera, two concentric cyan and light blue stained glass iris rings, and a redstone pupil surrounded by rotating iron lenses.
The eye smoothly tracks a wandering target across the arena. On a repeating cycle, its multi-layered mechanical iris contracts and dilates using display interpolation while projecting a five-beam laser grid scan across the ground.
/scoreboard objectives add c9_timer dummy/summon armor_stand ~ ~ ~5 {Tags:["c9_all","c9_actor"],CustomName:'{"text":"Scan Target","color":"aqua"}',CustomNameVisible:1b,Glowing:1b,NoGravity:1b,ArmorItems:[{},{},{},{id:"minecraft:Observer",count:1}]}/summon marker ~ ~7 ~ {Tags:["c9_all","c9_eye"]}/summon block_display ~ ~7 ~ {Tags:["c9_all","c9_part","c9_shell"],Glowing:1b,glow_color_override:43775,interpolation_duration:10,teleport_duration:2,block_state:{Name:"minecraft:dark_prismarine"},transformation:{translation:[-1.75f,-1.75f,-1.9f],scale:[3.5f,3.5f,2.2f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~7 ~ {Tags:["c9_all","c9_part","c9_sclera"],Glowing:1b,glow_color_override:16777215,interpolation_duration:10,teleport_duration:2,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-1.4f,-1.4f,-1.25f],scale:[2.8f,2.8f,1.8f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~7 ~ {Tags:["c9_all","c9_part","c9_iris1"],Glowing:1b,glow_color_override:65535,interpolation_duration:12,teleport_duration:2,block_state:{Name:"minecraft:cyan_stained_glass"},transformation:{translation:[-1.1f,-1.1f,-0.4f],scale:[2.2f,2.2f,1.1f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~7 ~ {Tags:["c9_all","c9_part","c9_iris2"],Glowing:1b,glow_color_override:5636095,interpolation_duration:12,teleport_duration:2,block_state:{Name:"minecraft:light_blue_stained_glass"},transformation:{translation:[-0.75f,-0.75f,0.1f],scale:[1.5f,1.5f,0.75f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~7 ~ {Tags:["c9_all","c9_part","c9_pupil"],Glowing:1b,glow_color_override:16711680,interpolation_duration:10,teleport_duration:2,block_state:{Name:"minecraft:redstone_block"},transformation:{translation:[-0.4f,-0.4f,0.4f],scale:[0.8f,0.8f,0.6f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~7 ~ {Tags:["c9_all","c9_part","c9_ring1"],Glowing:1b,glow_color_override:11184810,interpolation_duration:10,teleport_duration:2,block_state:{Name:"minecraft:iron_Trapdoor",Properties:{facing:"north",open:"true"}},transformation:{translation:[-1.9f,-1.9f,-0.6f],scale:[3.8f,3.8f,1.5f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}/summon block_display ~ ~7 ~ {Tags:["c9_all","c9_part","c9_ring2"],Glowing:1b,glow_color_override:43775,interpolation_duration:10,teleport_duration:2,block_state:{Name:"minecraft:prismarine_bricks"},transformation:{translation:[-1.6f,-1.6f,-1.4f],scale:[3.2f,3.2f,1.6f],left_rotation:[0f,0f,0.3826834f,0.9238795f],right_rotation:[0f,0f,0f,1f]}}/scoreboard players add @e[tag=c9_eye] c9_timer 1/execute as @e[tag=c9_eye,scores={c9_timer=120..}] run scoreboard players set @s c9_timer 0/execute as @e[tag=c9_eye,scores={c9_timer=1..60}] at @e[tag=c9_actor] run tp @e[tag=c9_actor] ~ ~ ~ ~3 ~/execute as @e[tag=c9_eye,scores={c9_timer=61..120}] at @e[tag=c9_actor] run tp @e[tag=c9_actor] ~ ~ ~ ~-3 ~/execute as @e[tag=c9_actor] at @s run tp @s ^ ^ ^0.18/execute as @e[tag=c9_eye] at @s facing entity @e[tag=c9_actor,limit=1] feet run tp @s ~ ~ ~ ~ ~/execute at @e[tag=c9_eye] run tp @e[tag=c9_part] ~ ~ ~ ~ ~/execute as @e[tag=c9_eye,scores={c9_timer=1}] run data merge entity @e[tag=c9_iris1,limit=1] {start_interpolation:0,transformation:{translation:[-1.1f,-1.1f,-0.4f],scale:[2.2f,2.2f,1.1f]}}/execute as @e[tag=c9_eye,scores={c9_timer=1}] run data merge entity @e[tag=c9_pupil,limit=1] {start_interpolation:0,transformation:{translation:[-0.5f,-0.5f,0.4f],scale:[1.0f,1.0f,0.6f]}}/execute as @e[tag=c9_eye,scores={c9_timer=35}] run data merge entity @e[tag=c9_iris1,limit=1] {start_interpolation:0,transformation:{translation:[-0.75f,-0.75f,-0.2f],scale:[1.5f,1.5f,1.3f]}}/execute as @e[tag=c9_eye,scores={c9_timer=35}] run data merge entity @e[tag=c9_pupil,limit=1] {start_interpolation:0,transformation:{translation:[-0.18f,-0.18f,0.5f],scale:[0.36f,0.36f,0.85f]}}/execute at @e[tag=c9_eye] run particle dust{color:[0.0,0.9,1.0],scale:1.4} ^ ^ ^1.2 1.2 1.2 1.2 0 4/execute as @e[tag=c9_eye,scores={c9_timer=45..95}] at @s anchored eyes run particle dust{color:[1.0,0.1,0.2],scale:1.6} ^ ^ ^2 ^ ^ ^10 0 0 force/execute as @e[tag=c9_eye,scores={c9_timer=45..95}] at @e[tag=c9_actor] run particle end_rod ~ ~0.2 ~ 2.2 0.1 2.2 0.02 12 forcesetup #4 Summons the outer dark prismarine shell using a block_display entity centered on the eye marker with negative translation offsets equal to half of its scale, and enables teleport_duration for smooth tracking.setup #10 Summons a secondary prismarine brick ring rotated 45 degrees along the Z axis using a quaternion in left_rotation, giving the eye an octagonal mechanical housing.loop #6 Rotates the central eye marker to face directly toward the moving target stand every tick.loop #7 Teleports all seven display layers to match the eye marker's position and rotation, which smoothly interpolates thanks to teleport_duration:2.loop #11 At tick 35 of the 120-tick cycle, contracts the redstone pupil into a narrow pin-point and pushes it slightly forward before firing the laser scan.


Recorded on our own test server: 53 frames at about 8.7 fps. Our image check saw: A floating blocky eye made of dark prismarine, sea lanterns, blue glass, and redstone rotates in the air while tracking a spot of white particles on the ground.
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 cybernetic eye track and scan the nearest survival player instead of the demo armor stand, skip the second setup command (which summons c9_actor) and replace every @e[tag=c9_actor] or @e[tag=c9_actor,limit=1] in the loop commands with @p (removing loop commands 3, 4, and 5 so it does not teleport the player).
/kill @e[tag=c9_all]/scoreboard objectives remove c9_timerEach block_display has its translation set to negative half of its X and Y scale values, shifting the block's pivot point from its corner to its exact center.
Adjust the interpolation_duration NBT value on the iris and pupil block_display entities in the setup commands; lower numbers make the iris snap shut faster.
▶Articulated Centipede Mechanical UndulationCreatures & ModelsExpert23 cmds
▶Clumsy AutomatonCreatures & ModelsMedium24 cmds
▶Autonomous Strider AutomatonCreatures & ModelsHard24 cmds
▶Kinematic Galloping ConstructCreatures & ModelsExpert24 cmds
▶Striding Cybernetic TitanCreatures & ModelsExpert24 cmds
▶Articulated Dragon Skeleton ReanimationCreatures & ModelsExpert22 cmds