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

Filter "has_equipment" cannot test for an empty string ("") or air

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.0.21 Preview, 1.20.0
    • 1.18.12 Hotfix, 1.18.30, 1.18.31, 1.19.0, 1.19.20
    • None
    • Confirmed
    • Windows
    • 875769

      The bug

      When attempting to test for empty equipment using the "has_equipment" filter, the IDs "air" and an empty string ("") both fail. This leaves no way to test if the hand is empty through filters, short of negating a filter testing every single item in the game.

      Steps to reproduce:

      The supplied behavior pack modifies the player's behavior to include an additional trigger; it tests to see if the player is sneaking, and if they are either holding air or an empty string ("").

      • Create a new world with Holiday Creator Features enabled (or use an existing one).
      • Install the attached behavior pack and apply it to a world.
      • Once in the world, sneak with an empty hand. This should meet all the conditions for an event to trigger a command.
      • Observe chat for a success message.

      Nothing occurs. The filter looking for air and looking for an empty string could not succeed.

            Sprunkles Sprunkles
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: