Please add an "OR" operator to the hasitem target selector filter so we can check if a player has any of multiple items in a single command. Current Problem: Right now,we have to use multiple separate commands to check for different items: ```mcfunction execute as @a[hasitem={item="minecraft:diamond"}] run ... execute as @a[hasitem={item="minecraft:emerald"}] run ... execute as @a[hasitem={item="minecraft:iron_ingot"}] run ... ``` Requested Solution: Allow syntax like this to check for multiple items in one command: ```mcfunction execute as @a[hasitem={item="minecraft:diamond"|item="minecraft:emerald"|item="minecraft:iron_ingot"}] run ... ``` Or any similar syntax that lets us check for "any of these items" instead of "all of these items." Why This Matters: · Performance: Reduces command block lag by needing fewer commands · Simplicity: Makes map-making easier and more accessible · Organization: Creates cleaner, more readable command structures · Logical: Matches how players naturally think ("if they have any valuable item") This would be a huge quality-of-life improvement for map makers, mini-game creators, and anyone using command blocks in Bedrock Edition.
Please sign in to leave a comment.
0 Comments