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

Hasitem filter accepts negative data numbers.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.19.10.22 Preview, 1.19.1 Switch, 1.19.0
    • None
    • Unconfirmed
    • Windows

      When using the hasitem filter, the hasitem filter will accept negative data values.

      Steps to Reproduce:

      1. Open a Minecraft World.
      2. Run /testfor @a[hasitem=\{item=allow,data=-5}]
      3. Observe

      Observed Results:

      Game accepts negative value

      Expected Results:

      Game should not accept a negative value

            Free_World Free_World
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: