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.

Manage items of chest

Discussion in 'Skript' started by SantiagoCervera, May 6, 2020.

Thread Status:
Not open for further replies.
  1. SantiagoCervera

    Joined:
    May 5, 2020
    Messages:
    3
    Likes Received:
    0
    I give up! I don't know how to manage items from a chest:

    I want to remove a certain amount of items from one chest and add another items to another chest.

    {factories::%loop-index%::input} => This is a chest block
    {factories::%loop-index%::input::item} => This is an item

    Code (Text):
    1.  
    2. #Add 10 of item to chest
    3.  add 10 of {factories::%loop-index%::input::item} to {factories::%loop-index%::input}
    4.  
    Code (Text):
    1.  
    2. #Remove 10 of item from chest
    3. remove 10 of {factories::%loop-index%::input::item} from {factories::%loop-index%::input}
    4.  
    What I tried:
    -Replace variables with constants and still not work.

    Whats happens?
    - No compilation errors or warnings.
    - Line execute because i have a debug line after line 3 and yes is inside the condition.

    If i missing something tell me please i gona crazy right now jaja
    --- Double Post Merged, May 6, 2020, Original Post Date: May 6, 2020 ---
    Guys i think i dont get it, i don't know why this works....

    Code (Text):
    1. remove 10 of wheat from {factories::%loop-index%::input}'s inventory
    Because of THIS! ------> 's
     
Thread Status:
Not open for further replies.

Share This Page

Loading...