How do I add slowness to player when time is midnight, and remove it when the player sleeps?

Started by cqzmo on

Topic category: Help with Minecraft modding (Java Edition)

Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I add slowness to player when time is midnight, and remove it when the player sleeps?

Basically, I want to make an exhaustion mod where once the time hits midnight, the player gets slowness effect until they sleep.

Joined Oct 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If world time is 18000, giveā€¦
Tue, 12/12/2023 - 11:44

If world time is 18000, give slowness. Procedure, player goes to sleep, remove slowness.