Solved Custom enchants

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

ImMeh

Member
Jul 14, 2019
11
0
1
22
Is there a way to check if a item, is clicked with another item? Like if a hoe is clicked with a book.

I have tried:
Code:
on inventory click:
  if clicked-item is dirt:
    if cursor-slot is stone:
 
Code:
on inventory click:
    if event-item is dirt:
        if player's cursor slot is stone:
            # do stuff
 
No errors but it doesn't work. If I remove "if player's cursor slot is stone:" it works just when i click. But if i remove the "if event-item is dirt:" nothing happens. If it works for you, could i please get a list of all your addons?
[doublepost=1589523090,1589522616][/doublepost]Thank you for the advice! I found out how:
Code:
on inventory click:
    if clicked item is hoe:
        if clicked cursor is book:
            send "Clicked"
 
Status
Not open for further replies.