Skip to main content
The Enter Region Event (enter_region) and Exit Region Event (exit_region) allow you to execute TypeWriter actions when a player crosses into or out of a protected zone.

Configuration

ParameterTypeDescription
regionRef<RegionDefinition>The region to monitor.
actionsList<Ref<Action>>Actions to execute (titles, sounds, commands, etc).

Common Uses

  • Welcome Messages: Show a “Entering Spawn” title when players arrive.
  • Ambiance: Play a specific sound or change lighting (via other extensions) when entering a cave region.
  • Security: Teleport players back if they lack permission to enter a restricted zone.
# Example: Welcome Title
type: enter_region
region: spawn_definition
actions:
  - type: title_action
    title: "<green>Welcome to Spawn"
    subtitle: "Safe zone"