Skip to content

On Inventory Click Event #4142

Description

@MDCran

Description

The on inventory click: event does not trigger unless the clicked slot is 0-8 (Hotbar slots.)

Steps to Reproduce

**By pasting the below skript, you will see that the word "Triggered" only is sent when you:

  1. Open your Inventory
  2. Click Hotbar Slots**
on inventory click:
    send "Triggered" to all players

Additionally, if you open a "non-player inventory" such as a GUI, the remaining 27 inventory slots now trigger the event while the "above GUI" does not trigger if you click the slots.

Expected Behavior

All 36 inventory slots and all GUI slots (including armor and shield slots) should trigger the event. Using the %event-slot% event value, you should be able to see the slot ID as you click them! EVERY slot should trigger the event, not just Hotbar slots.

Errors / Screenshots

Not Applicable

Server Information

[Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[Skript] Skript's documentation can be found here: https://skriptlang.github.io/Skript
[Skript] Server Version: git-Paper-66 (MC: 1.17)
[Skript] Skript Version: 2.6-beta1
[Skript] Installed Skript Addons:
[Skript]  - skript-placeholders v1.5.1 (https://github.com/APickledWalrus/skript-placeholders)
[Skript]  - skript-gui v1.3-alpha1 (https://github.com/APickledWalrus/skript-gui)
[Skript]  - Skellett v1.9.11 (https://forums.skunity.com/resources/skellett.24/)
[Skript]  - skript-yaml v1.4
[Skript]  - MorkazSk v1.2
[Skript]  - skUtilities v0.9.2 (https://tim740.github.io/)
[Skript]  - Vixio v2.0.7 (http://vixio.space)
[Skript]  - skRayFall v1.9.26 (https://sk.rayfall.net/)
[Skript]  - SkQuery v4.1.5
[Skript]  - SkriptJSON v1.0.0
[Skript]  - SkBee v1.11.2 (https://github.com/ShaneBeee/SkBee)
[Skript]  - skLib v1.1.0 (https://github.com/WheezyGold7931/skLib/)

Additional Context

Not Applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions