How to check if there are monsters nearby?

Started by MPsantos20 on

Topic category: Help with modding (Java Edition)

Last seen on 18:35, 28. Sep 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to check if there are monsters nearby?

I don't know how to properly check for nearby entities, I want to do something similar to beds mechanic that does not allow the player to do something if there are monsters nearby

Last seen on 18:35, 28. Sep 2024
Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think I figure out. I used…
Tue, 09/10/2024 - 14:21

I think I figure out. I used "Does entity exist at position in a square cube with size <size> of type Monster entity