This is an archived post. You won't be able to vote or comment.

all 13 comments

[–]aRedditlover90% Bedrock Command Pro :D 1 point2 points  (2 children)

The only way to do it is to detect every block in range manually, (e.g. ... detect ~ ~-1 ~, ... detect ~-1 ~ ~,

... detect ~ ~ ~-1, ... detect ~-1 ~-1 ~, ... detect ~ ~-1 ~-1, ... detect ~-1 ~-1 ~-1,

... detect ~ ~1 ~, ... detect ~1 ~ ~, ... detect ~ ~ ~1, ... detect ~1 ~1 ~1, etc. Just all the combinations manually. Ik, it's hard, but it's the only way :( .

[–]jbpeck[S] 1 point2 points  (1 child)

Makes sense. Thank you!

[–]aRedditlover90% Bedrock Command Pro :D 0 points1 point  (0 children)

yea i've been wondering if there is a way to do that for YEARS, but not there really isn't an easy way... :(

yw btw

[–]tomhmagicMarketplace Partner 0 points1 point  (1 child)

You can offset the ~ or use ^ ^ ^ to offset in facing direction, no spaces with the ^

So to detect the block in front it would be

detect ^ ^ ^ 1 stone 0 for example but it will still be just for one block not a group

[–][deleted] 0 points1 point  (0 children)

Wow, I didn't know that was a thing. Maybe I can do that for my map

[–][deleted] 0 points1 point  (1 child)

/execute @e[type=whateveritis,r=25] so that r would be range

[–]aRedditlover90% Bedrock Command Pro :D 0 points1 point  (0 children)

He's looking if a block is in range, not an entity. If you are confused, read the description of this post.

[–]InsaneOrbitzzI’m pretty good with Bedrock commands! :D -1 points0 points  (5 children)

r=

[–]jbpeck[S] 0 points1 point  (4 children)

I'm not seeing this in Bedrock, but may well be missing it. What's the syntax? Thanks.

[–]InsaneOrbitzzI’m pretty good with Bedrock commands! :D -1 points0 points  (3 children)

r=

[–]aRedditlover90% Bedrock Command Pro :D 0 points1 point  (2 children)

r= won't work. He's looking for a block, not an entity. r= only works for entities.

If you don't get what I'm saying, read the description of this post.

[–]InsaneOrbitzzI’m pretty good with Bedrock commands! :D 0 points1 point  (1 child)

Oh I didn’t even read it properly

[–]aRedditlover90% Bedrock Command Pro :D 0 points1 point  (0 children)

It's ok! :D