Minecraft wiki entry for Command_Block, associated text: In Java Edition to enter command or modify the command block, enable-command-block in the server.properties file must be set to true (default is false).