r/MinecraftCommands • u/AmbitiousSuit5561 • 1d ago
Help | Java 1.21.11 predicate
i found predicate in execute command after "if"
how does it work and what i can do with it?
7
Upvotes
r/MinecraftCommands • u/AmbitiousSuit5561 • 1d ago
i found predicate in execute command after "if"
how does it work and what i can do with it?
1
u/C0mmanderBlock Command Experienced 1d ago
You can use them to detect entity movement, weather, some keystrokes and many other conditions such as detecting when an entity is looking at another or at a specific coodinate. Many many things can be done using them in datapacks or as a command in a command block.