Minecraft Data Packs / Game Mechanic

Fatigue (Grow weak from lack of sleep)

  • check_circle Functions
  • 8,829 views, 2 today
  • 1,878 downloads, 0 today
  • 22
  • 18
  • 7
fnar's Avatar fnar
Level 42 : Master Miner
19
This datapack applies weakness, mining fatigue, and slowness to players who don't sleep.

The effects begin at level 0 after the player has been awake for 1 minecraft day (~ 20 minutes/ 24000 ticks), and increases in intensity the following nights.

The effects cap after three nights without sleep.

If a player goes 10 whole days without sleep, they die from fatigue.

Please leave a comment with your thoughts.
CompatibilityMinecraft 1.14
Tags

Create an account or sign in to comment.

1
01/03/2023 5:23 pmhistory
Level 1 : New Miner
zZParabellumZz
zZParabellumZz's Avatar
Would you be willing to update this datapack to 1.19? We'd appreciate it very much. Realism FTW!!!
1
02/06/2020 1:47 am
Level 11 : Journeyman Miner
Luis_Ur
Luis_Ur's Avatar
Does it give a notification how many days have passed since the start of the counter? As it's easy to loose track of time down in mine, and probably would need to combine with a Sleep at Day/Nap data pack so a player can reset at convince like one would realistically. Overall I like the idea and would add incentive to beds and pacing, just it would be so easy to loose track of time and die.
2
09/29/2019 6:15 am
Level 1 : New Miner
miner_reminer
miner_reminer's Avatar
Made an account just to ask if you could describe how I might be able to remove the requirement for an empty chest slot. I enjoy the difficulty of the datapack, but having to unequipt my chestpiece every night is a bit too tedious for me. Thanks!
1
09/29/2019 7:39 pmhistory
Level 42 : Master Miner
fnar
fnar's Avatar
This shouldn't be too crazy to disable. Try the following:



First, navigate to https://github.com/srwaggon/minecraft_fatigue



This should be equivalent to the datapack you have downloaded and unzipped.

Look at the file: "data/minecraft/tags/functions/tick.json"

Inside of this file, you'll see the following code:


{
"values":[
"fnar_fatigue:fatigue",
"fnar_fatigue:rest"
]
}

Change this to the following (or copy and paste):

{
"values":[
"fnar_fatigue:fatigue"
]
}

Please note the absence of the comma at the end of the line that says "fnar_fatigue:fatigue".If you leave that comma this will not work !

After you've made that change, you should be able to save it, resume playing and reload your datapacks (using the command /reload)!

Please let me know if this worked for you!

Happy Minecrafting!
2
10/01/2019 9:15 am
Level 1 : New Miner
miner_reminer
miner_reminer's Avatar
Works like a charm. Thanks for the help! :D
2
10/04/2019 9:50 pm
Level 42 : Master Miner
fnar
fnar's Avatar
Happy to help 😀
1
09/12/2019 1:06 pm
Level 35 : Artisan Artist
knavereddy
knavereddy's Avatar
If this was an actual feature in the game, I'm sure many many people would quit
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome