Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-134966

Using /setblock to place an "Always Active" command block with a command won't execute the command immediately

    XMLWordPrintable

Details

    • Confirmed

    Description

      The bug

      Using /setblock to place an "Always Active" command block (or any of the command block's variants) which already has a command in it will not cause the command to run immediately. If you change the command block so that it needs redstone and then back to the "Always Active" state, the command will run as expected.

      What I expected to happen was:

      The command block would immediately execute the command, as it had done in prior versions.

      What actually happened was:

      The command block did not immediately execute the command.

      How to reproduce

      Set a repeating command block (make sure cheats are enabled) with

      /setblock ~ ~ ~1 repeating_command_block{auto:1,Command:"say Success!"} 

      ->  The command isn't run immediately

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              carpet0928 carpet0928
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                CHK: