Filters¶
All 16. A filter is a key under filters: with a list. Lists accept
* and wildcards at either end (*_ore, oak_*). An empty list matches
everything.
| filter | keeps the firing only when |
|---|---|
blocks |
Only these block types (wildcards ok) |
entities |
Only these entity/victim types |
items |
Only these item types (the context item) |
held |
Only while holding these in the main hand |
worlds |
Only in these worlds |
biomes |
Only in these biomes |
causes |
Only these damage/teleport causes |
projectiles |
Only these projectile types |
inventories |
Only these inventory types |
commands |
Only these commands (first word) |
effects |
Only these potion effects |
advancements |
Only these advancements (namespaced key) |
gamemodes |
Only in these gamemodes |
victim_is_player |
Only when the victim is (true) / is not (false) a player |
victim_conditions |
Conditions the victim must meet (victim must be a player) |
player_conditions |
Extra conditions on the player, as a list |
victim_conditions and player_conditions take a list of condition blocks,
so any condition can be applied to either side of a fight.