Jump to content

Is it possible to make a 3 life system (with player nametag colours)? [SKRIPT]


NHJTLive_

Recommended Posts

I want to use a 3 life system like the one used in 3rd life SMP on my Minehut server. (There is a plugin which can do this, but it isn't on Minehut; that's why I'm asking how to do it with Skript), how can this be done?

Edited by NHJTLive_
Link to comment
Share on other sites

15 hours ago, NHJTLive_ said:

I want to use a 3 life system like the one used in 3rd life SMP on my Minehut server. (There is a plugin which can do this, but it isn't on Minehut; that's why I'm asking how to do it with Skript), how can this be done?

This is easily able to be done. Just set a variable to 3 and remove 1 when they die with an on death event.

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

11 hours ago, NHJTLive_ said:

I see. It works for the death counting system, but how about the nametag colour?

You can use the set chat format to use name color. I've made an example below

if {variable.%player%} = 3:
	set chat format to "&a%player%&f: %message%"
if {variable.%player%} = 2:
	set chat format to "&e%player%&f: %message%"
if {variable.%player%} = 1:
	set chat format to "&c%player%&f: %message%"

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Lifestealed | Minecraft Servers
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...