|
172 | 172 | %code= html_escape('<can-fly/>') |
173 | 173 | %td |
174 | 174 | Match if the player can fly. |
| 175 | + %tr |
| 176 | + %td |
| 177 | + %pre |
| 178 | + %code= html_escape('<gliding/>') |
| 179 | + %td |
| 180 | + Match if the player is gliding with an elytra. |
| 181 | + %tr |
| 182 | + %td |
| 183 | + %pre |
| 184 | + %code= html_escape('<rank> </rank>') |
| 185 | + %td |
| 186 | + %a.left-ref-link{:href=>"#rank_score"} <i class="fa fa-chevron-down"></i> |
| 187 | + Match if the player or team's rank is within the specified range. |
| 188 | + %tr |
| 189 | + %td |
| 190 | + %pre |
| 191 | + %code= html_escape('<score> </score>') |
| 192 | + %td |
| 193 | + %a.left-ref-link{:href=>"#rank_score"} <i class="fa fa-chevron-down"></i> |
| 194 | + Match if the player or team's score is within the specified range. |
175 | 195 | %tr |
176 | 196 | %td |
177 | 197 | %pre |
|
391 | 411 | #### [Random Filter](id:randomFilter) |
392 | 412 |
|
393 | 413 | This filter will randomly `ALLOW` or `DENY` when evaluated in the context of an event. |
394 | | - Its value is a decimal number between 0 and 1, representing the probability of `ALLOW`. |
| 414 | + Its value is a decimal fraction between 0 and 1, representing the probability of `ALLOW`. |
395 | 415 |
|
396 | 416 | The value can also be an interval, in the form `[0, 1)`. |
397 | 417 | When the filter is evaluated, a random number is chosen, and the filter passes if the number falls within the filter's interval. |
|
418 | 438 | <!-- Any number from 0.25 to 0.75 including 0.25 but excluding 0.75 --> |
419 | 439 | <random>[0.25, 0.75)</random> |
420 | 440 |
|
| 441 | + |
| 442 | + :markdown |
| 443 | + <br/> |
| 444 | + #### [Rank & Score Filters](id:rank_score) |
| 445 | + |
| 446 | + The rank and score filters match if the team's or player's rank or score is a equal to a single value or within a range of values.<br/> |
| 447 | + The value can be an exact amount or a interval specifying a range. Only whole numbers are valid. |
| 448 | + |
| 449 | + Examples |
| 450 | + |
| 451 | + <!-- Match if the team (or player in ffa) rank is 3 --> |
| 452 | + <rank>3</rank> |
| 453 | + |
| 454 | + <!-- Match if team (or player in ffa) has a score from 5 to 10. --> |
| 455 | + <score>[5-10]</score> |
| 456 | + |
| 457 | + |
421 | 458 | :markdown |
422 | 459 | <br/> |
423 | 460 | #### [Objective Filter](id:objectiveFilter) |
|
0 commit comments