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.

item define skript

Discussion in 'Skript' started by skate7789, Jan 30, 2022.

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

    skate7789 Member

    Joined:
    Jan 26, 2022
    Messages:
    3
    Likes Received:
    0
    Skript Version: 2.6
    Game Version: 1.17.1
    Addons: none
    Full code (Example):

    command /sell:
    trigger:
    if player's tool is "raw mutton" or "black wool":
    send "Complete"

    else:
    send "Fail"

    Problem:
    When i have 1 raw mutton on my hand, it completes but,
    When i have multipe (e.g. 2) raw mutton on my hand, it fails? How to fix plz

    !! IGNORE THE NO SPACES IN SKRIPT !!
     
    #1 skate7789, Jan 30, 2022
    Last edited: Jan 30, 2022
  2. Zhync

    Zhync Active Member

    Joined:
    Feb 11, 2022
    Messages:
    85
    Likes Received:
    5
    Hey, I believe I've encountered this issue in the past, but I did find a workaround. Essentially, save the amount of player's tool to a variable, and set the amount of player's tool in player's inventory to 1. *Then* use the code you're currently using. Just note to use that variable for the amount rather than "amount of player's tool". Hope this helps.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...