Minecraft Data Packs / Game Mechanic

Slightly Less Hard Hardcore (Hardcore Lives)

  • check_circle Functions
  • 3,874 views, 3 today
  • 522 downloads, 0 today
  • 10
  • 4
  • 9
GalexyEndX's Avatar GalexyEndX
Level 17 : Journeyman Crafter
0
Slightly Less Hard Hardcore add a couple more lives in case you're like me and die within an hour of creating a hardcore world.

By default, SLHHC gives you 3 lives (see configuration below to change this). Each time you die, you lose a life (wow) and you'll get a message in chat telling you how many lives you have left.

You can check your lives by checking the Player List (hold tab) or by running /trigger MyLives.

Installation

Requires the world to be Hardcore! SLHHC depends on you being in spectator mode after dying.
Not tested in a server.

Installing SLHHC is no different than installing any other datapack, just throw it into your world's datapack folder or add it during world generation.

If you're adding the datapack after creating the world, you'll have to quit and rejoin the world after adding it so that it loads.

To make sure you installed it right, check the player list or run the trigger command.

Configuration

To change the lives SLHHC gives you:

  1. Find the SLHHC folder/zip in your datapacks folder.
  2. If it's a zip file, extract it and delete the old zip. Minecraft will load it as a zip, but you can't modify the contents of a zip file, so just use the folder.
  3. Open the folder, navigate to data -> slhhc -> functions, and open load.mcfunction with any text editor
  4. On line 7, there's a 3 (it's the only 3 in there), change that to whatever you want.
  5. Save it.
Afterwards, quit and rejoin your world, and check your life count, and it'll be higher/lower.
CreditVarley for suggesting the idea *after I died less than an hour into my world*
CompatibilityMinecraft 1.18
Tags

Create an account or sign in to comment.

1
07/20/2022 12:54 pm
Level 1 : New Miner
RoboBoy99
RoboBoy99's Avatar
Is there a way I can disable how many hearts are left in the sidebar?
1
05/04/2022 10:23 am
Level 1 : New Miner
AChickenPig
AChickenPig's Avatar
is there a way to get my lives back, just tested my smp and now i have 2 and not 3 while everyone else has 3
1
04/30/2022 12:59 pm
Level 1 : New Miner
Oiraun
Oiraun's Avatar
I set the lives to 100 and when I died my chat got instantly spammed with I had 99 lives left and my gamemode was updated to spectator. Is this because I set the value to high?
1
04/22/2022 12:34 am
Level 1 : New Explorer
Its_Stubby
Its_Stubby's Avatar
If I wanted to add 1 life to a player, what command would I use?
1
04/22/2022 11:03 pm
Level 17 : Journeyman Crafter
GalexyEndX
GalexyEndX's Avatar
(I'm assuming you mean pretending like a player didn't actually die, if you mean changing the lives a player has then look in the Configuration section of the description above)

There isn't a particular command to add a life back, but you can set the number of deaths someone has had so far.

scoreboard players set @p SLHHC-Deaths 0
..............................Player ^.............................^ How many times they supposedly died.
1
04/21/2022 11:49 pm
Level 1 : New Explorer
Its_Stubby
Its_Stubby's Avatar
After trying to recode another pack multiple times over without success, I stumbled upon your pack. I loaded it onto my server and killed myself once because I had naturally died once while the other pack was active. Your pack reduced my "Lives" by one and actually registered everything properly. You have no idea how long I've been trying to figure this out, as I'm someone with little coding experience. Your pack works on servers, without issue.
1
03/21/2022 5:04 pm
Level 1 : New Miner
caikelm
caikelm's Avatar
Does it work on multiplayer?
1
03/28/2022 4:50 pm
Level 17 : Journeyman Crafter
GalexyEndX
GalexyEndX's Avatar
I haven't tested it, but I'm going to assume not.
1
05/04/2022 10:21 am
Level 1 : New Miner
AChickenPig
AChickenPig's Avatar
yes it works
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome