Failed to execute fill command on player
//ads -- adsterra.com -- native banner
?>
There are other questions regarding this but they had other problems like wrong commands, so here goes:
I gave a command block the command
execute @a ~0 ~0 ~0 fill ~-30 ~-30 ~-30 ~30 ~30 ~30 minecraft:diamond_block 0 replace minecraft:gold_block
This should replace all gold blocks close to players with diamond blocks (just used them as a quick test that won't affect other things in nature). I was the only person on the server, activated the command block, but it said "Failed to execute [...] on player [me]" (It also doesn't replace the gold block conveniently placed next to me).
Is there anything wrong with the command?
Pictures about "Failed to execute fill command on player"



How do I get the Fill command to work?
Type the command in the chat window and press the Enter key to run the command. This /fill command would replace all blocks in the fill region, including air. The replaced blocks will be dropped and can then be collected as if they were mined with a pickaxe or shovel.How do you use command blocks to fill?
5 AnswersMinecraft Execute Command [1.19] Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Sora Shimazaki, Pressmaster, Pressmaster, cottonbro
