• check_circle Functions
  • 5,081 views, 3 today
  • 685 downloads, 0 today
  • 21
  • 20
  • 11
Lostya's Avatar Lostya
Level 33 : 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
pwr dog hp's Avatar
is there a item to revive the player
1
righttim
07/01/2023 3:39 pm
Level 1 : New Miner
righttim's Avatar
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
Golden_Dog64's 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
kpXicon
07/21/2022 11:12 pm
Level 37 : Artisan Bunny
kpXicon's Avatar
such a useful datapack, Here's your diamond
2
NatsMinecraft
07/17/2022 7:04 pm
Level 31 : Artisan Architect
NatsMinecraft's Avatar
This is literally hardcore mode
2
MJ_mcMaster
07/18/2022 7:12 am
Level 56 : Grandmaster Lego Builder
MJ_mcMaster's Avatar
Except for the fact that you have at least a bit more lives
2
Apip22
07/16/2022 1:20 am
Level 32 : Artisan Crafter
Apip22's Avatar
Bro maybe this is whats my brother needs
2
Plastisheep
07/15/2022 9:12 pm
Level 1 : New Collective
Plastisheep's Avatar
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 33 : Artisan Miner
history
Lostya's Avatar
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 33 : Artisan Miner
Lostya's Avatar
fixed
1
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome