Name of item in inventory slot

  • 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 community!

    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!

Status
Not open for further replies.

Hyao

Active Member
Apr 1, 2017
73
4
8
I'm struggling with finding the name of an item in an inventory slot. Here's what I have.
I'm trying to create a special type of crafting, where you put 3 items in 3 different slots in a 1-line chest. (specifically slots 0, 2 and 8). How I'm going about this right now:
Player clicks green clay in the middle of the inventory, it starts a function checking for the items in the 3 slots. Problem is, when using this: (I'm using old functions, can't figure out the new ones)

slot 0 of {_p}'s current inventory

I can't get the name of the item. It only returns as either the item name or ID(in some cases). It's as if it doesn't even exist(the name) and it just saves the item as a string. I can't:
1) parse as anything
2) get "name of slot etc."
3) get name otherwise with what I've tried

How could I do this? As in, get the name of an item the player has put into an opened inventory after clickin on an item in that same inventory? It really seems not to like me.
 
Status
Not open for further replies.