1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Click Event on an item with another item

Discussion in 'Skript' started by AlfaLe0, Mar 30, 2018.

Thread Status:
Not open for further replies.
  1. AlfaLe0

    AlfaLe0 Member

    Joined:
    Mar 2, 2018
    Messages:
    25
    Likes Received:
    0
    how to write the code for when you click on a item with an other item? like put a book on a sword and the enchant it... please help
     
  2. ELROMPEDIENTES

    Joined:
    Feb 24, 2017
    Messages:
    191
    Likes Received:
    7
  3. AlfaLe0

    AlfaLe0 Member

    Joined:
    Mar 2, 2018
    Messages:
    25
    Likes Received:
    0
  4. ELROMPEDIENTES

    Joined:
    Feb 24, 2017
    Messages:
    191
    Likes Received:
    7
    Tell me the items and I will try
     
  5. AlfaLe0

    AlfaLe0 Member

    Joined:
    Mar 2, 2018
    Messages:
    25
    Likes Received:
    0
  6. ELROMPEDIENTES

    Joined:
    Feb 24, 2017
    Messages:
    191
    Likes Received:
    7
    I'm not sure if that possible but I know there are add-ons with effect to open and anvil
    Or you can try something different I'm going to make a example
     
  7. AlfaLe0

    AlfaLe0 Member

    Joined:
    Mar 2, 2018
    Messages:
    25
    Likes Received:
    0
    Ok... thanks
    Blaze powder click on a sword (wood, ston, iron or diamond)
    The sword become enchanted with Fire Aspect... the blaze Powder disappear

    Thanks
    --- Double Post Merged, Mar 30, 2018, Original Post Date: Mar 30, 2018 ---
    The thing that I asked is probably can be done with the Cursor click thinks
     
  8. ELROMPEDIENTES

    Joined:
    Feb 24, 2017
    Messages:
    191
    Likes Received:
    7
    Code (Skript):
    1. on rightclick:
    2.     if player is holding a book of sharpness 1:
    3.         remove event-item
    4.         add 1 to {book::sharpness1%player%}
    5.         send "right click on a sword"
    6.     else if player is holding any sword:
    7.         if {book::sharpness1%player%} is more than or equal to 1:
    8.             subtract 1 from {book::sharpness1%player%}
    9.         remove 1 event-item from the player
    10.         give a event-item to the player of sharpness 1
    --- Double Post Merged, Mar 30, 2018, Original Post Date: Mar 30, 2018 ---
    Is not test and is just and idea because I'm not Shure how to do it exactly like you said this is how I can help

    I hope it's helps you
     
    • Like Like x 1
  9. AlfaLe0

    AlfaLe0 Member

    Joined:
    Mar 2, 2018
    Messages:
    25
    Likes Received:
    0
    Yes thanks... if some other know the way that I have said before Thanks
     
Thread Status:
Not open for further replies.

Share This Page

Loading...