Jump to content

stop drop of specified item's on death


BOXEY

Recommended Posts

hello i am making a life skript rn and need to know how to stop the player from drop the life counter in there inventory

 

on death:
	if victim is a player:
		loop victim's inventory:
			if loop-value is totem of undying named "&3&lLife&8 | &7%{life.%victim%}%":
				set loop-slot to air

that's my code rn

Link to comment
Share on other sites

on first join:
    set {lives::%players uuid%} to 3
    give player a totem of undying named "&cLives | %{lives::%players uuid%}%"
on death:
    if victim is a player:
        remove 1 from {live::%players uuid%}
        remove all tomtem of undying named "&cLive | %{lives::%players uuid%}%"
        give player a totem of undying named "&cLives | %{lives::%players uuid%}%"

this should work (might not knowing me) untested

-------------------------------------------------------------------

NO RANK ALL THE WAY

---------------------------------------------------------------------

play.koolkidzmc.com (Velocity + Pufferfish FTW)
discord.koolkidzmc.com

Spoiler

/_(•v•)_7

image_2021-07-26_104856.png.7740cf6322d3693f332894c1e8485060.png


image_2021-07-26_104457.png

pogies.PNG

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...