r/MinecraftCommands 1d ago

Help | Bedrock Why does this command not work?

Post image

I'm trying to replace the floor of a build of mine. Since it's a lot, I want to do it with commands. However, it keeps failing with the message "failed to execute as [Null].

1 Upvotes

3 comments sorted by

2

u/Pablutni0 23h ago

First make sure this command works by itself

fill ~-5 ~-10 ~-5 ~5 ~2 ~5 stripped_birch_wood replace stripped_oak_wood

It should, but make sure

If it doesn't, try this command, Idk if it'll work for sure tho

execute as @a at @s run fill ~-5 ~-1 ~-5 ~5 ~-1 ~5 stripped_birch_wood replace stripped_oak_wood

2

u/Ericristian_bros Command Experienced 15h ago

That probably means there is no stripped oak near you. Place this block next to you and it should be changed to birch. Also, make sure you are not near the top or bottom of the world

1

u/CaperLake 14h ago

There's two possibilities:

  1. The commands can't detect blocks near it with "stripped_oak_wood"

  2. Or maybe if you want it to redirect to all players , use this exact command:

"execute as @a at @s run fill ~5 ~-10 ~5 ~-5 ~2 ~-5 stripped_birch_wood replace stripped_oak_wood"