Skip to content

Conditions

5w14 edited this page Sep 9, 2025 · 2 revisions

⚠️ This page is outdated, we will make updates to these once we finish the core parts & fix bugs.

📘 For now, you can click these to see the implementations (and expected arguments) of behaviours, context mutators and conditions.

e418:always

no arguments required

Always evaluates to true.

e418:and

  • conditions: List of ICondition - The conditions to evaluate with AND logic

e418:at_height

  • above: float (default: Float.MAX_VALUE) - Check if player is above this height
  • below: float (default: -Float.MAX_VALUE) - Check if player is below this height

e418:at_time

  • from: integer (default: 0) - The starting time
  • to: integer (default: 0) - The ending time

e418:chat/matches

  • regex: String - The regex pattern to match against chat messages

e418:chat/starts_with

  • prefix: String - The prefix to check in chat messages

e418:debug_mode

no arguments required

Evaluates to true if debug mode is enabled.

e418:is_night

no arguments required

e418:never

no arguments required

Always evaluates to false.

e418:not

  • conditions: List of ICondition - The conditions to negate

e418:or

  • conditions: List of ICondition - The conditions to evaluate with OR logic

e418:players_nearby

  • radius: double (default: 1.0) - The radius to check for players
  • min_players_nearby: integer (default: 0) - Minimum number of players required
  • max_players_nearby: integer (default: 0) - Maximum number of players allowed

e418:random

  • chance: float [0-1] - The probability of the condition evaluating to true

e418:time_since_start

  • ticks: NumberProvider - The number of ticks since the event started

e418:weather

  • weather: Enum (RAIN, THUNDER, ANY_NON_CLEAR, CLEAR) - The weather condition to check