| Name | player scrolls their hotbar |
| Event Lines | player scrolls their hotbar
player holds item |
| Triggers | when a player scrolls through their hotbar. |
| Generated Examples | after player scrolls their hotbar:
after player holds item: on player scrolls their hotbar: |
| Has Player | Always. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Switches | item:<item> to only process the event when the player is going to hold a specified item. |
| Contexts | <context.new_slot> returns the number of the new inventory slot.
<context.previous_slot> returns the number of the old inventory slot.
|
| Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Group | Player |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/HotbarScrollScriptEvent.java#L15 |