Skip to content

Automatic Datapack Reloading

Trivaxy edited this page Sep 11, 2023 · 1 revision

To accelerate datapack development, Datamancer provides a watcher that will listen for file changes in your datapacks directory. It will automatically reload enabled datapacks when a file is created, deleted or modified.

In singleplayer, this automatic reloading will even take place while your game is paused or you are tabbed out of the game.

The watcher is turned off by default. Using it takes place with the /watch command.

The state of the watcher is persistent across game sessions. You do not have to set it up every time you leave and rejoin your world or server.

/watch start

Starts the watcher.

/watch add <pack id>

Adds the specified datapack to the watchlist. When a change happens inside this datapack, the watcher will detect it and initiate a reload.

/watch remove <pack id>

Removes the specified datapack from the watchlist. The watcher will not respond to changes inside the datapack.

/watch stop

Disables the watcher, making it not listen to any changes. This will not clear the watchlist, so you do not have to manually add your packs again when you restart the watcher.

/watch list

Displays the watchlist.