Clicking an item with another item

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

GToTheG

Member
Jan 26, 2017
35
0
8
Ive tried to solve this for a while now.

Is there any to do following:

  • Player goes into inventory pickups an unbreaking 3 book and clicks an diamond sword with the book. The book gets removed and the swords gets enchanted with unbreaking3.
 
Ive tried to solve this for a while now.

Is there any to do following:

  • Player goes into inventory pickups an unbreaking 3 book and clicks an diamond sword with the book. The book gets removed and the swords gets enchanted with unbreaking3.
I made a similar post on this.. hopefully someone helps us, I'm kinda upset that I've tried so many methods but they don't completely work! Good luck to the both of us.. :emoji_grinning:
 
code_language.skript:
on inventory click:
 
  if cursor slot of player is an enchanted book:
    if event-slot is any sword:

      cancel event

      enchant event-slot with enchants within cursor slot of player #needs of MundoSK
      clear cursor slot of player

The above code should do the trick, needs of the bensku's fork to work properly
 
code_language.skript:
on inventory click:
 
  if cursor slot of player is an enchanted book:
    if event-slot is any sword:

      cancel event

      enchant event-slot with enchants within cursor slot of player #needs of MundoSK
      clear cursor slot of player

The above code should do the trick, needs of the bensku's fork to work properly
I have have both Bensku's fork and MundoSk, but it doesn't work for me.. many other things are working for me just not the whole inventory click types and events. :emoji_frowning:
 
code_language.skript:
on inventory click:
 
  if cursor slot of player is an enchanted book:
    if event-slot is any sword:

      cancel event

      enchant event-slot with enchants within cursor slot of player #needs of MundoSK
      clear cursor slot of player

The above code should do the trick, needs of the bensku's fork to work properly

MundoSK gives me an error while parseing. When i reload my skript "An internal Errror...." and so on.
 
I have have both Bensku's fork and MundoSk, but it doesn't work for me.. many other things are working for me just not the whole inventory click types and events. :emoji_frowning:

MundoSK gives me an error while parseing. When i reload my skript "An internal Errror...." and so on.

Provide us, with your bukkit/spigot verison, server verison, and bensu's skript fork verison. Feel free to take screenshot if it's easier.

/ver - for bukkit/spigot verison
/ver skript - for skript verison
/ver MundoSK - for mundo's verison

and also screenshot the error when you reload the script.
 
Provide us, with your bukkit/spigot verison, server verison, and bensu's skript fork verison. Feel free to take screenshot if it's easier.

/ver - for bukkit/spigot verison
/ver skript - for skript verison
/ver MundoSK - for mundo's verison

and also screenshot the error when you reload the script.
This wasn't my post on it but I've figured it out for myself, thanks anyways.
[doublepost=1498757131,1498756796][/doublepost]@GToTheG here is a link to my solved post, mine is about custom enchantments but you can simply change the enchantment name to vanilla ones and make the item glow aswell.

https://forums.skunity.com/threads/drag-and-drop-custom-enchantments-lore.4198/#post-14244
 
Status
Not open for further replies.