Uploaded image for project: 'Bedrock Dedicated Server'
  1. Bedrock Dedicated Server
  2. BDS-18223

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.19.71
    • None
    • Unconfirmed

      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. 

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

              Created:
              Updated:
              Resolved: