Vanilla enchantments using drag and drop.

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

BrownMee

Active Member
Apr 16, 2018
126
6
18
23
code_language.skript:
on inventory click:
    if clicked item is any pickaxe or shovel or axe or sword or hoe or helmet or chestplate or leggings or boots:
        player's cursor slot is 403:0:
                if clicked item is player's tool:
                        repair player's tool by 50
                        cancel event
                        remove 1 of player's cursor slot from player's cursor slot

i think is something like that but how do i add the enchantments?
 
Yes there is. I dont have an example because I suck at this stuff, but you need to use something like SkStuff to check the NBT of the book, as the enchantment is stored in the NBT of the book