Situations

Situations are composed of triggers (aka events) that go off and happen to a Pokémon or with a Pokémon in mind, and conditions that filter down to specific instances of Pokémon we care about.

All valid situations for a given context are tossed into a list of things to check for broadcasts for, filtered down by the config’s disabledSituations property, and may have other relevant situations they also trigger broadcasts for. For example, a shiny Pokémon spawning and a legendary Pokémon spawning both trigger the other situation of a special Pokémon spawning, which is what most broadcasts listen for.

Broadcasts

Broadcasts are the actual notifications that go out to players in the world for given situations. They can send those notifications in one of two ways in the base mod.

Chat Broadcasts

Chat broadcasts send messages to relevant players, made up of Minecraft’s message templates and expressions that evaluate out into things to be substituted into those templates.

Sound Broadcasts

Sound broadcasts emit sounds at the event location.