Check for nearby entities

Started by Fox_trot on

Topic category: Help with modding (Java Edition)

Last seen on 08:07, 16. Dec 2019
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