Skript

Skript

743k Downloads

Add middle click event

AlliSite opened this issue ยท 7 comments

commented

Suggestion

Add middle click event

Why?

More Features

Example:

on middleclick on player:
execute player command "/invsee %clicked player%

Other

Middle click to inventory

Agreement

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

I don't believe there's a server event called when a player middle clicks on an entity, only on a block. For that reason I'm unsure if this is possible to implement.

Edit: actually, I can't even find an event for middle clicking a block (pick block)

commented

I don't believe there's a server event called when a player middle clicks on an entity, only on a block. For that reason I'm unsure if this is possible to implement.
Edit: actually, I can't even find an event for middle clicking a block (pick block)

What if

(example) on middleclick: if name of player's tool is "Example": broadcast "&cExample"

That is the same thing? There no event for middle click we can listen to.

commented

I don't believe there's a server event called when a player middle clicks on an entity, only on a block. For that reason I'm unsure if this is possible to implement.

Edit: actually, I can't even find an event for middle clicking a block (pick block)

What if

(example)
on middleclick:
if name of player's tool is "Example":
broadcast "&cExample"

commented

I don't believe there's a server event called when a player middle clicks on an entity, only on a block. For that reason I'm unsure if this is possible to implement.
Edit: actually, I can't even find an event for middle clicking a block (pick block)

What if
(example) on middleclick: if name of player's tool is "Example": broadcast "&cExample"

That is the same thing? There no event for middle click we can listen to.

But skript has types for each click, which includes middle mouse button

commented

That is the same thing? There no event for middle click we can listen to.

But skript has types for each click, which includes middle mouse button

Unfortunately that's completely unrelated. That's for the inventory click event.

commented

If at some point Minecraft itself supports this we can add it.

commented

That is the same thing? There no event for middle click we can listen to.

But skript has types for each click, which includes middle mouse button

Unfortunately that's completely unrelated. That's for the inventory click event.

ahh gotcha alright