-
Bug
-
Resolution: Fixed
-
1.19.80.22 Preview, 1.19.70, 1.19.71, 1.19.72, 1.19.73
-
Confirmed
-
Windows
-
999130
To recreate: (allay runtime)
"on_interact": { "filters": { // is a player sneaking? working 1.19.63, broken 1.19.70 "all_of": [ {"test":"is_family", "subject":"other", "operator":"equals", "value":"player"}, {"test":"is_sneaking", "subject":"other", "operator":"equals", "value":true} ] }, "event": "demo:sneak_mode", "target": "self" }, "swing": true, "interact_text": "give", "give":true
expected result and (pre- 1.19.70 update) result: demo:sneak_mode event fires, interactive text appears for game controllers "give"
current result: demo:sneak_mode only fires if player is empty handed. After rigorous testing today, I found out the MOLANG query.is_sneaking is returning a value of 0.0 when player is sneaking, but has item in hand. query.is_sneaking returns 1.0 ONLY if player sneaking AND main_hand is empty.
Only main_hand was checked in my testing. is_sneaking Filters in other components were not examined by me. Again, this was using an allay runtime on an entitly
- is duplicated by
-
MCPE-168679 Using the "is_sneaking" interact filter while holding an item doesn't work
- Resolved
-
MCPE-168797 is_sneaking == true can no longer be combined with has_equipement in Behavior Packs
- Resolved
- relates to
-
MCPE-168280 Unable to place blocks on interactable blocks when sneaking
- Resolved
-
MCPE-168548 Interaction with the armor stand depends on whether the player is sneaking or not, and not on pressing the shift button
- Resolved
-
MCPE-168748 Allay has "open" inventory helper dialog
- Reopened