How can I look for an item and modify it "at the same time"
I want to run an execute command on a tick function that checks for items with the components "jukebox_playable" and "custom name" set to something in every player's inventory. Then I want to edit the "jukebox_playable" component of that item but I have no idea how to do it even after some research.
My command so far: execute as @a[nbt={Inventory:[{components:{"minecraft:jukebox_playable":"custom_disc:music","minecraft:custom_name":"name"}}]}] run data modify entity @s