Skip to content

Condition Name Pattern

JasperLorelai edited this page Jul 16, 2026 · 2 revisions

Source Code

Modifier condition: namepattern

Properties:

Property Value
Has Entity Target true
Has Location Target false

Description:

Passes if the entity's name, or the player's username or display name matches the regex pattern specified.

String Format Options:

Arguments:

  • pattern - Java regex pattern
- namepattern (pattern) [modifier action]

[Section Format](Modifiers#section-format-condition

(Unsupported for now.)

Clone this wiki locally