-
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
--
--