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

NBT-tag 'liked_noteblock' not working in functions.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19.2
    • None
    • Unconfirmed
    • (Unassigned)

      This bug report was a fault on my part, can be deleted

       

       

      When the command 
      'execute at @p as @e[type=allay,distance=64..96,nbt=!{Brain:{memories:{"minecraft:liked_noteblock":{value:

      -

      {dimension:"minecraft:overworld"}

      -

      }}}}] run tp @s @p' is executed in the world, allays who are no bound to a noteblock get teleported. When executed from a .mcfunction file, all allays get teleported, including allays bounded to a noteblock. The issue seems to relate to the 'minecraft:liked_noteblock' tag not working properly in .mcfunction files. affected versions: 1.19; 1.19.1; 1.19.2.

       

      EDIT: When I set the distance to be closer (I did 20 blocks), the command in the function does seem to work. my simulation and render distance are set very high and i forceloaded all the chunks in my testing area, so this issue doesnt seem to have anything to do with chunk loading.

      EDIT: The issue starts with a distance of 64 blocks from the noteblock. note: 64 blocks that is the range allays follow the player/noteblock. 
      Maybe this is just an issue on my part with the way the game processes commands, because it does work with the command 
      execute at @p as @e[type=allay,distance=64..128] run execute as @s if entity @s[nbt=!{Brain:{memories:{"minecraft:liked_noteblock":{value:

      -

      {dimension:"minecraft:overworld"}

      -

      }}}}] run tp @s @p

       -- 
       -- 
       

        1. 2022-08-13_11.40.40.png
          2022-08-13_11.40.40.png
          400 kB
        2. 2022-08-13_11.43.15.png
          2022-08-13_11.43.15.png
          75 kB
        3. 2022-08-13_11.45.45.png
          2022-08-13_11.45.45.png
          422 kB
        4. 2022-08-13_11.47.04.png
          2022-08-13_11.47.04.png
          88 kB
        5. the function file tpallays.png
          the function file tpallays.png
          109 kB

            Unassigned Unassigned
            ThijquintNL ThijquintNL
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: