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.

Help for skript creative item detector

Discussion in 'Skript' started by NobikFly, Jan 19, 2023.

  1. NobikFly

    NobikFly New Member

    Joined:
    Jan 18, 2023
    Messages:
    7
    Likes Received:
    0
    Can skript is detect the items we take into inventory from creative menu?
     
  2. xdh

    xdh Active Member

    Joined:
    Apr 15, 2020
    Messages:
    78
    Likes Received:
    4
    Code (Text):
    1. on inventory click:
    2.     if type of event-inventory is creative inventory:
    3.         cancel event
    4.         send "No."
    Might work, didnt test it
     
  3. NobikFly

    NobikFly New Member

    Joined:
    Jan 18, 2023
    Messages:
    7
    Likes Received:
    0
    I try this with "send "%type of event-inventory% to player" line but everytime I get item on creative it say "player inventory"
     
  4. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3
    the proper syntax for that would not be event-inventory, try player's current inventory
    when you want to create a GUI with skript, at least for how I do it, I do:
    Code (Text):
    1. open chest inventory with 3 rows named "Chest" to player
    2. set slot 11 of player's current inventory to feather named "&fFeather"
    maybe when you use current inventory it will work.(Edit.)
     
  5. NobikFly

    NobikFly New Member

    Joined:
    Jan 18, 2023
    Messages:
    7
    Likes Received:
    0
    I try with this code but just receive "crafting table inventory" message
    Code (Text):
    1.  
    2.  
    3. on inventory click:
    4.         send "%type of player's current inventory%" to player
    5.  
    6.  
     
  6. Merrical

    Supporter

    Joined:
    Jul 27, 2020
    Messages:
    29
    Likes Received:
    3

Share This Page

Loading...