I’m a beginner and I’m trying to implement a system for interacting with items in the hot panel menu, but nothing comes out. The action is triggered for all elements. I tried to create a database of items, but also unsuccessfully. Does anyone know how to implement this? I will be grateful.
The bottom panel (Hotbar). I’m trying to make a system of interaction with each subject separately. For example, this is a block and it can be installed or a sword that can be hit. I thought it could be implemented through a database of things, but it doesn’t work.