Solved Amount of player's held item

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Squarebuilder

Member
Aug 6, 2020
10
0
1
23
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:
on right-click:
    set {_variable} to amount of player's held item in player's inventory
    if player's held item is {_variable} of oak log named "&6Cool Log":
[...]

I am very open to suggestions.

Have a nice day and thank you in advance.
 
Status
Not open for further replies.