-
Bug
-
Resolution: Duplicate
-
None
-
1.19.80.22 Preview, 1.19.72
-
None
-
Unconfirmed
-
Multiple
Attempting to combine a check for is_sneaking true can no longer be combined with a has_equipement check.
A simple repro is to create a new behavior pack with the default snow_golem entity from the 1.19.70.2 samples pack. Change the "interactions" all_of check to:
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears"},
{ "test": "is_family", "subject": "other", "value": "player"},
{ "test": "is_sneaking", "subject": "other", "value": true },
{ "test": "has_component", "operator": "!=", "value": "minecraft:is_sheared"}
The expected result here is that the Snow Golem can only be sheared when crouching. The observed result is that the Snow Golem cannot be sheared at all. This also reproduces if the has_equipment domain is changed to "any."
If the conditions are changed to remove has_equipment and keep is_sneaking == true, then the Snow Golem can be sheared when crouching as expected.
- duplicates
-
MCPE-168449 is_sneaking filter returns 0.0 (false) when player is sneaking & has item in main_hand
- Resolved