Autonomous Sci-Fi Scrubber Bots

Summon miniature glowing block-display scrubber robots that autonomously patrol a sci-fi floor, hunting down grime clusters and buffering out sparkles.

Java EditionHolograms & Display EntitiesMedium26 commandsTested on a real 26.2 & 26.3 server
Glowing cyan cleaner robots glide across a tiled platform, scrubbing away brown grime with sparkle trails. Download the GIF Video & GIF © www.9minecraft.net

Machines & MechanismsTechnologyCuteCyanWhiteBlackDecorationMap MakingServer LobbyBlock displaysArmor standsRiding & passengersBlock building (fill/setblock/clone)SoundsRotation math21+ commands

Watch four miniature sci-fi cleaner robots glide across a laboratory floor all by themselves. Built from layered block displays with glowing cyan cores and spinning sponge brushes, each bot locks onto nearby grime piles, slides over to scrub them away in a burst of soapy bubbles, and leaves a fresh trail of sparkles behind.

An overhead drone regularly drops fresh sludge onto the tiles so your cleaning crew always has a mess to tackle. The creation uses no mods or resource packs, relying purely on display entity transformations and marker navigation.

1. Setup - type these once 10 commands

  1. /scoreboard objectives add c9_t dummy
  2. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 iron_block
  3. /fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 smooth_quartz replace iron_block
  4. /fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 quartz_bricks
  5. /fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 sea_lantern
  6. /fill ~-4 ~-1 ~-4 ~4 ~-1 ~4 cyan_terracotta
  7. /setblock ~ ~-1 ~ beacon
  8. /summon marker ~ ~ ~ {Tags:["c9_all","c9_ctrl"]}
  9. /execute positioned ~-4 ~ ~-4 run summon armor_stand ~ ~ ~ {Tags:["c9_all","c9_bot"],Invisible:1b,NoGravity:1b,Small:1b,Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_body"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-0.4f,0.15f,-0.4f],left_rotation:[0f,0f,0f,1f],scale:[0.8f,0.25f,0.8f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.32f,-0.25f],left_rotation:[0f,0f,0f,1f],scale:[0.5f,0.2f,0.5f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_brush"],block_state:{Name:"minecraft:wet_sponge"},transformation:{translation:[-0.45f,0.02f,-0.45f],left_rotation:[0f,0f,0f,1f],scale:[0.9f,0.12f,0.9f],right_rotation:[0f,0f,0f,1f]}}]}
  10. /execute positioned ~4 ~ ~-4 run summon armor_stand ~ ~ ~ {Tags:["c9_all","c9_bot"],Invisible:1b,NoGravity:1b,Small:1b,Rotation:[90f,0f],Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_body"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-0.4f,0.15f,-0.4f],left_rotation:[0f,0f,0f,1f],scale:[0.8f,0.25f,0.8f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.32f,-0.25f],left_rotation:[0f,0f,0f,1f],scale:[0.5f,0.2f,0.5f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_brush"],block_state:{Name:"minecraft:wet_sponge"},transformation:{translation:[-0.45f,0.02f,-0.45f],left_rotation:[0f,0f,0f,1f],scale:[0.9f,0.12f,0.9f],right_rotation:[0f,0f,0f,1f]}}]}

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

  1. /scoreboard players add @e[tag=c9_ctrl] c9_t 1
  2. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 2 run summon armor_stand ~-4 ~ ~4 {Tags:["c9_all","c9_bot"],Invisible:1b,NoGravity:1b,Small:1b,Rotation:[180f,0f],Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_body"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-0.4f,0.15f,-0.4f],left_rotation:[0f,0f,0f,1f],scale:[0.8f,0.25f,0.8f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.32f,-0.25f],left_rotation:[0f,0f,0f,1f],scale:[0.5f,0.2f,0.5f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_brush"],block_state:{Name:"minecraft:wet_sponge"},transformation:{translation:[-0.45f,0.02f,-0.45f],left_rotation:[0f,0f,0f,1f],scale:[0.9f,0.12f,0.9f],right_rotation:[0f,0f,0f,1f]}}]}
  3. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 2 run summon armor_stand ~4 ~ ~4 {Tags:["c9_all","c9_bot"],Invisible:1b,NoGravity:1b,Small:1b,Rotation:[-90f,0f],Passengers:[{id:"minecraft:block_display",Tags:["c9_all","c9_body"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-0.4f,0.15f,-0.4f],left_rotation:[0f,0f,0f,1f],scale:[0.8f,0.25f,0.8f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_core"],Glowing:1b,glow_color_override:65535,block_state:{Name:"minecraft:sea_lantern"},transformation:{translation:[-0.25f,0.32f,-0.25f],left_rotation:[0f,0f,0f,1f],scale:[0.5f,0.2f,0.5f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_all","c9_brush"],block_state:{Name:"minecraft:wet_sponge"},transformation:{translation:[-0.45f,0.02f,-0.45f],left_rotation:[0f,0f,0f,1f],scale:[0.9f,0.12f,0.9f],right_rotation:[0f,0f,0f,1f]}}]}
  4. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 15.. unless entity @e[tag=c9_grime] run scoreboard players set @e[tag=c9_ctrl] c9_t 100
  5. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 100.. run scoreboard players set @e[tag=c9_ctrl] c9_t 1
  6. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run summon block_display ~ ~ ~ {Tags:["c9_all","c9_grime","c9_new"],Glowing:1b,glow_color_override:6704179,block_state:{Name:"minecraft:mud"},transformation:{translation:[-0.35f,0.0f,-0.35f],left_rotation:[0f,0f,0f,1f],scale:[0.7f,0.18f,0.7f],right_rotation:[0f,0f,0f,1f]}}
  7. /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 run summon block_display ~ ~ ~ {Tags:["c9_all","c9_grime","c9_new"],Glowing:1b,glow_color_override:5592405,block_state:{Name:"minecraft:soul_soil"},transformation:{translation:[-0.3f,0.0f,-0.3f],left_rotation:[0f,0f,0f,1f],scale:[0.6f,0.14f,0.6f],right_rotation:[0f,0f,0f,1f]}}
  8. /execute if entity @e[tag=c9_new] run spreadplayers ~ ~ 2 7 false @e[tag=c9_new]
  9. /execute as @e[tag=c9_new] at @s run particle dust{color:[0.45,0.32,0.2],scale:1.6} ~ ~0.2 ~ 0.3 0.1 0.3 0 12
  10. /tag @e[tag=c9_new] remove c9_new
  11. /execute as @e[tag=c9_bot] at @s facing entity @e[tag=c9_grime,sort=nearest,limit=1] feet run tp @s ^ ^ ^0.18 ~ 0
  12. /execute as @e[tag=c9_bot] at @s run tp @s ~ ~ ~ ~4 ~
  13. /execute as @e[tag=c9_bot] at @s run particle dust{color:[0.2,0.95,1.0],scale:0.8} ~ ~0.1 ~ 0.2 0.05 0.2 0 1
  14. /execute as @e[tag=c9_bot] at @s if entity @e[tag=c9_grime,distance=..0.9] run particle wax_off ~ ~0.25 ~ 0.35 0.2 0.35 0 15
  15. /execute as @e[tag=c9_bot] at @s if entity @e[tag=c9_grime,distance=..0.9] run playsound block.wet_sponge.stepablock neutral @a ~ ~ ~ 0.7 1.5
  16. /execute as @e[tag=c9_bot] at @s run kill @e[tag=c9_grime,distance=..0.9]

How it works

Frames from the test run

Autonomous Sci-Fi Scrubber Bots - frame 1Autonomous Sci-Fi Scrubber Bots - frame 2Autonomous Sci-Fi Scrubber Bots - frame 3

Recorded on our own test server: 54 frames at about 8.9 fps. Our image check saw: Several glowing cyan-outlined scrubber robots made of layered blocks move around a tiled square platform, cleaning up brown grime spots with sparkle particles.

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 in the middle of a flat open area where you want the 19x19 sci-fi laboratory floor to appear.
  2. Run each command from the Setup list in chat (or place them in impulse command blocks and power them once) to build the floor and deploy the first two bots.
  3. Place 16 repeating command blocks in a line or stack nearby, set them all to Repeat, Unconditional, and Always Active.
  4. Paste one Loop command into each repeating command block in order. If your command blocks are outside the floor, wrap each command with execute positioned X Y Z run ... using the centre coordinates of your floor.
  5. Watch the four scrubber bots patrol the tiles, home in on mud clusters, and polish the stage clean.

Use it with real players

To let players drop grime behind their boots for the bots to clean up, replace loop commands 5 through 9 with a repeating command: /execute if score @e[tag=c9_ctrl,limit=1] c9_t matches 1 at @a run summon block_display ~ ~ ~ {Tags:["c9_all","c9_grime"],block_state:{Name:"minecraft:mud"},transformation:{translation:[-0.3f,0f,-0.3f],left_rotation:[0f,0f,0f,1f],scale:[0.6f,0.15f,0.6f],right_rotation:[0f,0f,0f,1f]}}. The scrubber fleet will follow players around and tidy up their muddy footprints.

Remove it again 3 commands

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

FAQ

Why do the block displays ride an armor stand instead of teleporting directly?

Grouping the three parts (iron body, glowing core, and sponge brush) as passengers on one small armor stand lets a single teleport command move the entire robot smoothly without the pieces drifting apart.

Can I add more scrubber bots to the floor?

Yes! Run the setup summon command again at any spot on the floor. Every armor stand tagged c9_bot automatically joins the cleaning fleet and picks the closest grime pile to scrub.

Commands used

/execute/fill/kill/particle/playsound/scoreboard/setblock/spreadplayers/summon/tag/tp

Similar creations

Join 9Minecraft News & Guides