How to create "On Drop" function on an item so that this item can awso later recognize what exactly is dropped on it (for crafting) ?

Hi, and yes it’s all 3d i can send a video how it looks like in a sec.

So top are my crafting objects and i want to drop them on the item below