Skip to content

Conversation

@Mystievous
Copy link

Some datapacks benefit from including structures and similar files.

This PR adds the ability to define a data folder to directly copy into the compiled pack.
The folder should have the exact same directory structure as the data directory in a datapack.

The data key is optional, and placed after the dir and desc, before scale

Example:

dir "<World Dir>"
desc "Pack Description"
data "./pack_data"
scale 1000
./pack_data
-> namespace
----> structures
-------> structure.nbt

The files are copied after any other ones from the script are created, so that files with duplicate names can be ignored.
i.e. function test() in the cbscript will essentially override test.mcfunction in the same namespace in the data folder if it happens to be there.

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

Successfully merging this pull request may close these issues.

1 participant