Skip to content

Commit

Permalink
Add copper and tin ingots and ores for mods
Browse files Browse the repository at this point in the history
Ref GH-13
  • Loading branch information
deathcap committed Mar 10, 2014
1 parent 58d5bc3 commit 1b9c88e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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);
}
Expand Down
Binary file added textures/blocks/copper_ore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/blocks/tin_ore.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/items/copper_ingot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added textures/items/tin_ingot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1b9c88e

Please sign in to comment.