Have a trader naturally spawn or summon one with DespawnDelay
use this command to make them persistence: /data merge entity @n[type=wandering_trader] {PersistenceRequired:1b}
Once DespawnDelay hits is 0 the trader will despawn no matter if persistence is required
Hi!
Thank you for your report!
We're already tracking this issue at MC-143982, so I will resolve and link this ticket as a Duplicate.
I suggest also to browse through the main issue for potential fixes.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki