How do I stop an entity from despawning when in an enclosed area?

Started by Aroyki on

Topic category: Help with modding (Java Edition)

Last seen on 21:58, 23. Nov 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I stop an entity from despawning when in an enclosed area?

(Maybe this is just something with flying entities, but, I'm a bit confused as parrots don't despawn while in a pen.)

Is there anyway to prevent despawning when a custom mob cannot move more then 10 blocks each direction?