If you put a command to run in the first line of the txt file of a function it will not run. Example:
Doesn't work:
/say 1
/say 2
Expected output: 1, 2 Actual output: 2
Works:
/say 1
/say 2
Expected output: 1, 2 Actual output: 1, 2
If you put a command to run in the first line of the txt file of a function it will not run. Example:
Doesn't work:
/say 1
/say 2
Expected output: 1, 2 Actual output: 2
Works:
/say 1
/say 2
Expected output: 1, 2 Actual output: 1, 2
Unconfirmed
Minecraft 1.12 Pre-Release 1, Minecraft 1.12 Pre-Release 2
Retrieved
Your file works exactly as it should for me. I get "1" and "2" in the chat.
Do you get any error messages? Maybe unknown command? If so, that's a sign that your editor inserted some junk into the file (such as a unicode BOM)