Skript

Skript

743k Downloads

Middle Mouse Click Type Not Registering

Astral-Syntax opened this issue ยท 2 comments

commented

Skript/Server Version

[00:38:55 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[00:38:55 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[00:38:55 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[00:38:55 INFO]: [Skript] Server Version: 1.20.6-148-20f5165 (MC: 1.20.6)
[00:38:55 INFO]: [Skript] Skript Version: 2.9.1 (skriptlang-github)
[00:38:55 INFO]: [Skript] Installed Skript Addons:
[00:38:55 INFO]: [Skript]  - SkBee v3.6.0 (https://github.com/ShaneBeee/SkBee)
[00:38:55 INFO]: [Skript] Installed dependencies: None

Bug Description

Making simple vanilla GUIs, trying to test for middle click to do other things and could not get it to work, then tried a simple broadcast and that would not work either.

Expected Behavior

to return middle on middle mouse click

Steps to Reproduce

on inventory click:
    if click action is middle mouse:
        broadcast "middle"
    if click action is left mouse:
        broadcast "left"
    if click action is right mouse:
        broadcast "right"

Errors or Screenshots

No errors, just nothing happens

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.
commented

Are you trying this in creative?
Creative inventory clicks are extremely unreliable as the client has no need to tell the server what it's doing. It's just assumed the creative client has permission to do whatever.

commented

I was (sort of) able to replicate this in Skript 2.9.2, Paper 1.21
The middle click action is only sent when you have an item in your cursor slot and the window click ones are never called.