mojira.dev
MC-225311

command block unable to run 'execute if blocks [...]'

I was trying to work on making a system to recognize if the player has built a magic circle and then run some command if they stand in the middle of it.

but even though the command works when written in chat, the command blocks doesn't seem to be running the command

just to make it clear i have made the template in the bottom of the world
and the command block is set to repeat, unconditional and always active

{{the test command: }}
execute as @r if blocks 0 0 0 2 0 2 ~-1 ~-1 ~-1 masked run say woop

Attachments

Comments 2

The 'as' executes the command AS someone, not AT someone.

The command should be:

execute at @r if blocks 0 0 0 2 0 2 ~-1 ~-1 ~-1 masked run say woop

But I can tip you to use:

execute as @a run execute at @s if blocks 0 0 0 2 0 2 ~-1 ~-1 ~-1 masked run say woop

sorry for my delayed answer, but yes this works, I must be confused with the difference between as and at
thanks

Mikkel Balslev

(Unassigned)

Unconfirmed

(Unassigned)

1.16.5

Retrieved