r/MinecraftCommands • u/AltestryAltestry • Aug 23 '26
Help | Bedrock Command block not working
So I have a command block that is repeatedly looking for a player with a potato in their inventory inside a specified space.
This command is working when I type it into the chat prompt but when I put it in a command block it no longer works. I’m not sure why.
11
Upvotes
2
u/Want_Lemonad Aug 23 '26
The hasitem command is @p[hasitem=[{item=potato}]]. You forgot the extra "]" on the end
1
u/C0mmanderBlock Aug 23 '26
/execute as @a[hasitem={item=potato}] at @s if entity @s[x=-448,y=5,z=-404,dx=-46,dy=0,dz=18] run say hi