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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can‘t remove custom named items from inventory

Discussion in 'Skript' started by GemsMC, Feb 9, 2020.

  1. GemsMC

    GemsMC Member

    Joined:
    Feb 8, 2020
    Messages:
    17
    Likes Received:
    1
    Hey, I’m trying to remove a custom named pickaxe from a player’s inventory but this:
    Code (Text):
    1. remove 1 diamond pickaxe named “&5Test” from player’s inventory
    Does not work for me :emoji_frowning: No errors, it just does not remove the item.
    And I have to do it like so because I can’t use
    Code (Text):
    1. delete player’s held item
    because I can’t use it like that in my skript.

    Would be nice for a answer
     
  2. Maltini

    Maltini Member

    Joined:
    Feb 9, 2020
    Messages:
    1
    Likes Received:
    0
    Hello, test this :
    remove 1 diamond pickaxe named "&5Test" from player
     
  3. Florenthz

    Florenthz Member

    Joined:
    Dec 5, 2017
    Messages:
    10
    Likes Received:
    0
    Hi there, doesnt works for 1.15.2 :emoji_frowning:
     
  4. Baezor

    Baezor Member

    Joined:
    Jan 3, 2020
    Messages:
    6
    Likes Received:
    0
    Weird, I have a shop gui and I used this in a function.

    Code (Text):
    1. remove 1 oak log named "&7Oak Log" with lore "&7", "&fA common material farmed", "&ffrom oak trees!", "&7" and "&7&lCOMMON" from {_p}

    It works for me! Maybe you can edit it and try to make it work. Also, if the item has a lore, you have to specify it!
     
Loading...