How do I check if entity even exists in the world?

Started by Superkota on Tue, 07/12/2022 - 10:44

Topic category: Help with modding (Java Edition)

Last seen on 07:43, 2. Oct 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How do I check if entity even exists in the world?
Tue, 07/12/2022 - 10:45 (edited)

I want to make this procedure

On key pressed AND if entity type (Entity) is in the world, do explode at x x y y z z power 10 break.

Edited by Superkota on Tue, 07/12/2022 - 10:45
Last seen on 16:12, 3. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
umm frame your psuedo-code…
Sat, 07/16/2022 - 04:17

umm frame your psuedo-code properly please

Last seen on 16:12, 3. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
and i think easiest way to…
Sat, 07/16/2022 - 04:18

and i think easiest way to do it is to check for the mob in a really large cube region say 200x200 blocks or more .. make sure to use a number that wont lag

Last seen on 07:43, 2. Oct 2022
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
But how do i check it in a…
Sat, 07/16/2022 - 06:27

But how do i check it in a radius? And won't this key pressed procedure apply on this entity?