Limit entity spawns

Started by Cosmeticboot on

Topic category: Help with modding (Java Edition)

Last seen on 20:31, 1. Jul 2024
Joined May 2024

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Limit entity spawns

I am making an entity that spawns in deserts, but I am having difficulty with the spawns. I only want one of them to be spawned in at a time, and I can't find a way to despawn others when the original is spawned in. I tried running a procedure that checks a 100 block radius around it for the same entity, but the issue was I believe it counts the original entity, so when I checked it with spawn eggs, it despawned the first entity. Any ideas?