Events
This section covers how scripts can interact with Minecraft events and Script events.
Scripts can listen to events, cancel or modify them. This allows you to react to player actions, server behavior, or even your own plugin logic, all from within scripts.
Topics you'll find here:
Listening to events (like
PlayerJoinEvent
,BlockBreakEvent
, etc.)Listening to script events
Cancelling or modifying default event behavior
Managing listeners and cleanup to avoid memory leaks or duplicate triggers
Whether you're trying to react to a block being placed, cancel an entity from spawning, this section gives you the tools to do that cleanly.
Last updated
Was this helpful?