I'm getting a "Cannot find module" error. You'll need to move pack.mcmeta directly into "pack". For some reason, Minecraft's asset index file thinks that pack.mcmeta goes into the assets folder, but it doesn't. Make sure that pack.mcmeta is in the "pack" folder, not the "pack/assets" folder. Minecraft doesn't recognize the resource pack at all. (If you're using launcher profiles with different game directories, it might open a different folder instead - the resourcepacks folder of your game directory - but I imagine that if you're using launcher profiles, you already know that!) In the Minecraft game itself, open the Resource Pack selector (from the options screen), then click on the "Open Resource Packs Folder" button. minecraft - it will probably help you find the directory we're looking for. Profile folders don't contain the assets folder. minecraft folder? You might accidentally have gone to a profile folder instead (that is, the "Game Directory" option in the profile editor). If you running Linux: cd ~/.minecraft/assets. If you are running macOS: cd ~/Library/Application Support/minecraft/assets. If you are running Windows: cd %AppData%\.minecraft\assets. Note that you will need to replace (path to. It looks like you forgot to replace that line - go back to that section and read the text below: My console is telling me that it doesn't know of a directory called "(path to. You do need to run that version of Minecraft first, or else the assets won't be downloaded and the program won't be able to copy them. minecraft/assets/indexes folder, and the script should still work (but I make no guarantees). You can change 1.12-af to the name of any other file in the. entries ( objects )įor ( const [ file, = require ( './indexes/1.12-af.json' ) promisify ( require ( 'ncp' ) )Ĭonst entries = Object. promisify ( require ( 'mkdirp' ) )Ĭonst ncp = util. Okay actual code here -Ĭonst mkdirp = util. Obviously change this line if you want to download a different pack:Ĭonst sourceFile = require ( './indexes/1.12-af.json' ) You'll want to be using a relatively recenversion of Node - 8.0.0 or later.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |