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 searched 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 player’s as the cause (for example, the killer), use pc.

To search only for player’s affected (for example, the victim), use pa.

Last updated on