SOLVED

Discussion in 'Skript' started by Mattllama9877, Aug 9, 2018.

  1. Hi, im working on a Enchantment gui. And I want it where you put your pick or anyother tool in the left side of the gui, and in the right side of the gui it will give you the tool with the enchantment/enchantments. Here is part of the skript I have. If anyone knows how to complete it, can you please let me know? Thanks!

    Code (Text):
    command /toolenchantss:
        trigger:
            open chest with 5 rows named "&aEvent Chest!" to player
            format gui slot 4 of player with glass:10 named ""
            format gui slot 13 of player with glass:10 named ""
            format gui slot 22 of player with glass:10 named ""
            format gui slot 31 of player with glass:10 named ""
            format gui slot 40 of player with glass:10 named ""
    on inventory click:
        if cursor slot of player is enchanted book:
            if name of cursor slot of player is "&fEfficiency I":
                if event-item is any pickaxe:
                    if lore of event-item doesn't contain "Efficiency I":
                        cancel the event
                        set lore of event-item to "%lore of event-item%||&fEfficiency I"
                        send "&aSuccess!" to the player
                        set cursor slot of player to air
     
  2. I think it would be easier to just enchant the player's tool instead of putting it into a gui and checking (sorry if that isn't helpful). Also unless you are doing some kind of custom enchantment why are you using lore for efficiency? You should just be using the vanilla minecraft enchanting
     
  3. It’s ok, I had some other people help me and we knocked it out. It works amazingly and my players love it. Thank you!
     
  4. Choco

    Moderator

    Refrain from blanking out the title of the thread and please provide the solution as it often helps other users when searching for similar issues.
     
    • Agree Agree x 3