Uploaded August 2021 | Updated November 2026, 3 hours ago
Here's a simple 3 command block method for allowing block placement in midair, using the structure void block. Just set up the three command blocks, use the tag command to give yourself an "air_placer" tag, and you're good to go!
Command Block 1 (Repeating)
`execute as @p[tag=air_placer] at @s run fill ~-4 ~-4 ~-4 ~4 ~4 ~4 minecraft:air replace minecraft:structure_void`
Command Block 2 (Chain, Unconditional)
`execute as @p[tag=air_placer] at @s anchored eyes if block ^ ^ ^3 minecraft:air run setblock ^ ^ ^3 minecraft:structure_void`
Command Block 3 (Chain, Conditional) (Optional)
`execute as @p[tag=air_placer] at @s anchored eyes positioned ^ ^ ^3 align xyz positioned ~0.5 ~0.5 ~0.5 run particle minecraft:dust 0 0.9 0.6 1 ~ ~ ~`
Here's a simple 3 command block method for allowing block placement in midair, using the structure void block. Just set up the three command blocks, use the tag command to give yourself an "air_placer" tag, and you're good to go!
Command Block 1 (Repeating)
`execute as @p[tag=air_placer] at @s run fill ~-4 ~-4 ~-4 ~4 ~4 ~4 minecraft:air replace minecraft:structure_void`
Command Block 2 (Chain, Unconditional)
`execute as @p[tag=air_placer] at @s anchored eyes if block ^ ^ ^3 minecraft:air run setblock ^ ^ ^3 minecraft:structure_void`
Command Block 3 (Chain, Conditional) (Optional)
`execute as @p[tag=air_placer] at @s anchored eyes positioned ^ ^ ^3 align xyz positioned ~0.5 ~0.5 ~0.5 run particle minecraft:dust 0 0.9 0.6 1 ~ ~ ~`
![My Most Compact Maze Generator Yet
Questions about this episode or want help on your own Minecraft creations? Join the Command Block Cove on Discord: https://discord.gg/Vr9vfP6EqH
Thank you for making Season 1 of Five Block Fridays fantastic! Ill be taking a break for a bit to hopefully work on some larger projects.
Be on the lookout for a technical deep-dive on this creation sometime next week, as well as a world tour and download next Friday.
Commands:
Command 1 - Reset the Maze
execute if entity @e[type=snowball,nbt={Item:{tag:{display:{Name:{text:Reset}}}}}] at @e[name=maze_walker] unless entity @e[name=maze_tile,distance=0..0.5] run execute as @e[name=maze_tile] at @s store success entity @s NoBasePlate byte 0 run fill ~-1 ~2 ~-1 ~1 ~5 ~1 minecraft:birch_leaves[persistent=true] replace air
Command 2 - Rotate Unvisited Neighbors
execute as @e[name=maze_walker] at @s as @e[name=maze_tile,nbt={NoBasePlate:0b},distance=1.5..2.5] at @s facing entity @e[name=maze_walker,sort=nearest,limit=1] eyes run tp @s ~ ~ ~ ~ 0
Command 3 - Teleport to Random Neighbor
execute at @e[name=maze_walker] as @e[name=maze_tile,nbt={NoBasePlate:0b},distance=1.5..2.5,sort=random,limit=1] store success entity @s NoBasePlate byte 1 run tp @e[name=maze_walker,sort=nearest,limit=1] @s
Command 4 - Carve Out Walls
execute as @e[name=maze_walker] at @s rotated as @e[name=maze_tile,distance=0..0.5,sort=nearest,limit=1] rotated ~ 0 store success entity @s NoBasePlate byte 1 run fill ^ ^3 ^ ^ ^5 ^2 minecraft:air
Command 5 - Backtrack if Necessary
execute as @e[name=maze_walker,nbt={NoBasePlate:0b}] at @s rotated as @e[name=maze_tile,sort=nearest,distance=0..0.5,limit=1] run tp @s ^ ^ ^2
Chapters:
0:00 - Intro
0:56 - Depth First Search explained
3:10 - Demos
5:00 - Timelapse
8:15 - Outro My Most Compact Maze Generator Yet](https://i.ytimg.com/vi/GPdRnhVGasc/mqdefault.jpg)








![How YOU Can Add Fireflies to Minecraft with Just Five Commands
Welcome to the first Episode of Five Block Fridays! This week, were adding fireflies to Minecraft with just five command blocks!
Do you have a challenge youd like to see me tackle in just five blocks?
Heres the commands from this video for your own use!
Command 1:
execute as @e[type=item,nbt={Item:{id:minecraft:mangrove_propagule},Age:1s}] unless data entity @s Thrower at @s run summon minecraft:bat ~ ~ ~ {Tags:[firefly],Silent:1b,PersistenceRequired:1b}
Command 2:
effect give @e[tag=firefly] minecraft:invisibility 1 0 true
Command 3:
execute at @e[tag=firefly] run particle minecraft:electric_spark ~ ~ ~ 0.2 0.2 0.2 0.1 1 force
Command 4:
execute at @e[tag=firefly] run fill ~-1 ~-1 ~-1 ~1 ~1 ~1 minecraft:air replace minecraft:light
Command 5:
execute at @e[tag=firefly] run fill ~ ~ ~ ~ ~ ~ minecraft:light[level=8] replace minecraft:air
Chapters:
0:00 Preview
0:12 Intro
1:18 Demo
3:44 Command 1
5:53 Command 2
6:13 Command 3
8:00 Command 4
8:28 Command 5
9:22 Outro How YOU Can Add Fireflies to Minecraft with Just Five Commands](https://i.ytimg.com/vi/LC1k2Q2lmKc/mqdefault.jpg)
