I am trying to make a /recipes command that shows all the custom recipes from my server and I have the issue where a player can put items from their inventory into the gui and if the user already has an item from the gui in their inventory they can double click it to grab the item from the gui and stack it with theres. Does anyone know how to help with this?
Here is my skript so far:
command /recipes:
trigger:
open chest with 3 row named "Recipes" to sender
wait a tick
format slot 0 of sender with gravel named "Gravel" to run [make sender execute command "gravelrecipe"]
format slot 1 of sender with oak sapling named "Oak Sapling" to run [make sender execute command "oaksaplingrecipe"]
format slot 2 of sender with string named "String" to run [make sender execute command "stringrecipe"]
format slot 3 of sender with bundle named "Bundle" to run [make sender execute command "bundlerecipe"]
format slot 4 of sender with cobbled deepslate named "Cobbled Deepslate" to run [make sender execute command "cobbleddeepslaterecipe"]
format slot 5 of sender with potion of luck named "Potion Of Luck" to run [make sender execute command "potionofluckrecipe"]
format slot 6 of sender with jukebox named "Jukebox" to run [make sender execute command "jukeboxrecipe"]
Here is my skript so far:
command /recipes:
trigger:
open chest with 3 row named "Recipes" to sender
wait a tick
format slot 0 of sender with gravel named "Gravel" to run [make sender execute command "gravelrecipe"]
format slot 1 of sender with oak sapling named "Oak Sapling" to run [make sender execute command "oaksaplingrecipe"]
format slot 2 of sender with string named "String" to run [make sender execute command "stringrecipe"]
format slot 3 of sender with bundle named "Bundle" to run [make sender execute command "bundlerecipe"]
format slot 4 of sender with cobbled deepslate named "Cobbled Deepslate" to run [make sender execute command "cobbleddeepslaterecipe"]
format slot 5 of sender with potion of luck named "Potion Of Luck" to run [make sender execute command "potionofluckrecipe"]
format slot 6 of sender with jukebox named "Jukebox" to run [make sender execute command "jukeboxrecipe"]