- check_circle Functions
- 12,948 views, 7 today
- 1,806 downloads, 1 today
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!
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 livesDark-green +5Green 4Aqua 3Yellow 2Red 1
- 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.
- Open Minecraft and create a new world. In the world creation menu, find the "Data Packs" button, click it.
- 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.
- 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).
- 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:
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 lives Number of deaths 5041322314
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:
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 lives | Number 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.
Credit | Logo 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. |
Compatibility | Minecraft 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.
- If the player has more than 5 lives, their nametag colour will be dark green.
That's it. Really.
5406467
119
Create an account or sign in to comment.
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.
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.
It would be nice if you could get your life back
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?