When trying to fill air blocks generated in the world in order to generate caves, ravines, lakes, etc. are not counted when using /fill <x> <y> <z> <x> <y> <z> <block> replace minecraft:air. Once a block has been placed in that position and then broken, it will be properly filled. Otherwise, the command will return the error message "No blocks were filled."
Linked issues
Comments 3


yeah underground structures are actually filled with cave_air
you need to use both /fill <x> <y> <z> <x> <y> <z> <block> replace minecraft:air, /fill <x> <y> <z> <x> <y> <z> <block> replace minecraft:cave_air at a time or use /fill <x> <y> <z> <x> <y> <z> <block> keep

Thank you for your report!
We're tracking this issue as MC-125135, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Won't Fix, which means this is considered a bug but won't be fixed. The description of that ticket or the comments might explain the rationale. Please do not leave a comment on the linked ticket.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues in Discord or Reddit
You need to use "cave_air" https://minecraft.gamepedia.com/Air