diff --git a/scripts/generate.js b/scripts/generate.js index 8c3fd24..3c71150 100644 --- a/scripts/generate.js +++ b/scripts/generate.js @@ -11,6 +11,7 @@ var outSP = 'ProgrammerArt-StitchPack.zip'; var image2tp = require('./texturepack_data.js'); var rpAdded = require('./resourcepack_data.js'); +var modpackAs = require('./modpack_data.js'); var zipOpts = {base64:false, compression:'DEFLATE', binary:true}; var fileOpts = {binary:true}; @@ -97,6 +98,15 @@ function processTextures(thisRoot, category, tpPrefix, rpPrefix) { rpAdded[category][nameRP] = true; var pathRP = rpPrefix + nameRP + '.png'; zipRP.file(pathRP, new Uint8Array(buffer), fileOpts); + } else if (modpackAs[category][nameRP] !== undefined) { + // part of resource pack for an addon modification; add for each + var modRenames = modpackAs[category][nameRP]; + for (var j = 0; j < modRenames.length; j += 1) { + var modRename = modRenames[j]; + var pathRP = modRename + '.png'; + + zipRP.file(pathRP, new Uint8Array(buffer), fileOpts); + } } else { console.log("Unknown file: " + file); } diff --git a/textures/blocks/copper_ore.png b/textures/blocks/copper_ore.png new file mode 100644 index 0000000..5e563b8 Binary files /dev/null and b/textures/blocks/copper_ore.png differ diff --git a/textures/blocks/tin_ore.png b/textures/blocks/tin_ore.png new file mode 100644 index 0000000..872d5f1 Binary files /dev/null and b/textures/blocks/tin_ore.png differ diff --git a/textures/items/copper_ingot.png b/textures/items/copper_ingot.png new file mode 100644 index 0000000..5abb7f4 Binary files /dev/null and b/textures/items/copper_ingot.png differ diff --git a/textures/items/tin_ingot.png b/textures/items/tin_ingot.png new file mode 100644 index 0000000..7317e7d Binary files /dev/null and b/textures/items/tin_ingot.png differ