Skip to Content

Conditions

Conditions control how filters match activities. A filter will only apply if an activity matches all defined conditions.

Condition values work like parameter values - any value in the list that matches is enough.

above / below

Match by Y coordinate. Inclusive. May be combined to form a Y range.

KeyTypeDescription
aboveintegerMatches activities at Y this value.
belowintegerMatches activities at Y this value.
# Ignore everything below ground conditions { below=64 }

actions

List of action type keys (e.g. block-break, block-place, item-throw). Case-sensitive; keys are lowercase kebab-case.

KeyType
actionslist of strings
excluded-actionslist of strings
conditions { actions=[block-break, block-place] }

affected-block / cause-block

Match the block an activity affected (affected-block) or the block that caused it (cause-block).

KeyTypeDescription
materialslist of stringsBukkit Material names (case-insensitive), e.g. gravel.
tagslist of stringsNamespaced block tags, e.g. minecraft:dirt, prism:all_ores.
excluded-materialslist of stringsMaterials to exclude.
excluded-tagslist of stringsBlock tags to exclude.
conditions { affected-block { tags=["minecraft:dirt", "minecraft:base_stone_overworld"] materials=[gravel] } }

affected-entity-type / cause-entity-type

Match the entity an activity affected, or the entity type that caused it.

KeyTypeDescription
entity-typeslist of stringsBukkit EntityType names (case-insensitive), e.g. creeper.
tagslist of stringsNamespaced entity-type tags, e.g. minecraft:impact_projectiles.
excluded-entity-typeslist of stringsEntity types to exclude.
excluded-tagslist of stringsEntity-type tags to exclude.
conditions { cause-entity-type { entity-types=[creeper, tnt, wither] } }

bounds

Match activities inside an axis-aligned box (inclusive). Both min and max are required; corners may be given in any order.

KeyType
bounds.mincoordinate { x, y, z }
bounds.maxcoordinate { x, y, z }
conditions { bounds { min { x=-100, y=0, z=-100 } max { x=100, y=320, z=100 } } }

cause-types

Match by the category of an activity’s cause rather than a specific value.

KeyType
cause-typeslist of: block, entity, named, player
excluded-cause-typeslist of: block, entity, named, player
  • block — a block cause (e.g. a dispenser)
  • entity — a non-player entity cause (creeper, breeze, etc.)
  • named — a named/string cause (gravity, etc.)
  • player — a player cause
# Ignore item-throw fired by any non-player entity conditions { actions=[item-throw] cause-types=[entity] }

cause-player / affected-player

Match by player name. cause-player is the acting player; affected-player is a player targeted by the action.

KeyTypeDescription
nameslist of stringsPlayer names (case-insensitive).
excluded-nameslist of stringsPlayer names to exclude.
game-modeslist of stringscause-player only. Game modes (SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR).

game-modes applies to cause-player only; it has no effect under affected-player.

conditions { cause-player { names=[Notch, jeb_] game-modes=[CREATIVE] } }

item

Match the item material involved in an activity (e.g. drops, item use).

KeyTypeDescription
materialslist of stringsBukkit Material names.
tagslist of stringsNamespaced item tags.
excluded-materialslist of stringsMaterials to exclude.
excluded-tagslist of stringsItem tags to exclude.

named-causes

List of non-player, non-entity, non-block causes such as gravity or natural causes. Matches only activities whose cause is a named/string cause.

KeyType
named-causeslist of strings
excluded-named-causeslist of strings

permissions

List of permission nodes. Matches when the cause player has any listed permission. (No exclude variant.)

KeyType
permissionslist of strings

radius

Match activities within distance blocks of center, on each axis — i.e. a cube of center ± distance (inclusive), matching the lookup r: parameter. Both center and distance are required.

KeyType
radius.centercoordinate { x, y, z }
radius.distanceinteger (blocks)
conditions { radius { center { x=0, y=64, z=0 } distance=150 } }

worlds

Match by world name. Case-sensitive (exact world folder name).

KeyType
worldslist of strings
excluded-worldslist of strings