modify(e, 'persistence')
Syntax
modify(entity, 'persistence', bool)
Sets the entity persistence tag to true (default) or false. Only affects
mobs. Persistent mobs don’t despawn and don’t count towards the mobcap.
modify(entity, 'persistence', bool)
Sets the entity persistence tag to true (default) or false. Only affects
mobs. Persistent mobs don’t despawn and don’t count towards the mobcap.