Hello,
I'm trying to execute a player command when clicking on a item in a GUI.
My code:
It won't accept this, nor with "then run command", or "then run player command".
Running the latest ver. of skript, skquery and skellet. 1.16.5
Error is just "a slot can't be set to bla. bla. bla." - all my code is working fine if i just remove the execution part, that im trying to figure out.
Someone can help me out here? Couldn't find anything on the docs about this.
I'm trying to execute a player command when clicking on a item in a GUI.
My code:
Code:
set slot 20 of player's current inventory to spawner named "&6Spawner" with lore "&a" then execute player command "/test"
It won't accept this, nor with "then run command", or "then run player command".
Running the latest ver. of skript, skquery and skellet. 1.16.5
Error is just "a slot can't be set to bla. bla. bla." - all my code is working fine if i just remove the execution part, that im trying to figure out.
Someone can help me out here? Couldn't find anything on the docs about this.