Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-168797

is_sneaking == true can no longer be combined with has_equipement in Behavior Packs

XMLWordPrintable

    • Icon: Bug 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. 

            Mykroft Mykroft
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: