A miniature, custom-modeled robot zips around a messy arena, vacuuming up dropped items with vortex particles and bulldozing wandering mobs out of its way.
Custom MobsTechnologyCuteYellowBlueWhiteDecorationMini-gameServer LobbyBlock displaysArmor standsRiding & passengersSummoned mobsBlock building (fill/setblock/clone)Rotation math21+ commands
Keep your world spotless with the Autonomous Sweeper Bot. Built using block display entities mounted onto an invisible silverfish chassis, this compact yellow-and-iron robot features a glowing blue core and an iron dozer blade. In this demo, it zips across a tiled test arena, tracking down spilled emeralds, gold, and diamonds while leaving a sparkling trail of clean air behind.
The bot doesn't let anyone get in the way of its cleaning routine. Any wandering mobs that step into its path are immediately scooped up by the front blade and launched upward into the air with a comical clang and a burst of angry steam particles.
/scoreboard objectives add c9_timer dummy/scoreboard objectives add c9_items dummy/scoreboard players set #items c9_items 0/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 smooth_stone/fill ~-8 ~-1 ~-8 ~8 ~-1 ~8 quartz_bricks/fill ~-9 ~ ~-9 ~9 ~ ~9 smooth_stone_slab hollow/fill ~-8 ~ ~-8 ~8 ~ ~8 air/summon silverfish ~ ~ ~ {Tags:["c9_bot","c9_entity"],Silent:1b,Invulnerable:1b,PersistenceRequired:1b,CustomName:'{"text":"Sweeper-9000","color":"aqua"}',CustomNameVisible:1b,active_effects:[{id:"minecraft:invisibility",duration:999999,show_particles:0b}],Passengers:[{id:"minecraft:block_display",Tags:["c9_bot_part","c9_entity"],block_state:{Name:"minecraft:yellow_concrete"},transformation:{translation:[-0.45f,0.05f,-0.45f],scale:[0.9f,0.3f,0.9f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_bot_part","c9_entity"],block_state:{Name:"minecraft:gray_concrete"},transformation:{translation:[-0.5f,0.0f,-0.5f],scale:[1.0f,0.12f,1.0f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_bot_part","c9_entity"],block_state:{Name:"minecraft:sea_lantern"},Glowing:1b,transformation:{translation:[-0.2f,0.2f,-0.2f],scale:[0.4f,0.22f,0.4f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}},{id:"minecraft:block_display",Tags:["c9_bot_part","c9_entity"],block_state:{Name:"minecraft:iron_block"},transformation:{translation:[-0.55f,0.02f,0.4f],scale:[1.1f,0.25f,0.15f],left_rotation:[0f,0f,0f,1f],right_rotation:[0f,0f,0f,1f]}}]}/summon armor_stand ~ ~ ~ {Tags:["c9_spawner","c9_entity"],Invisible:1b,NoGravity:1b,Marker:1b}/summon sheep ~3 ~ ~3 {Tags:["c9_mob","c9_entity"],NoAI:1b,Invulnerable:1b,Silent:1b,Color:14b}/scoreboard players add @e[tag=c9_bot] c9_timer 1/execute as @e[tag=c9_spawner] at @e[tag=c9_bot,limit=1] run tp @s ~ ~ ~ ~23 ~/execute as @e[tag=c9_bot,scores={c9_timer=12..}] run scoreboard players set @s c9_timer 0/execute if score @e[tag=c9_bot,limit=1] c9_timer matches 1 run execute store result score #items c9_items run execute if entity @e[type=item,tag=c9_mess]/execute if score @e[tag=c9_bot,limit=1] c9_timer matches 1 if score #items c9_items matches ..14 at @e[tag=c9_spawner] positioned ^ ^ ^4.5 if block ~ ~-1 ~ quartz_bricks run summon item ~ ~0.2 ~ {Tags:["c9_mess","c9_entity"],PickupDelay:32767,Age:5400,Item:{id:"minecraft:emerald",count:1}}/execute if score @e[tag=c9_bot,limit=1] c9_timer matches 7 if score #items c9_items matches ..14 at @e[tag=c9_spawner] positioned ^ ^ ^-3.5 if block ~ ~-1 ~ quartz_bricks run summon item ~ ~0.2 ~ {Tags:["c9_mess","c9_entity"],PickupDelay:32767,Age:5400,Item:{id:"minecraft:gold_ingot",count:1}}/execute if score @e[tag=c9_bot,limit=1] c9_timer matches 4 unless entity @e[tag=c9_mob] at @e[tag=c9_spawner] positioned ^3 ^ ^2 if block ~ ~-1 ~ quartz_bricks run summon pig ~ ~ ~ {Tags:["c9_mob","c9_entity"],Silent:1b,Invulnerable:1b}/execute as @e[tag=c9_bot] at @s if entity @e[type=item,tag=c9_mess,distance=..15] facing entity @e[type=item,tag=c9_mess,distance=..15,sort=nearest,limit=1] feet run tp @s ^ ^ ^0.28 ~ ~/execute as @e[tag=c9_bot] at @s unless entity @e[type=item,tag=c9_mess,distance=..15] run tp @s ^ ^ ^0.2 ~6 ~/execute as @e[tag=c9_bot] at @s run particle dust{color:[0.1,0.9,1.0],scale:1.0} ~ ~0.15 ~ 0.25 0.05 0.25 0 2/execute at @e[tag=c9_bot] as @e[type=item,tag=c9_mess,distance=..2.8] at @s facing entity @e[tag=c9_bot,limit=1] feet run tp @s ^ ^ ^0.35/execute at @e[tag=c9_bot] if entity @e[type=item,tag=c9_mess,distance=..0.9] run particle poof ~ ~0.2 ~ 0.15 0.15 0.15 0.05 6/execute at @e[tag=c9_bot] run kill @e[type=item,tag=c9_mess,distance=..0.9]/execute at @e[tag=c9_bot] as @e[tag=c9_mob,distance=..1.8] at @s facing entity @e[tag=c9_bot,limit=1] feet run data merge entity @s {Motion:[0.0,0.55,0.0],NoAI:0b}setup #8 Summons an invisible silverfish acting as the bot's hitbox and controller, with four Block Display passengers scaled and offset to form the yellow shell, dark bumper, glowing sea lantern core, and front iron bulldozer blade.loop #8 Finds the nearest dropped mess item within 15 blocks, rotates the sweeper bot to face it directly, and drives the bot forward at 0.28 blocks per tick.loop #11 Creates a vacuum suction effect by pulling nearby dropped items within 2.8 blocks toward the center of the robot before they get deleted.loop #14 Checks for any wandering mobs within 1.8 blocks of the sweeper bot and modifies their <code>Motion</code> data to toss them high into the air out of the robot's path.


Recorded on our own test server: 60 frames at about 9.9 fps. Our image check saw: A small yellow and grey sweeper robot moves across a white tiled arena, collecting dropped gold and emerald items while emitting blue and white particles near a red sheep.
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 Sweeper Bot clean up any real player drops in survival or creative mode without the self-spawning mess, remove loop commands 4, 5, and 6, and delete tag=c9_mess from the item target selectors in commands 7, 8, 10, 11, and 12. You can also replace tag=c9_mob in command 13 with type=!player,type=!item,type=!block_display,tag=!c9_entity so it bulldozes any regular creature in your base.
/kill @e[tag=c9_entity]/scoreboard objectives remove c9_timer/scoreboard objectives remove c9_items/fill ~-9 ~ ~-9 ~9 ~ ~9 air/fill ~-9 ~-1 ~-9 ~9 ~-1 ~9 grass_blockMounting block display entities as passengers on a living mob allows the entire multi-part model to move and rotate smoothly with a single teleport command while keeping a compact, ground-level name tag.
Yes! In the setup summon command, change yellow_concrete to any other block such as red_concrete, amethyst_block, or copper_block to customize its outer shell.
▶Neon Cyberpunk Hologram KitsuneCustom MobsHard24 cmds
▶Autonomous Pig-Piloted TankCustom MobsHard22 cmds
▶Miniature Toy Soldier BattlefieldCustom MobsHard24 cmds
▶Thread-Spinning Loom Weaver BossCustom MobsExpert23 cmds
▶Da Vinci Ornithopter Griffin AutomatonCustom MobsExpert24 cmds
▶Kintsugi Cracked Teapot Tanuki SpiritCustom MobsMedium24 cmds