execute as @n[tag=key.note.left] if score @s note.pos.relative matches ..-100 as @n[type=item_display,tag=note.left] run function funkalot:autoplaymacro {key:left}
execute as @n[tag=key.note.down] if score @s note.pos.relative matches ..-100 as @n[type=item_display,tag=note.down] run function funkalot:autoplaymacro {key:down}
execute as @n[tag=key.note.space] if score @s note.pos.relative matches ..-100 as @n[type=item_display,tag=note.space] run function funkalot:autoplaymacro {key:space}
execute as @n[tag=key.note.up] if score @s note.pos.relative matches ..-100 as @n[type=item_display,tag=note.up] run function funkalot:autoplaymacro {key:up}
execute as @n[tag=key.note.right] if score @s note.pos.relative matches ..-100 as @n[type=item_display,tag=note.right] run function funkalot:autoplaymacro {key:right}