Help with item amount of player's tool

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

    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.

pendar7

Member
Dec 31, 2021
4
0
1
I am having an issue with my skripts that check if a player's tool is a certain item. The skript only works when the player's tool has 1 of whatever item in the slot....

for example (ignore there not being indentations):

on right click:
if player's tool is bread named "bread" with the lore "bread":
remove 1 from item amount of player's tool

--

If I were to be holding 1 bread and right clicking, the skript works, whereas if I am holding more than one bread the skript does not work. Is there something I am doing wrong / something to fix this issue?
 
What version of Spigot and Skript do you use? This works perfectly fine for me.
 
Status
Not open for further replies.