Mojira Archive
MCPE-172349

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

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.
 

Cannot Reproduce

Alberto López

2023-06-27, 08:41 PM

2024-02-14, 12:15 PM

2024-02-14, 12:15 PM

3

3

Unconfirmed

1.20.1 Hotfix

-