How do I remove only enchanted items from a player's 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 comminuty!

    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!

Duomax

New Member
May 21, 2023
6
1
3
25
I want to remove only enchanted, or only named, if that's possible, from the player's inventory, how do I do that?
 
1) Removing named item from player's inventory:
Code:
remove stone named "&f&lSpecial Stone" from player's inventory

2) Removing enchanted item from player's inventory:
Code:
remove enchanted stone from player's inventory

I haven't tested these in the latest version or without addons. You might need some basic addons (skquery, skbee, etc), not sure or it might not work in newest version. Let me know if they do not work.