r/MinecraftCommands • • 3d ago

Help | Bedrock What am I doing wrong?

Post image

Trying to remove a lot of blocks but execute just won't cooperate. Says can't execute fill as null. Tried changing at to as, reducing and increasing the coordinates nothing. I'm on the maximum sim distance too

6 Upvotes

6 comments sorted by

9

u/DqwertyC Command Experienced 3d ago

You're using absolute coordinates instead of relative coordinates, so it's only checking from (-3, -3, -3) to (3, 3, 3) in the world, not around the snowball. If you add a tilde (~) in front of each number, it will use relative coordinates, and fill around the execution position:

execute at @e[type=snowball] run fill ~-3 ~-3 ~-3 ~3 ~3 ~3 air replace birch_log

3

u/Reasonable-Sky6808 3d ago

Holy hell I did not think of that. Been a while since I did this and I feel so dumb now! Thanks!

1

u/__Stleko_1115__ 3d ago

execute at @e[type=snowball] run fill ~3 ~3 ~3 ~-3 ~-3 ~-3 air replace birch_log

1

u/Nokiojyn 3d ago

Try using @e[type=snowball,limit=1]

3

u/Ericristian_bros Command Experienced 3d ago

limit is java, bedrock uses c. But the issue was using global coordinates and not relative ones

1

u/Ip_Amir_I 3d ago

Either it’s a ticking area issue or you need to specify to from @e[type=snowball] to @e[type=snowball,c=1]. Also your coordinates are to specific you need to add the ~3 ~3 ~3 ~-3 ~-3 ~-3 to make it relative to the snowball and not actually at those coordinates and everything in between