Crafted item slot in the inventory?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Kaff

New Member
Feb 28, 2024
5
0
1
20
I want to make a custom item displayed in the slot of the craft station in the player inventory.

What is the id of that slot?

1709147292116.png
 
Quick Google search says the ID is 0, but you could try
Code:
on inventory click:
    set {_slot} to index of event-slot
    message "%{_slot}%" to player
All code untested unless stated otherwise.
 
  • Like
Reactions: Luke_Sky_Walker
Quick Google search says the ID is 0, but you could try
Code:
on inventory click:
    set {_slot} to index of event-slot
    message "%{_slot}%" to player
All code untested unless stated otherwise.
I try this and the index slot is 0 but the first slot in the hotbar is index 0 also. So the code runs anyways if i click on any of both