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 Amount of player's held item

Discussion in 'Skript' started by Squarebuilder, May 14, 2022.

  1. Squarebuilder

    Squarebuilder Member

    Joined:
    Aug 6, 2020
    Messages:
    10
    Likes Received:
    0
    Hello,

    i want to check how many items the player is holding (in his hand) and i don't know how or if that works.

    I know how to query how many items (of the held item) he has in inventory.
    It works like this:
    Code (Text):
    1. on right-click:
    2.     set {_variable} to amount of player's held item in player's inventory
    3.     if player's held item is {_variable} of oak log named "&6Cool Log":
    4. [...]
    I am very open to suggestions.

    Have a nice day and thank you in advance.
     
  2. Best Answer:
    Post #2 by Practice, May 14, 2022
  3. Practice

    Practice Member

    Joined:
    Apr 23, 2022
    Messages:
    37
    Likes Received:
    1
    item amount of player's tool
     
  4. Squarebuilder

    Squarebuilder Member

    Joined:
    Aug 6, 2020
    Messages:
    10
    Likes Received:
    0
    Works, thanks.
     

Share This Page

Loading...