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!


    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.

Skript anvil recipe help

Discussion in 'Skript' started by Seba, Feb 21, 2021.

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

    Seba Member

    Aug 8, 2019
    Likes Received:
    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 (Text):
    1. on anvil prepare:    
    2.     if slot 0 of event-inventory is a diamond pickaxe:
    3.          if slot 1 of event-inventory is an enchanted book:
    4.              if stored enchants of slot 1 of event-inventory contains Efficiency 5:
    5.                  set {_i} to slot 0 of event-inventory
    6.                  set line 1 of the lore of {_i} to "&aWydajność VI/X"
    7.                  enchant {_i} with Efficiency 6
    8.                  set event-slot to {_i}
    9.                  set repair cost of event-inventory to 30
    Skript 2.5.3, Skbee 1.10.2, Minecraft 1.16.5
    --- Double Post Merged, Feb 28, 2021, Original Post Date: Feb 21, 2021 ---
    bump help
Thread Status:
Not open for further replies.

Share This Page