author | ms.author | title | description | ms.service |
---|---|---|---|---|
mammerla |
mikeam |
Entity Documentation - was_last_hurt_by |
A reference document detailing the 'was_last_hurt_by' entity filter |
minecraft-bedrock-edition |
Tests if the subject is the last player who attacked the entity in the last 400 seconds, or the last mob to do so in the last 60 seconds.
Options | Description |
---|---|
!= | Test for inequality. |
< | Test for less-than the value. |
<= | Test for less-than or equal to the value. |
<> | Test for inequality. |
= | Test for equality. |
== | Test for equality. |
> | Test for greater-than the value. |
>= | Test for greater-than or equal to the value. |
equals | (Default). Test for equality. |
not | Test for inequality. |
Options | Description |
---|---|
block | The block involved with the interaction. |
damager | The damaging entity involved with the interaction. |
other | The other member of an interaction, not the caller. |
parent | The caller's current parent. |
player | The player involved with the interaction. |
self | (Default.) The entity or object calling the test |
target | The caller's current target. |
Options | Description |
---|---|
value | (Optional) true or false. |
{ "test": "was_last_hurt_by", "subject": "self", "operator": "equals", "value": "true" }
{ "test": "was_last_hurt_by" }