Combat Status Fact
Combat Status Fact
A fact that returns 1 if the player is currently in combat, and 0 otherwise. Combat is defined by the CombatListener tracking hits.
字段
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
group | Ref<GroupEntry> | — | — |
thresholdSeconds | Var<Int> | 10 | — |
TypeWriter 通用字段(comment)
| 字段 | 类型 | 默认值 | 描述 |
|---|---|---|---|
comment | String | — | — |
How to use it
The fact is 1 for thresholdSeconds after the player last dealt or received damage from another entity, and 0 otherwise. It is cleared when the player quits. Use it in a criteria, for example to refuse a teleport action during a fight.