How would I make entity watch you sleep

Started by modbroz on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I make entity watch you sleep

Anyone know how I would do this

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
any help is appreciated
Sun, 11/23/2025 - 15:04

any help is appreciated

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you be more specific, do…
Sun, 11/23/2025 - 20:44

Can you be more specific, do you want it to spawn when so sleep or teleport to you when you sleep or just look at you when you sleep wherever it is.

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I want it spawn infront of…
Sun, 11/23/2025 - 21:20

I want it spawn infront of you when you sleep and disappear when you wake up

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry bout the grammar lol…
Sun, 11/23/2025 - 21:21

Sorry bout the grammar lol didn’t realize the typos

Joined Feb 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This should be the only code…
Mon, 11/24/2025 - 07:52

This should be the only code you need, although you will need to tweak it so it works in the intended way: https://imgur.com/a/P3ZkOQz

Joined Jun 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thanks lots!
Mon, 11/24/2025 - 14:16

Thanks lots!