Skip to Content
ConceptsCause and (A)ffect

Cause and (A)ffect

Prism distinctly captures both a cause and affected object with most activities (some are purely informational, and only have a cause, like player-join etc).

A “cause” can be a player, block, entity, or generically-named concept.

An affected object can be a player, block, entity, or item.

Examples:

  • Player - “viveleroi broke Dirt”
  • Block - “Fire burned Oak Log”
  • Entity - “Sheep ate Grass”
  • Named Cause - “gravity broke sand”

Parameters

To give you more control over what you’re looking for, player, block, and entity parameters have variants to specify cause or affected.

block and entity parameters search for affected blocks/entities.

To look exclusively for activities they caused, use block cause or entity cause parameters.

The player parameter always searches for both, so for consistency it has remained. It really only impacts player death and maybe a few other events, and there’s realistically no difference.

To search only for players as the cause (for example, the killer), use pc.

To search only for players affected (for example, the victim), use pa.