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

"setblock" placed command blocks don't execute their command instantly after placing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: Minecraft 13w37a, Minecraft 13w37b, Minecraft 14w18b
    • Fix Version/s: None
    • Environment:
      Windows 7
    • Confirmation Status:
      Confirmed
    • Game Mode:
      Creative

      Description

      When a command block is created, it seems to be unable to execute its command at first.

      How to reproduce:
      Put a command block, and type this command:

      setblock ~ ~ ~2 137 1 replace {Command:"say Hi!"}

      . When activated, this will create a new command block with a command "say Hi!". Put a repeater between them, facing the second block. Put a button on the first one, and press it. You will see the repeater getting powered (and the second block created if you broke it), but there will be no "Hi!" in chat.
      If you set first block's command to something else, second block will not be replaced just before powering, and will execute its command normally. Also, making 2 blocks wide gap instead of one and putting two repeaters between them also solves this issue (even if sum of their delays is smaller than delay of one repeater).

      EDIT: whoops, seems that i accidentally wrote "1" in block data, changing to 0 fixes this

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            domas321 Domantas
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: