Entity despawning when looked strait at

Started by SonicMax on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity despawning when looked strait at
Wed, 10/22/2025 - 18:32 (edited)

Could anybody help me with making some code that when you look directly at a certain entity it despawns (It wouldn't despawn if it's in your peripherals). I've tried making code that does that but it always just simply despawns the entity when it's on screen...

Here's what I did for making the entity despawn when you look at it (it simply just despawns on its own...):

https://imgur.com/gallery/9sak9TP

Edited by SonicMax on Wed, 10/22/2025 - 18:32
Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
which versions are you using…
Wed, 10/22/2025 - 18:43

which versions are you using? MCreator and Minecraft