item define skript

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

skate7789

Member
Jan 26, 2022
3
0
1
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 !!
 
Last edited:
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.
 
Status
Not open for further replies.