Minecraft Data Packs / Game Mechanic

HardLives Datapack: Hardcore with Lives!

  • check_circle Functions
  • 12,090 views, 13 today
  • 1,652 downloads, 3 today
  • 27
  • 25
  • 24
Zhephyr_'s Avatar Zhephyr_
Level 26 : Expert Crafter
6

The HardLives Datapack: Play Hardcore with 5 Lives or less, you decide!

Have you ever wanted to play Hardcore but struggled to get past the hour mark without dying? If so, then this data pack is a perfect fit for you!
Come back from the death for up to five times before having to say goodbye to your precious Hardcore world!

Revival


This idea was originally from DupliCat. His datapack can be found at: Hardcore with 5 Lives 1.17 Minecraft Data Pack (planetminecraft.com)

The datapack’s features are inspired by YouTuber Grian’s series, Third life.


Features:  

  • Come back from the death!: Players get 5 lives each (More on how to modify this number later). Once they have reached their final live, and subsequently died, their death would be permanent . So dying with one life left leads to perma-death.
  • Coloured nametags: The colour of your nametag indicates the number of lives you have:
    Colour
    Number of lives
    Dark-green
    +5
    Green
    4
    Aqua
    3
    Yellow
    2
    Red
    1
    *Your remaining number of lives will also appear on the tab, right next to your name!

  • Multiplayer compatible (Needs further testing but everything functions correctly, so far)


Set-up and Installation


  The installation procedure is the same as with any other datapack. If you already know how to install datapacks into your worlds, you may skip this section without any concerns.

  For those who do not know how to install datapacks, here's how you do it:

  For new worlds:
Download the .zip file. You can find this file above and under the diamond and heart icons.
  1. Open Minecraft and create a new world. In the world creation menu, find the "Data Packs" button, click it.
  2. A menu resembling the resource pack menu will appear, click on "Open Pack Folder" below, and extract the file you downloaded previously into this folder.
  3. Hover over the cobblestone icon until an arrow pointing to the right appears. Click this arrow, and the datapack will move from the Available section to the Selected section. Once done, click done (unintended rhyme).
  4. Create your world. Once it has loaded check the tab, if your name is coloured, then everything is working corrctly! You are now good to go.

  For pre-existing worlds:
  
  
Since your world has already been created, you'll have to do the searching the folder bit manually.

  After you have downloaded the .zip file,

  1. Find the .minecraft folder by:

    Pressing Windows key + R, then type %appdata%, and enter. (For Windows)

    
Going to ~/Library/Application Support/minecraft. (For Mac)
    
    
Opening a file browser, going to your home folder , and then finding .minecraft. (For Linux)

  2. Open the folder up and locate the "saves" folder. Once in, search your world by name, and open it up. A folder titled "datapacks" should be inside, open it.

  3. Extract "hardcore_with_lives.zip" into this folder.

  4. Open Minecraft and enter your world. Type /reload in the chat (If an error appears, you need to turn cheats on by pressing Esc, clicking on Open to Lan, turn Allow Cheats from OFF to ON . If you are in a server you can do this on the console).

  5. Once it has loaded check the tab, if your name is coloured, then everything is working corrctly! You are free to play.

  

Q: How do I change the initial number of lives? Five are way too many, I want excitement!


  Well. If you are such an adventurous soul, I'm pleased to announce that you can easily change this quantity without much trouble.

  Steps:
  1. Go to: hardcore_with_lives\data\hardlives\functions, and find the file titled newplayer.mcfunction.
  
2. Open it and locate the commands "scoreboard players set" as shown by the picture below:
    HardLives Datapack: Hardcore with Lives! Minecraft Data Pack
  3. Once you've found the commands, it is time to change the numbers! But you can't just change the number of lives, you also need to change the number of deaths      accordingly. Follow the table below to get appropriate number of deaths based upon your desired number of lives. Or you can simply find this number by using a simple formula -> 5 - (Number of desired lives) = Number of deaths.  
     
  • Desired number of livesNumber of deaths
    5
    0
    4
    1
    3
    2
    2
    3
    1
    4


  4. Save the changes, and you are done! You can now use your modified version of the datapack in your hardcore world.



NEW MINI-UPDATE OPTION: Setting more than 5 lives:


   
  
  Ignoring the question of : "Why would you want more than five lives? Just play survival mode". This question aside, there is now a way to accomplish this!

  Just follow the steps above letter by letter, until you've reached step 3 and are about to set the values:

  HardLives Datapack: Hardcore with Lives! Minecraft Data Pack
  
  As you might have guessed in order to set the number of lives to a value above 5, you will need to change Deaths, once again. The process follows the exact same steps as above, only this time the number of deaths will be negative instead of positive. You can follow the table below to get the value of Deaths, or do your own math using the same exact formula -> Number of deaths = 5 - (Number of desired lives).

  
Desired number of livesNumber of Deaths
6
-1
7
-2
8
-3
9
-4
10
-5





  This patterns continues as your number of lives increases. The table only shows the values up to 10 since, really, if you are going to play with more than 10 lives, you might as well play survival instead.

  

Additional Notes:


  • This is my first datapack. If you encounter any bugs or experience lag due to the datapack, please do let me know in the comments section.
  • The datapack has not been tested well in servers. If you find something is off, again, you can leave it down as a comment.
  • And of course, any suggestions or ideas on how to improve are always welcomed and appreciated!




  Have fun, and don't die.
CreditLogo was taken from: https://screenrant.com/minecraft-hardcore-mode-biggest-iron-farm/amp/, which was slightly modified with the added text "with lives!" in yellow.
CompatibilityMinecraft 1.18
Tags

1 Update Logs

Mini-update #1 : by Zhephyr_ 12/15/2021 4:55:15 pmDec 15th, 2021

-Datapack now supports more than 5 lives

- If the player has more than 5 lives, their nametag colour will be dark green.



That's it. Really.

Create an account or sign in to comment.

Its_Stubby
04/13/2022 2:43 pm
Level 1 : New Explorer
Its_Stubby's Avatar
I'm playing on a 1.18.2 fabric server and the respawn mechanic works, I just can't seem to get the lives to go down. Everyone on the server that has died still has 5 lives in the TAB menu, and dark green name text. The server has mods installed that improve performance, so that may be the culprit, I'm just wondering if you know anything else that might cause the issues? The performance mods are Phosphorous and Lithium, if that helps.

Edit: I also tested the datapack in a singleplayer world with another performance mod called Sodium, by the same mod author, installed. Datapack worked fine, but as soon as it was on the server it wasn't working properly. I also downloaded the exact world from my server with the pack and mods installed, and when I died it put me in spectator, I have no clue what to think now.
1
Its_Stubby
04/13/2022 10:25 pm
Level 1 : New Explorer
Its_Stubby's Avatar
I think the order of the commands might have an effect on the server. Like maybe I have the "gamemode survival @s" should be moved down the code list? Idk I'm rusty with Java but I'll give it a shot.

Update: After hours of relearning Java and failing to solve the issue I think the Apex server is simply not loading the scoreboard right. It never updated the "Lives" objective and therefor never decreases the number of lives you have. Is there a way to make the respawn mechanic entirely dependent on the "Deaths" objective? Or maybe a way to force the server to update the "Lives" objective by putting the line of code in a different spot? Honestly have no clue why it would work on a LAN server and not work on an external server. I simply don't know enough about server world rendering and code in order to fix this.
1
CzesioWiesio
03/26/2022 11:05 am
Level 1 : New Miner
CzesioWiesio's Avatar
It would be nice if you could get your life back
1
MarioV351
01/05/2022 5:53 pm
Level 1 : New Miner
MarioV351's Avatar
Mistakes were made, is there any way to add more lives to a specific player?
1
Zhephyr_
01/06/2022 2:00 pm
Level 26 : Expert Crafter
Zhephyr_'s Avatar
The easiest fix to that problem is to use the command /scoreboard players remove <target> Deaths 1, and then he has to be in spectator mode for his lives to update.
2
MarioV351
12/27/2021 10:57 am
Level 1 : New Miner
MarioV351's Avatar
Hello!

I'm trying to use this datapack with another one that also needs the color of the names, but now I can't see how many lives I have left. Is there another way of seeing how many lives you have other than the name color?
1
Zhephyr_
12/31/2021 3:25 am
Level 26 : Expert Crafter
history
Zhephyr_'s Avatar
There is a number next to your name on the tab which indicates the amount of lives. Unless your datapack uses the tab to show other scores, you should be able to see how many lives you've got from the tab.
2
jamocato
12/27/2021 3:42 am
Level 1 : New Miner
jamocato's Avatar
Hey anyone be able to help me, im using a 1.18.1 server with friends, Hard Lives gives us a blue name as we are only using 3 lives, and when we die in hardcore we can respawn but our lives dont go down and there is no effect played, we've /function and reloaded and reinstalled it, nothing is working :(
1
Zhephyr_
12/31/2021 3:25 am
Level 26 : Expert Crafter
history
Zhephyr_'s Avatar
Sorry for the delayed response. I see that you've modified some of the datapack's files, I could look at your files to see if there is anything wrong if you can send them to me. As far as I've tested, the datapack works perfectly with 3 players, so it is strange to see errors as it shouldn't matter how many players there are. But just to be sure, how many players does your server have? And do you respawn after 3 deaths?
1
jamocato
01/02/2022 6:51 am
Level 1 : New Miner
jamocato's Avatar
Hi. We have a max of 8 players, and when we die it says spectate then respawns us, but the lives dont go down and we can die over and over and nothing changes.
1

Welcome