Saltar al contenido principal

UI Item Trigger

Binds a material to a viewId: right-clicking that item opens the view.

FieldWhat it does
bindingsPairs of a material name and the viewId it opens.

A right-click, not a key. Opening one's own inventory is handled entirely by the client and never reaches the server, so the inventory key cannot be captured — the item is the gesture that can be.

While a view is open, both mouse buttons belong to it: they are the menu's clicks, not world interaction. The gesture is swallowed whether or not a component answers, otherwise clicking an empty cell would place or break a block behind the screen.