Don't Sleep

Don't Sleep

If a player needs the night on a multiplayer server, they can use a command to remind other players not to sleep.

471 downloads 3 followers

Don't Sleep

Download: Modrinth

For minecraft 26.1 - 26.3!

Allows players to remind others not to sleep bu using the command /trigger Dont_Sleep!

Features

  • Displayes who is sleeping in chat.
  • Players can toggle if they need the night using the command /trigger Dont_Sleep!
  • Automatically toggles off in the morning or if the player people sleeps/leaves.
  • If a player sleeps while the toggle is active, they will hear an alarm and see bold text telling them that someone needs the night.

Preview

A gif demonstrating the datapack.

Wiki

Installing:

Insert the zip file into your datapacks folder.

Uninstalling:

Run the command /function dont_sleep:uninstall and delete the zip file.

Commands:

Command Descriptions
/trigger Dont_Sleep Toggle Dont Sleep
/function dont_sleep:uninstall Uninstalls datapack

Contributing

Clone the repository and install the development tools in a Python virtual environment:

git clone https://github.com/DominoWWW/Dont-Sleep.git
cd Dont-Sleep
python -m venv .venv
source .venv/bin/activate
python -m pip install beet bolt
build

Build the datapack with:

beet build
Testing

Individual Tests:
You need carpet mod installed to run the tests.

/test run dont_sleep:trigger
/test run dont_sleep:time_cancels_trigger
/test run dont_sleep:sleep_cancels_trigger
/test run dont_sleep:leave_cancels_trigger

Run test server:
You need carpet mod and GameTest Fabric installed on a fabric server Test server start command:

java -DbundlerMainClass="net.minecraft.gametest.Main" -jar server.jar --packs "<path/to/dir/with/the/datapack>"

No gallery available for this project.

Version Minecraft Loader Download

Don't Sleep v1.2.0 26.1-26.3

dont-sleep_v1.2.0+mod

26.1, 26.1.1, 26.1.2, 26.2, 26.3
fabric, forge, neoforge, quilt
Download

Don't Sleep v1.2.0 26.1-26.3

dont-sleep_v1.2.0

26.1, 26.1.1, 26.1.2, 26.2, 26.3
datapack
Download

Dont-Sleep_v1.1_1.21-1.21.11

dont-sleep_v1.1+mod

1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
fabric, forge, neoforge, quilt
Download

Dont-Sleep_v1.1_1.21-1.21.11

dont-sleep_v1.1

1.21, 1.21.1, 1.21.10, 1.21.11, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
datapack
Download

Dont-Sleep_v1.0_1.21-1.21.11

dont-sleep_v1.0

1.21, 1.21.1, 1.21.10, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9
datapack
Download