Manage items of chest

  • 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.
May 5, 2020
3
0
0
29
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:
#Add 10 of item to chest
 add 10 of {factories::%loop-index%::input::item} to {factories::%loop-index%::input}

Code:
#Remove 10 of item from chest
remove 10 of {factories::%loop-index%::input::item} from {factories::%loop-index%::input}

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
[doublepost=1588734476,1588734103][/doublepost]Guys i think i dont get it, i don't know why this works....

Code:
remove 10 of wheat from {factories::%loop-index%::input}'s inventory

Because of THIS! ------> 's
 
Status
Not open for further replies.