The content above the first #file should either be:
disregarded, or
compiled to a folder in its local directory with the same name as the mcscript filename. E.g., if the example above was in file A.mcscript it should be compiled to .//data/DATAPACK/functions/A.mcfunction, not ./#Header#.mcfunction.
Using
#file:
with content above it creates erroneous files that are placed in the root data pack directory.Example:
When compiled, the following occurs:
The content above the first
#file
should either be:A.mcscript
it should be compiled to.//data/DATAPACK/functions/A.mcfunction
, not./#Header#.mcfunction
.