trying to get data from one trident entity and putting it onto another trident entity.

the image shows that when i throw a trident a new one is summoned with tags "real" and "landed" then it schedules a function to be ran on the next tick. the function is supposed to execute at the newly made trident if im not mistaken so it should find the nearest trident, get its data, add it to a storage ive created, then apply the data from the storage to itself and kill the old trident. so far the function just isnt working and ive been messing around with it for so long now that im unsure as to why trident entities are so unreliable when it comes to targeting them. 1.21.1
Continue to help post