Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#file creates erroneous files in root data pack folder #37

Open
Nixinova opened this issue Apr 11, 2021 · 1 comment
Open

#file creates erroneous files in root data pack folder #37

Nixinova opened this issue Apr 11, 2021 · 1 comment

Comments

@Nixinova
Copy link

Nixinova commented Apr 11, 2021

Using #file: with content above it creates erroneous files that are placed in the root data pack directory.

Example:

#Header#
#file: ./x
/say hi
#file: ./y
/say hello

When compiled, the following occurs:

 Generated    #Header#.mcfunction
 Generated    .//data/DATAPACK/functions/x.mcfunction
 Generated    .//data/DATAPACK/functions/y.mcfunction

The content above the first #file should either be:

  1. disregarded, or
  2. 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.
@Nixinova
Copy link
Author

Also, the syntax of .//data (erroneous ./) is a minor issue.

@Nixinova Nixinova changed the title Using #file: creates an erroneous console message Using #file: creates extra files Apr 11, 2021
@Nixinova Nixinova changed the title Using #file: creates extra files #file creates erroneous files in root data pack folder Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant