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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Interactive custom crafting gui

Discussion in 'Requests' started by Conutik, Jan 12, 2020.

  1. Conutik

    Conutik Member

    Joined:
    Jan 12, 2020
    Messages:
    19
    Likes Received:
    1
    Category: Custom guis

    Suggested name: Custom crafting Gui

    Spigot/Skript Version: 2.4

    What I want:
    I want a skript for my minehut server that when i click on a anvil if the player has permission "basic.weaponsmithing" it opens a gui where people can put stuff in the gui to craft items and they can remove the item they crafted

    Ideas for commands: /recipe add

    on right click on anvil


    Ideas for permissions: {customrecipe.admin} for admin to add recipes

    When I'd like it by: 10 days
     
  2. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    I'll give it a shot, can't guarantee I'll get it in time or right however.
    --- Double Post Merged, Jan 12, 2020, Original Post Date: Jan 12, 2020 ---
    Yeah I'll have to cancel, in my experience it is kinda impossible to have a skript overwrite code in it's own skript file so I cant do /recipe add + it is too difficult to have the check for recipes. I can give you the gui and have it be opened on right click with anvil:
    Code (Text):
    1. on skript load:
    2.     create new gui with id "basws" with virtual chest with 6 rows named "Craft Item":
    3.         wait 2 ticks
    4.         make gui slot 0-8 with gray stained glass pane named " "
    5.         #2nd row
    6.         make gui slot 9 with gray stained glass pane named " "
    7.         make gui slot 13-17 with gray stained glass pane named " "
    8.         #3rd row
    9.         make gui slot 18 with gray stained glass pane named " "
    10.         make gui slot 22-23 with gray stained glass pane named " "
    11.         make gui slot 25-26 with gray stained glass pane named " "
    12.         #4th row
    13.         make gui slot 27 with gray stained glass pane named " "
    14.         make gui slot 31-35 with gray stained glass pane named " "
    15.         #5th row
    16.         make gui slot 36-45 with gray stained glass pane named " "
    17.         #6th row
    18.         make gui slot 46-49 with lime stained glass pane named " "
    19.         make gui slot 50 with arrow named "&cBack":
    20.             stop
    21.         make gui slot 51-54 with lime stained glass pane named " "
    22. on right click:
    23.     if targeted block is anvil:
    24.         if player has permission "basic.weaponsmithing":
    25.             open gui "basws" to player
     
  3. Conutik

    Conutik Member

    Joined:
    Jan 12, 2020
    Messages:
    19
    Likes Received:
    1
    do you know a way where he can put items in the gui??
     
  4. Goose

    Supporter

    Joined:
    Nov 23, 2019
    Messages:
    429
    Likes Received:
    30
    You can try removing the "wait 2 ticks" part, but there is a chance they would be able to put in items but be able to take out items from the gui aswell.
     

Share This Page

Loading...