• check_circle Functions
  • 5,594 views, 0 today
  • 742 downloads, 0 today
  • 22
  • 21
  • 11
Lostya
Level 34 : Artisan Miner
12
This datapack adds a life count for all players.
✔ This datapack is fully multiplayer compatible.
This datapack is compatible with gamerule doImmediateRespawn true.

Features:
1. Adds a life count.
2. On death spawns glass block particles and some blue particles, also adds pitched down glass breaking sound and pitched down conduit deactivation sound.
3. On respawn makes a title to indicate that you have died and how many lives are left.
4. If you lost your last life, it gives you spectator mode, tells you "game over" and plays ward music disc (fully) upon last death.
5. The spectators are being highlighted as ghosts using blue dust particles (only "0-life" spectators, not all of them).

Usage:
• Default life count is 3, but you can change it in datapack files:
data\lives\functions\load.mcfunction
find line that starts with # LIVES DEFAULT, and the next line is setting the default number.
To change it, change the last number on execute as @a... line from 3 to number you need. It will set the new number to new players, that weren't on server after datapack installation.
• If you want to have life count on sidebar, tablist or under nicknames, then use /scoreboard objectives setdisplay [​place where you need it] lifes.lifes.
• There is also optional feature to give those spectators blindness and kind of void particles (but with this they still can move; it's up to you to modify the datapack if you want). To turn it on, navigate to data\lifes\functions\tick.mcfunction, locate # While 0 lives, then here find 2 lines that have # before them, remove it and reload.
• If you need to change someone's life count artificially, you can just use /scoreboard players set [​person] lifes.lifes [​life amount].
Sorry for this, just too lazy to add a config, at least for now.


Copyright:
You are allowed to do anything. Crediting me is fully optional.

Uninstalling: run /function lives:uninstall first to remove all related stuff.
CompatibilityMinecraft 1.18
toMinecraft 1.19
Tags

1 Update Logs

Grammar fix: : by Lostya 07/16/2022 5:21:07 amJul 16th, 2022

English is not my native language. I thought plural for "life" is "lifes". I was wrong. Thanks to Plastisheep
Changed "lifes" to "lives" everywhere, excluding internal scoreboard names, so you can safely update without losing any life counts.
Changed:
• Name of the datapack
• Description of the datapack
• File name of the datapack
• All comments in mcfunction files
• Titles
• Showcase image gallery titles
• Internal datapack folder name (means that functions have now lives: prefix instead of lifes:)

Create an account or sign in to comment.

pwr dog hp
08/04/2023 9:35 pm
Level 1 : New Miner
is there a item to revive the player
1
righttim
07/01/2023 3:39 pm
Level 1 : New Miner
is there a way to give a player one of your lives? if not do u think of adding something like tha?
1
Golden_Dog64
08/27/2022 1:41 pm
Level 2 : Apprentice Miner
history
So after dying once, i was put in spectator well before i lost three lives

Edit: figured it out, i had to turn it on first. im so dumb
2
kpXicon
07/21/2022 11:12 pm
Level 38 : Artisan Bunny
such a useful datapack, Here's your diamond
2
NatsMinecraft
07/17/2022 7:04 pm
Level 33 : Artisan Architect
This is literally hardcore mode
2
MJ_mcMaster
07/18/2022 7:12 am
Level 57 : Grandmaster uwu Dinosaur
Except for the fact that you have at least a bit more lives
2
Apip22
07/16/2022 1:20 am
Level 33 : Artisan Crafter
Bro maybe this is whats my brother needs
2
Plastisheep
07/15/2022 9:12 pm
Level 1 : New Collective
I'm gonna stop you right there... "Lifes" isn't a real word. The word you are looking for is "Lives"
3
Lostya
07/16/2022 2:34 am
Level 34 : Artisan Miner
history
yea sorry english is not my native, didnt know. im not home rn but im gonna fix all of that
1
Lostya
07/16/2022 10:27 am
Level 34 : Artisan Miner
fixed
1

Welcome