mojira.dev
MC-121657

i think execute is broken

i did:/execute if block 297 4 933 stone
it says:Unknown command at position 32: ... 933 stone<--[HERE]
so i did:/execute if block 297 4 933 stone say hey
it says:Incorrect argument for command at position 33: ...933 stone <--[HERE]
but I thought I had to do this:
/execute (if|unless) block <x y z> <block> <chained command>

Comments 4

It's /execute (if|unless) block <x y z> <block> run <chained command>, but the conditional parts of execute are having issues.

You can chain all sub-commands together.
After every sub-command you need to write another sub-command.
When you're done with chaining sub-commands, run lets you write the actual command to be executed.
/execute as somebody at somebody run say hi

Read better, they miss "run".

Use

/execute if block 297 4 933 stone run say hey

jan_en_ik

(Unassigned)

Unconfirmed

Minecraft 17w45a

Retrieved