-
Notifications
You must be signed in to change notification settings - Fork 0
Events
theblackswitch edited this page Feb 11, 2026
·
1 revision
Available since V2.0 patch-1
This library also includes some events you can hook into. To do this just add your function to the tag and bam you're done!
Triggers when the player uses their hand or an item on a block. So basically when your hand swings and you've interacted with a block.
Tag: #theblackswitch:<version>/events/block_placed
Runs when a player first joins the game or when the library updates.
Tag: #theblackswitch:<version>/events/init_player
Runs when the player's inventory changes. If multiple items changed or a chest opened this runs on the last item.
Tag: #theblackswitch:<version>/events/inventory_changed
Caution
The trigger will actually run 1t after the actual event due to the internal logic