crafting box click type

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

daniel24

Member
Sep 21, 2022
3
0
1
28
Code:
on crafting:
  if event-item is iron sword:
    if click type is left mouse with shift or right mouse with shift or right mouse:
      cancel event
    else:
      loop 9 times:
        remove 1 from item amount of slot loop-number of current inventory
      set player's cursor to diamond sword

When you make an iron sword item, I want to block left click with shift, right click with shift, and right click. However, when you use the above if statement, left click is included and it becomes a cancel event. Is there a solution?
 
Status
Not open for further replies.