Hello
Im trying to figure out a way, that when i have a gui open (chest) that when a player puts an item into a slot, and clicks something, lets say an anvil, it would save what is in that slot to a variable.
I just cant figure out how to do it.
here's what I have so far for my testing purpose
I want to be able to do it like for example, a player places a sword in slot 10, clicks the anvil and it will save that item into a variable.
Is that possible?
Im trying to figure out a way, that when i have a gui open (chest) that when a player puts an item into a slot, and clicks something, lets say an anvil, it would save what is in that slot to a variable.
I just cant figure out how to do it.
here's what I have so far for my testing purpose
code_language.skript:
command /test:
trigger:
open virtual chest inventory named "test" with size 3 to player
format slot 0 of player with anvil named "Click to save" to do nothing #will be changed obviously when i figure this out
I want to be able to do it like for example, a player places a sword in slot 10, clicks the anvil and it will save that item into a variable.
Is that possible?