Trying to use this command (while within a wheat block) to detect whether a wheat block is at age 7:
/execute if predicate {condition:"minecraft:block_state_property",block:"minecraft:wheat",properties:{age:"7"}} run tellraw @a "hi"
and it doesn’t work. Nothing is printed in the chat.
If I try this command instead, it does work:
/execute if block ~ ~ ~ wheat[age="7"] run tellraw @a "hi"
A location_check
predicate also works:
/execute if predicate {condition:"minecraft:location_check",predicate:{block:{blocks:"wheat",state:{age:"7"}}}} run tellraw @a "hi"
So the problem seems to be with the block_state_property
predicate. I attached a video showing me using these commands.
Environment
Minecraft Java Edition 1.21.7
Attachments
Comments 0
No comments.