Holding a specify item = has KeepInventory mode

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

伊藤布哥

Member
Jul 22, 2017
10
0
0
25
Can anyone code that for me? pls this is real fun for every server:emoji_slight_smile:
what I want is when you holding a specify item and you are into a KeepInventory mode, once you dead,
that item will be disappear cause by your death, the Item only get onetime to use,
like a "Totem of Undying", but I wanna use it on KeepInventory
 
code_language.skript:
On death:
    If player is holding a beacon named "&aTotem Of Undying":
        remove 1 beacon named "&aTotem Of Undying" from player's inventory
        Cancel drops