I am trying to make a puzzle map and I want a redstone block to be placed when a certain block is broken. I am putting this command into a Repeating, Always Active command block:
execute @p ~ ~ ~ detect -712 58 -1887 minecraft:air 0 setblock -729 56 -1884 minecraft:redstone_block
The command will always spit out "Could not execute "detect" as Creeel"
execute
, as it looks to be overkill for what you want. Instead, I would suggest usingtestforblock
, and use a conditional chain command block to perform thesetblock
. Second, you might be getting the error if the block you're targeting isn't loaded. While testing, were you in the area of the place you're trying to check? – MBraedley Jul 23 '17 at 3:01execute
won't work, but rather, my point is that it's easier to debug two simple commands compared to one complex command. – MBraedley Jul 23 '17 at 12:51