Data Packs Quality of Life

Paint's Insomnia Tracker (26.1.2 & 1.21.11)

  • 252 views 2 today
  • save_alt 10 downloads
Compatibility
Minecraft 1.21
Changes include
  • Functions
  • 1
  • 0
PaintTheFuture
Lvl 49Master Artist Wizard
50
The datapack says "for 1.21.11" but there wasn't any reason for me to make any changes for it to work in 26.1.2. Still works great!

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.


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 remove all scoreboard objectives so you can disable the datapack without any trace left behind.

/function paint:pit/unload

More like this

  Have something to say?

Welcome