The bug
In Java Edition, setting the commandBlocksEnabled
gamerule to false prevents editing command blocks, with the message “Command blocks are not enabled.” Note that viewing command blocks is still possible.
In Bedrock Edition, this is not the case. Command blocks can be edited even when command blocks are not enabled.
How to reproduce
/gamerule commandBlocksEnabled false
Place a command block and write a command in it
Expected result
Your edit should fail with an error message
Observed result
The edit goes through
Comments 3
Hi!
Thank you for your report!
However, this issue is Working as Intended.
Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.
Full Version History – Feature Requests and Suggestions
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki
Is there a negative impact of this? To me, it sounds like the Java behavior would be annoying.
My primary use case for the game rule has been as an on/off switch for a repeating teleport command that I am using to create a cinematic sequence for a video. I have to be able to turn command blocks off because the repeating teleport command prevents me from accessing a lever on the command block. The current behavior allows me to end a movement so that I can edit the command, and then to restart the movement. If the gamerule were to prevent editing the command, I would have to turn it off, then flip a separate lever on the command block, then turn it back on again, then edit the command, and then flip the lever again. The process of fine-tuning the curve for cinematic sequence would be twice as tedious.