execute at @s run function lootinremastered:interact/close/save with entity @s[tag=lootinremastered.active] item.tag.lootinremastered
