Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,000 resources
03
Days
23
Hours
14
Mins
23
Secs

custom enchants, rightclick [HELP]

Status
This thread has been locked.
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

Yandere

Professional Memer
Premium
Feedback score
9
Posts
566
Reactions
230
Resources
0

Jeremy B

Founder @ Sineshore
Premium
Feedback score
1
Posts
28
Reactions
1
Resources
0
This should work for you, it does require the Skript addon MundoSK and Skellett though.

On inventory click:
if clicked item is not air:
if clicked cursor is enchanted book:
cancel event
set {_item} to clicked item
enchant {_item} with enchants within clicked cursor
set clicked item to {_item}

This also doesn't check if the item in enchantable, so currently you can apply enchanted books to any item, but I'm sure you can figure that out. :)
 

EnchantBook

Premium
Feedback score
13
Posts
705
Reactions
108
Resources
0
This should work for you, it does require the Skript addon MundoSK and Skellett though.

On inventory click:
if clicked item is not air:
if clicked cursor is enchanted book:
cancel event
set {_item} to clicked item
enchant {_item} with enchants within clicked cursor
set clicked item to {_item}

This also doesn't check if the item in enchantable, so currently you can apply enchanted books to any item, but I'm sure you can figure that out. :)
Thank you!

EDIT: Diddnt work for some reason, no errors
Code:
=[Code]
On inventory click:
    if clicked item is not air:
        if clicked cursor is enchanted book:
            cancel event
            set {_item} to clicked item
            enchant {_item} with enchants within clicked cursor
            set clicked item to {_item}
 
Last edited:

Jeremy B

Founder @ Sineshore
Premium
Feedback score
1
Posts
28
Reactions
1
Resources
0
Thank you!

EDIT: Diddnt work for some reason, no errors
Code:
=[Code]
On inventory click:
    if clicked item is not air:
        if clicked cursor is enchanted book:
            cancel event
            set {_item} to clicked item
            enchant {_item} with enchants within clicked cursor
            set clicked item to {_item}

Hmm, That's strange. It worked for me when I tested it, What version for MC are you on?
 
Status
This thread has been locked.
Top