Entity Documentation - has_property
Tests for the presence of a property of the subject entity.
Parameters
Name | Default Value | Type | Description |
---|---|---|---|
subject | self | String | (Optional) The subject of this filter test. |
operator | equals | String | (Optional) The comparison to apply with 'value'. |
value | not set | String | (Required) The property name to look for. |
operator
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 | Test for equality. |
not | Test for inequality. |
Examples
Full
{ "test": "has_property", "subject": "self", "operator": "equals", "value": "minecraft:can_climb" }
Short (using Defaults)
{ "test": "has_property", "value": "minecraft:can_climb" }
Vanilla entity examples
No entities currently use has_property
Vanilla entities using has_property
No entities currently use has_property
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for