Paint's Insomnia Tracker

Paint's Insomnia Tracker

107 Downloads

When you stand on a bed, the actionbar will display how long you've gone without sleeping, and the percentage chance of a phantom pack spawning in the next 60-120 seconds, assuming all other requirements are met. These requirements are:

* The player must not have a block overhead that blocks light in any way; for example, leaves prevent phantoms from spawning as they have a light opacity of 2, but glass does not, as its light opacity is 0.

* You need to be above sea level. In vanilla worlds, this is y=64.

* It needs to be night or a thunderstorm.

* The local difficulty is greater than an unknowable randomly chosen  value between 0.0 and 3.0.

* Adhering to the mob cap is NOT a requirement.

You do not need to skip the night to sleep and reset your insomnia timer.

This tracker displays 7 days and 11 minutes. 1 Minecraft day is 20 minutes.

If you start using this datapack in a Minecraft world you already opened, then it won't be accurate for you until you sleep again. This isn't a problem if you start using it in a brand new world.

Use this function to give a book that explains the datapack.

/function paint:pit/help

Use this function to unload the datapack, so all scoreboard objectives are removed too.

/function paint:pit/unload

Follow @PaintCreates for more creative datapackry