#How do link my scripts to my manifest?

1 messages · Page 1 of 1 (latest)

covert rapids
#

I have a veinMine.js and a treeCapitator.js but I don't know how to properly link them all in my behavior pack.

opaque talon
#

You need to import your other files in the main file

#

You can't (and you dont need) specify more than one file in the manifest!

covert rapids
#

So what does the module section do then?

opaque talon
#

Huh

covert rapids
#

sorry very broad. CoPilot on VS Code told me that the module section could be used to turn some behaviors on and others off. But if you can't specify more than one file in the manifest I don't think what i said could be true. Thoughts?

opaque talon
#

Have more than one script file?

covert rapids
#

more than one script module i suppose. i don't know how it would work.

opaque talon
#

Not possible, and unnecesary probably?

#

As i said before, you can import your other files into the main file (specified in your manifest) like this:

import './treeCapitator.js'
import './veinMine.js'
#

Sorry if its not what are you looking for