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
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.
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 thedata
directory in a datapack.The
data
key is optional, and placed after thedir
anddesc
, beforescale
Example:
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 overridetest.mcfunction
in the same namespace in the data folder if it happens to be there.