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.

Removing items with and without lores

Discussion in 'Skript' started by SoMuchWessel, Sep 26, 2019.

Thread Status:
Not open for further replies.
  1. SoMuchWessel

    SoMuchWessel Active Member

    Joined:
    Apr 3, 2017
    Messages:
    147
    Likes Received:
    2
    Hello guys,

    I was trying to make a shop like skript, where the currency is emeralds.
    So i wrote this simple code:

    Code (Text):
    1. command /pay <integer>:
    2.     trigger:
    3.         remove arg-1 of emerald from player's inventory
    This works, but the problem is: If a emerald has a lore or a name, it does not get removed.
    Is there a way to 'ignore' the lores and the names of the emeralds? So even if 1 emerald has a name, another has a lore and another is normal, and the price is 3 emeralds, that they will all get removed?
    --- Double Post Merged, Sep 29, 2019, Original Post Date: Sep 26, 2019 ---
    I still have not found a solution for this problem.
     
  2. Ronnoc2w

    Ronnoc2w Member

    Joined:
    Feb 20, 2019
    Messages:
    15
    Likes Received:
    0
    Try it with:

    Code (Text):
    1. command /pay <integer>:
    2.     trigger:
    3.         remove arg-1 of emerald without any NBT from player's inventory
     
  3. SoMuchWessel

    SoMuchWessel Active Member

    Joined:
    Apr 3, 2017
    Messages:
    147
    Likes Received:
    2
    it does not work, it does not remove anything from the inventory. No errors
     
Thread Status:
Not open for further replies.

Share This Page

Loading...