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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    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.

Solved Custom Anvil Skript (Help)

Discussion in 'Skript' started by FossilOG, May 23, 2020 at 7:03 AM.

  1. FossilOG

    FossilOG Member

    Joined:
    Jul 31, 2019
    Messages:
    11
    Likes Received:
    0
    I'm wondering how to copy and remove and place the item into a gui slot.

    This is what I'm meaning:
    You grab a item from your inventory, you place it into a GUI Slot (when doing that It will remove the item from your cursor and copy that item and place it into the gui slot)

    I highly doubt you will need the code but I will give the code that is stopping me from placing it into the slot:


    Code (Text):
    1. # This will fill the entire GUI (I have other things that stop this fill for other items too so not the entire but most)
    2.     loop 54 times:
    3.         wait 1 tick
    4.         add 1 to {_x}
    5.         format gui slot {_x} of {_p} with black stained glass pane to do nothing
    6.  
    7. # The gui air slot:
    8.  
    9.         if {_x} is 28:
    10.             wait 1 tick
    11.             add 1 to {_x}
    12.             format gui slot {_x} of {_p} with air to do nothing
    13.         if {_x} is 32:
    14.             wait 1 tick
    15.             add 1 to {_x}
    16.             format gui slot {_x} of {_p} with air to do nothing
    If what you say is not the correct code you can add me in discord to get in-depth into what I'm trying to say.
    --- Double Post Merged, May 23, 2020 at 9:01 AM, Original Post Date: May 23, 2020 at 7:03 AM ---
    I legit had to remove 1 line of code smh xD
     
Loading...