[SPIGOT-6562] Add event fired if a sculk sensor is triggered thru a player Created: 15/Jun/21  Updated: 16/Jun/21  Resolved: 16/Jun/21

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Mathew Donegan Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Environment:

Not relevant.


Version: This server is running CraftBukkit version 3143-Spigot-66f9d3c-f66c437 (MC: 1.17) (Implementing API version 1.17-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

I would like to see an event added fired if a player triggers the vibration of a sculk sensor.

Currently this item is only available thru the /give command but such an event already comes in handy if you want to cancel player's triggering it.

 



 Comments   
Comment by md_5 [ 15/Jun/21 ]

Created PRs
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/pull-requests/632/diff#src/main/java/org/bukkit/event/block/BlockReceiveGameEvent.java
https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/868/diff#nms-patches/net/minecraft/world/level/gameevent/vibrations/VibrationListener.patch

Comment by Mathew Donegan [ 15/Jun/21 ]

I am aware, but like the javadoc note says itself, Bukkit-specific events should be used where possible, hence I requested to add them so I can comply with this note.

It would be a handy addition nevertheless.

Comment by Marvin Rieple [ 15/Jun/21 ]

There is the GenericGameEvent which "Represents a generic Mojang game event. Specific Bukkit events should be used where possible, this event is mainly used internally by Sculk sensors."

Generated at Thu Dec 18 08:12:53 UTC 2025 using Jira 10.3.15#10030015-sha1:909cc43d292ca09e774c1a243d9819be3f2628cd.