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

Using data modify to set the name from a block only works once

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 19w08b, Minecraft 19w09a, Minecraft 19w11a, Minecraft 19w11b, Minecraft 19w12a, Minecraft 19w12b, Minecraft 19w13a, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14 Pre-Release 1, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.1 Pre-Release 2, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, Minecraft 1.14.2 Pre-Release 4, Minecraft 1.14.2, Minecraft 1.14.3 Pre-Release 1, Minecraft 1.14.3 Pre-Release 2, Minecraft 1.14.3 Pre-Release 3, Minecraft 1.14.3 Pre-Release 4, Minecraft 1.14.3, Minecraft 1.14.4 Pre-Release 1, Minecraft 1.14.4 Pre-Release 2, Minecraft 1.14.4 Pre-Release 3, Minecraft 1.14.4 Pre-Release 4, Minecraft 1.14.4 Pre-Release 5, Minecraft 1.14.4 Pre-Release 6, 1.14.4 Pre-Release 7, 1.14.4, 19w34a, 19w35a, 19w36a, 19w37a, 19w38b, 19w39a, 19w40a, 19w41a, 1.15.2, 20w06a, 20w14a, 20w15a, 20w16a
    • Fix Version/s: 20w17a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      How to reproduce

      # initialize
      scoreboard objectives add tmp dummy
      scoreboard players set @p tmp 1
      summon armor_stand ~ ~ ~ {CustomNameVisible:1b,Tags:["tmp"]}
      
      # loop
      setblock 0 0 0 minecraft:spruce_sign{Text1:'{"score":{"objective":"tmp","name":"@p"}}',Text2:'""',Text3:'""',Text4:'""'}
      data modify entity @e[tag=tmp,limit=1] CustomName set from block 0 0 0 Text1
      setblock 0 0 0 minecraft:air
      

      This will set the name to 1, but won't update the name if the score is changed.

      note: This can be worked-around by adding a `data modify entity @e[limit=1,tag=tmp] CustomName set value '""'` command to the loop

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            AlexMCool Alex³
            Votes:
            8 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              CHK: