Set slot item bugged

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

Ghiranoss

Member
Oct 23, 2020
1
0
1
24
Hello everyone!
so i make a skript when a player click on anvil crafting gui showed,
but when i close the gui the item in 3rd slot of my toolbar cant be move it only happend with stone blocks


please help!






Code:
on inventory click:
    if inventory name of current inventory of player is "Crafting":
        if clicked item is stone:
            if clicked item is stone named "Stones":
                if clicked slot is 2:
                    cancel event
        if clicked item is jungle log:
            if clicked slot is 5:
                cancel event
       
on inventory click:
    if inventory name of current inventory of player is "Crafting":
        if clicked slot is 0:
            if clicked item is paper:
                loop all players:
                    if loop-player has 40 jungle logs:
                        remove 40 jungle logs from loop-player's inventory
                        if loop-player has 14 stone:
                            remove 14 stone from loop-player's inventory
                            give player paper named "&bDockyard Blueprint"
                            close the player's inventory
                        else:
                            message "You don't have enough ingredients"
                    else:
                        cancel event
                        message "You don't have enough ingredients"
 
Status
Not open for further replies.