mojira.dev
MC-115278

The setblock command partially fails when replacing a command block

When using the setblock command to replace a command block, the command will successfully execute, but return the message "The block couldn't be placed". If run from a command block, it will also fail to trigger comparators, but it will successfully trigger chain command blocks.

In the attached example image, blocks are as follows
Block A - Command set to /setblock 196 64 148 air
Block B - Test block to be replaced (at 196 64 148)
Block C - Test comparator output (command: /say Comparator)
Block D - Test chain output (command: /say Chain)

When block A replaced block B, block D triggers properly, but the comparator fails to trigger block C. If block B is anything other than a command block, both blocks C and D trigger properly. Block A (setblock) will fail if block B is any type of command block (chain, repeat, impulse, conditional, etc)

Related issues

Attachments

Comments

migrated
[media]
SunCat

Thank you for your report!
However, this issue has been closed as a Duplicate of MC-50166.

It has been linked to this report. If you have additional information, please add it to that report.
Please search before reporting, as it's likely that one exists already.

Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki

migrated

(Unassigned)

Unconfirmed

Minecraft 1.11.2

Retrieved