Incomplete commands in functions are valid, and they also seem to contribute to the total number of commands, this is both visible by the response message, and by limiting maxCommandChainLength
. For example, the following commands are not marked as incomplete in a function, and so you are still be able to run the function:
advancement grant @s only
clone ~ ~ ~
tellraw @s
effect give
execute facing
Linked issues
Comments


Thank you for your report!
We're tracking this issue in MC-165773, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Mojang Support – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! Please report any issues in Discord or Reddit

MC-165773 only talks about execute though, this is about all commands, so I don't see how/why this is a duplicate?

Affects 1.18. No errors are logged when loading the datapack or running the function. The function debug report looks like this:
utils:errors
[C] advancement grant @s only
[E] Unknown or incomplete command, see below for error [C] clone ~ ~ ~
[E] Unknown or incomplete command, see below for error [C] tellraw @s
[E] Unknown or incomplete command, see below for error [C] effect give
[E] Unknown or incomplete command, see below for error [C] execute facing
[E] Unknown or incomplete command, see below for error

Affects 1.18.1

Affects 1.19

Confirmed for 1.19.3 and 23w07a.
Can confirm.