Update criteria documentation authored by Ashijin's avatar Ashijin
...@@ -17,8 +17,19 @@ This lists all criteria currently available. Click on them for more details! ...@@ -17,8 +17,19 @@ This lists all criteria currently available. Click on them for more details!
| **[Conditional][]** | Simply checks periodically if the player meets the given conditions | | **[Conditional][]** | Simply checks periodically if the player meets the given conditions |
| [BlockBreak][] | Triggered when the player breaks a certain block | | [BlockBreak][] | Triggered when the player breaks a certain block |
| [BlockPlace][] | Triggered when the player places a certain block | | [BlockPlace][] | Triggered when the player places a certain block |
| [Craft][] | Triggered when the player crafts a matching item |
| [DamageDealt][] | Triggered when the player damages a matching entity |
| [DamageTaken][] | Triggered when the player takes matching damage |
| [Enchant][] | Triggered when the player enchants a matching item |
| [Fish][] | Triggered when the player fishes or hooks a matching catch |
| [ItemConsume][] | Triggered when the player consumes a matching item |
| [ItemPickup][] | Triggered when the player picks up a matching item |
| [KillMob][] | Triggered when the player kills a certain type of mob | | [KillMob][] | Triggered when the player kills a certain type of mob |
| [KillMythicMob][] | Triggered when the player kills a certain type of Mythic mob | | [KillMythicMob][] | Triggered when the player kills a certain type of Mythic mob |
| [PlayerInteract][] | Triggered when the player interacts with a matching item or block |
| [PlayerStatistic][] | Triggered when a Bukkit player statistic increases |
| [ProjectileHit][] | Triggered when a player-shot projectile hits something matching |
| [Trade][] | Triggered when the player takes a matching villager trade result |
Shared Options Shared Options
--------- ---------
...@@ -29,18 +40,33 @@ All criteria share the following options. ...@@ -29,18 +40,33 @@ All criteria share the following options.
| Amount | The amount of times the criteria must be triggered | 1 | | Amount | The amount of times the criteria must be triggered | 1 |
| Conditions | A list of Mythic conditions to check against | None | | Conditions | A list of Mythic conditions to check against | None |
Matcher Notes
---------
Several criteria support comma-separated values, such as `ZOMBIE,SKELETON` or `RIGHT_CLICK_BLOCK,LEFT_CLICK_BLOCK`.
Item-based criteria use MythicMobs' `BukkitItemMatcher`. These criteria can use a single `Item` value, a comma-separated value, or an `Items` list. They also support the following item matcher options when available.
| Attribute | Description | Default |
|--------------------|-----------------------------------|-----------|
| Strict / Exact | Requires stricter item data matching | false |
| VanillaOnly / Vanilla | Restricts matching to vanilla item data | false |
| Inverted / Blacklist | Progresses when the item does not match the configured item list | false |
[Manual]: /criteria/manual [Manual]: /criteria/manual
[Conditional]: /criteria/conditional [Conditional]: /criteria/conditional
[BlockBreak]: /criteria/blockbreak [BlockBreak]: /criteria/blockbreak
[BlockPlace]: /criteria/blockplace [BlockPlace]: /criteria/blockplace
[Craft]: /criteria/craft
[DamageDealt]: /criteria/damagedealt
[DamageTaken]: /criteria/damagetaken
[Enchant]: /criteria/enchant
[Fish]: /criteria/fish
[ItemConsume]: /criteria/itemconsume
[ItemPickup]: /criteria/itempickup
[KillMob]: /criteria/killmob [KillMob]: /criteria/killmob
[KillMythicMob]: /criteria/killmythicmob [KillMythicMob]: /criteria/killmythicmob
[PlayerInteract]: /criteria/playerinteract
[PlayerStatistic]: /criteria/playerstatistic
[ProjectileHit]: /criteria/projectilehit
[Trade]: /criteria/trade