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.

Solved Is there any way to use mmoitems in skript?

Discussion in 'Skript' started by YK_DZ, Feb 16, 2022.

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

    YK_DZ Member

    Joined:
    Jan 14, 2022
    Messages:
    24
    Likes Received:
    0
    I want to use item from plugin MMOItems in my skript, for example:
    Code (Text):
    1. if amount of mmo item "archaeological_shovel" in player's inventory < 1:
    Is there any skript addon or way can let me do this?
    I think I can make a function to check item nbt to do this, but I am still thinking about how to make it.
     
  2. Best Answer:
    Post #2 by timeis, Feb 16, 2022
  3. timeis

    timeis Member

    Joined:
    May 19, 2021
    Messages:
    27
    Likes Received:
    1
    They might have some kinda id in nbt

    So you could maybe try
    Code (Text):
    1. if "%nbt of player's tool%" contains "archaeological_shovel"
     
  4. YK_DZ

    YK_DZ Member

    Joined:
    Jan 14, 2022
    Messages:
    24
    Likes Received:
    0
    Oh that is worked! Thank you for your help!
    Code (Text):
    1. if nbt of {_item} contains "archaeological_shovel":
    2. # NBT tag is MMOITEMS_ITEM_ID
     
Thread Status:
Not open for further replies.

Share This Page

Loading...