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

It's not posible to specify block type in the query.is_item_name_any query

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • None
    • 1.20.1 Hotfix
    • None
    • Unconfirmed
    • Windows

      It's not posible to specify block type in the query.is_item_name_any query, that means that you can not use it to check for certain type block like "acacia planks", instead it's limited to 
      query.is_item_name_any('<slot>', 'minecraft:planks'), and that's only able to look for the oak planks.

      Actually it's not a bug, just something unfinished, but it's more important than a simple suggestion (since all who use the Mojang language will probably need it at some point).
       
      What I expected to happen:

      It would be fine that you could specify block type by using the typical syntax, that's this way: query.is_item_name_any('<slot>', 'minecraft:planks:4'). This query would be expected to check for acacia planks.

      What actually happened:

      There is no way to use the menthioned query (query.is_item_name_any) to check for certain block type.

      Steps to Reproduce:
      Use the query like it's suggested, inside a resource or behavior pack, it just won't work if it looks for certain block type.
       

            FuRRRaira Alberto López
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: