Is it possible to make 2 or more key bindings for different ItemAction?

Dahrona

Member
Just like what I said in the title, I want to execute 2 different ItemActions with 2 different keys instead of using a popup message
(example: Cross to use the item and Rectangle to drop that item)
If it's possible, how?
 
Yes, for that you need to add another component that will take the input you want and call the item action by name or by id.

These are called:
ItemViewSlotContainerItemActionHandler (Calls an ItemAction on the selected itemViewSlot using an Index )
ItemViewSlotContainerIndexedActionsHandler (Calls all ItemActions on a slot defined by input, example hotbar)
ItemViewSlotContainerNamedItemActionHandler (Calls an ItemAction on the selected itemViewSlot use the action name)

each of these are used for diferent uses cases. They are very simple scripts so you can even have a look at the source code an make your own if you want something a bit more uncommon.
 
Top