a mod that uses entities as its marker for where it should spawn special mobs isn't working so i decided to write a script that does the spawning for it, unfortunately i need to set nbt flags for the spawned entities to tell them where the thing they were spawned from is. i have everything working but i am having problems when it comes to getting the nbt of more than one entity as here is the thngs i have found
debug card unclaimed - dosn't return required text
debug card claimed - works great as long as i'm OK with it stopping if i'm offline(which i'm not)
command_block - only