Check for nearby entities

Started by Fox_trot on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Check for nearby entities

Hi all,

I'm trying to make a sleeping bag but I require a procedure to check if hostile mobs are nearby, such that the player won't sleep.

How would I go about doing this?

Thanks