• check_circle Functions
  • 4,413 views, 1 today
  • 622 downloads, 0 today
  • 20
  • 19
  • 11
Lostya avatar Lostya
Level 32 : 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.

1
08/04/2023 9:35 pm
Level 1 : New Miner
pwr dog hp
pwr dog hp avatar
is there a item to revive the player
1
07/01/2023 3:39 pm
Level 1 : New Miner
righttim
righttim avatar
is there a way to give a player one of your lives? if not do u think of adding something like tha?
2
08/27/2022 1:41 pmhistory
Level 2 : Apprentice Miner
Golden_Dog64
Golden_Dog64 avatar
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
07/21/2022 11:12 pm
Level 36 : Artisan Bunny
kpXicon
kpXicon avatar
such a useful datapack, Here's your diamond
2
07/17/2022 7:04 pm
Level 29 : Expert Architect
NatsMinecraft
NatsMinecraft avatar
This is literally hardcore mode
2
07/18/2022 7:12 am
Level 55 : Grandmaster Lego Builder
MJ_mcMaster
MJ_mcMaster avatar
Except for the fact that you have at least a bit more lives
2
07/16/2022 1:20 am
Level 31 : Artisan Crafter
Apip22
Apip22 avatar
Bro maybe this is whats my brother needs
3
07/15/2022 9:12 pm
Level 1 : New Collective
Plastisheep
Plastisheep avatar
I'm gonna stop you right there... "Lifes" isn't a real word. The word you are looking for is "Lives"
1
07/16/2022 2:34 amhistory
Level 32 : Artisan Miner
Lostya
Lostya avatar
yea sorry english is not my native, didnt know. im not home rn but im gonna fix all of that
1
07/16/2022 10:27 am
Level 32 : Artisan Miner
Lostya
Lostya avatar
fixed
Planet Minecraft

Website

© 2010 - 2023
www.planetminecraft.com

Welcome