Condition Name Pattern - TheComputerGeek2/MagicSpells GitHub Wiki

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 Options:

(Unsupported for now.)