Hey so I've been working on this crafting skript and I've encountered a bug.
The following code :
Seems to detect both slot 18 in the current gui and slot 18 in the player's inventory. I just need it to detect ONLY the GUI slot 18
I've tried using the following:
- if clicked slot of player's current inventory is 18
- if clicked slot of current inventory of player is 18
- if event-slot is slot 18 of player's current inventory
- if event-slot is slot 18 of current inventory of player
- if event-slot is slot 18 of player
No errors on any of them, they all do the exact same thing however.
Please reply if you've got any ideas/suggestions
The following code :
Code:
if clicked slot is 18:
Seems to detect both slot 18 in the current gui and slot 18 in the player's inventory. I just need it to detect ONLY the GUI slot 18
I've tried using the following:
- if clicked slot of player's current inventory is 18
- if clicked slot of current inventory of player is 18
- if event-slot is slot 18 of player's current inventory
- if event-slot is slot 18 of current inventory of player
- if event-slot is slot 18 of player
No errors on any of them, they all do the exact same thing however.
Please reply if you've got any ideas/suggestions