Skript anvil recipe help

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

Seba

Member
Aug 8, 2019
1
0
1
30
Hello, anyone know how to fix the code?

when I drop a diamond pickaxe of efficiency 5 + diamond pickaxe of efficiency 3 the result will show efficiency 6 which should not.
the result should be diamond pickaxe of efficiency 5 + enchanted book of efficiency 5 = diamond pickaxe of efficiency 6 with lore
Code:
Code:
on anvil prepare:     
    if slot 0 of event-inventory is a diamond pickaxe:
         if slot 1 of event-inventory is an enchanted book:
             if stored enchants of slot 1 of event-inventory contains Efficiency 5:
                 set {_i} to slot 0 of event-inventory
                 set line 1 of the lore of {_i} to "&aWydajność VI/X"
                 enchant {_i} with Efficiency 6
                 set event-slot to {_i}
                 set repair cost of event-inventory to 30
Skript 2.5.3, Skbee 1.10.2, Minecraft 1.16.5
[doublepost=1614513407,1613907063][/doublepost]bump help
 
Status
Not open for further replies.