When there is a datapack loaded in the world and the if function
execute subcommand is ran execute if function namespace:path
it needs a command to run if that succeeds or fails execute if function namespace:path run ...
however other subcommands like `execute if entity @s` succeed with returning 0 or 1 or saying test failed or passed without execute if entity @s run ...
but if function
gives unknown or incomplete command.
Thank you for your report!
We're actually already tracking this issue in MC-267799, so this ticket is being resolved and linked as a duplicate.
However, that ticket has already been resolved as invalid as it is a feature request. Please use the feedback server linked below to give suggestions for the game.
Please be sure to use the search feature before creating bug reports here to see if the issue has already been reported.
Quick Links:
📗 Tracker Guidelines | 🛠 Community Support | 📧 Mojang Support | 🔑 Account Support | ✍️ Feedback Discord