undroppable and unremovable item from inventory

  • 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 community!

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

descreetOP

Member
Jan 2, 2024
11
2
3
Basically i created an item stored in a variable:
on load:
set {CustomItem::SkillMaker} to chorus flower with name "&b&lSKILL MAKER" with lore "&7Use this item to craft skills for your morph!" and "&7Some items can be obtained by bosses only!"
I want to make this item undroppable and unremovable from inventory. The item can't leave the player's inventory, it's basically binded, even after death.
 
Basically i created an item stored in a variable:

I want to make this item undroppable and unremovable from inventory. The item can't leave the player's inventory, it's basically binded, even after death.
You can use an on drop event, check if the event item is the item, then cancel the event. You can also make it so that on death, it will calculate how many of this item there is then add that amount of the item to their inventory when the player respawns.