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

Started by Superkota on

Topic category: Help with modding (Java Edition)

Last seen on 18:16, 22. Mar 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

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

umm frame your psuedo-code properly please

Last seen on 11:34, 9. Oct 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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 18:16, 22. Mar 2024
Joined Jun 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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?