Making an entity not despawn
ok so new problem I want my entity to not despawn at all but cobblemon made it difficult is there a way for me to run the /data merge command with {PersistanceRequired:1b} but only on the entity that spawns on the armor stand? like maybe by executing a command using @n for near entities
execute as @e[type=armor_stand,name="Spawn"] at @s run data marge @n {PersistenceRequired:1b} kill @s[type=armor_stand,name="Spawn"]``` I did this but I it didn't work I think my logic is wrong somewhere