Hi,
I want to detect when item is added in chest to make gui linked in real time.
And I tried "on inventory click", but since what i wanted accurately is detecting put item or taken item.
Let me take an example.
When i put item in a chest or a gui, I want to get (slot: 0, item: 64 of stone) and when I take that 64 of stone in slot 0 in a chest or a gui, I want to get (slot: 0, item: air)
If I use "slot clicked raw slot of current inventory of player" in "on inventory click:", it returns each 64 of stone and slot: 0, item: 64 of stone.
I realized that it is because "on inventory click" returns value when it called.
But I need after item when stone taken("air" not stone). Also I need (stone in slot 0) when stone put
It can be solved when I use delay, but I can't use it because purpose of this skript is linked gui.
Ultimately, what I want is linked gui. Replying how to make liked gui instead of after item(air) when item(stone) taken will be also helped me a lot.
I'm really sorry because I'm not good at English and I couldn't tell you what I want to say accurately.
Thank you.
I want to detect when item is added in chest to make gui linked in real time.
And I tried "on inventory click", but since what i wanted accurately is detecting put item or taken item.
Let me take an example.
When i put item in a chest or a gui, I want to get (slot: 0, item: 64 of stone) and when I take that 64 of stone in slot 0 in a chest or a gui, I want to get (slot: 0, item: air)
If I use "slot clicked raw slot of current inventory of player" in "on inventory click:", it returns each 64 of stone and slot: 0, item: 64 of stone.
I realized that it is because "on inventory click" returns value when it called.
But I need after item when stone taken("air" not stone). Also I need (stone in slot 0) when stone put
It can be solved when I use delay, but I can't use it because purpose of this skript is linked gui.
Ultimately, what I want is linked gui. Replying how to make liked gui instead of after item(air) when item(stone) taken will be also helped me a lot.
I'm really sorry because I'm not good at English and I couldn't tell you what I want to say accurately.
Thank you.