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

Selector in /setblock doesn't work in all cases

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • Minecraft 14w32d
    • None
    • Unconfirmed

      While using the selector tag to edit the nbt data of some blocks (EX:Text1 in signs) everything will work correctly, but when trying to use selector to change other nbt tags (EX: Command in command blocks) it will not work and will simply display the string.

      EX:

      /setblock ~ ~ ~ wall_sign 0 replace {Text1:"{selector:\"@e[score_A_min=1,score_A=1]\"}"}

      works correctly and places a sign displaying the name of the entity @e[score_A_min=1,score_A=1], but

      /setblock ~ ~ ~ command_block 0 replace {Command:"{selector:\"@e[score_A_min=1,score_A=1]\"}"}

      places a command block with the command

      {selector:@e[score_A_min=1,score_A=1]}

      inside, instead of the name of @e[score_A_min=1,score_A=1].

      Tested a bit more and selector won't work with summon either.

            Unassigned Unassigned
            kelaris Caleb Harris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: