Compare commits
7 Commits
6880cb6b52
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
82f91b43b1 | ||
|
|
fc1f6201c1 | ||
|
|
3d8c6fbcb0 | ||
|
|
8dffb6aae9 | ||
|
|
a70990a2b0 | ||
| bea3b5f6c0 | |||
|
|
942eb8bde6 |
43
MCHashtoName.js
Normal file
@@ -0,0 +1,43 @@
|
||||
const fs = require("fs")
|
||||
const { join, dirname } = require("path")
|
||||
|
||||
process.stdin.setEncoding("utf8");
|
||||
|
||||
function readlineSync(msg = "Input:") {
|
||||
return new Promise((resolve, reject) => {
|
||||
console.log(msg)
|
||||
process.stdin.resume();
|
||||
process.stdin.on("data", function (data) {
|
||||
process.stdin.pause();
|
||||
resolve(data.substring(0, data.length - 2));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
// entry point
|
||||
async function main() {
|
||||
let jsonpath = await readlineSync("Input the JSON Path:");
|
||||
let srcpath = await readlineSync("Input the src Path:");
|
||||
let distpath = await readlineSync("Input the dist Path:");
|
||||
|
||||
let json = JSON.parse(fs.readFileSync(jsonpath, "utf8"));
|
||||
let objects = json.objects;
|
||||
|
||||
Object.keys(objects).forEach(element => {
|
||||
let hash = objects[element].hash;
|
||||
let srcfilepath = join(srcpath, hash.substring(0, 2), hash);
|
||||
let distfilepath = join(distpath, element);
|
||||
|
||||
if (!fs.existsSync(distfilepath)) {
|
||||
fs.mkdirSync(dirname(distfilepath), { recursive: true });
|
||||
}
|
||||
|
||||
if (fs.existsSync(srcfilepath)) {
|
||||
fs.copyFileSync(srcfilepath, distfilepath);
|
||||
} else {
|
||||
console.log(`文件不存在:${srcfilepath}`)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
main();
|
||||
22436
MiniWorldRes/assets/minecraft/sounds.json
Normal file
22434
MiniWorldRes/assets/minecraft/sounds.json1
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/ambient/weather/rain1.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/ambient/weather/rain2.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/ambient/weather/rain3.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/ambient/weather/rain4.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/ambient/weather/rain5.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/ambient/weather/rain6.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/ambient/weather/rain7.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/ambient/weather/rain8.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/damage/death.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/damage/fallbig.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/damage/fallsmall.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/damage/hit1.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/damage/hit2.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/damage/hit3.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/fire/fire.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/fire/ignite.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/lava.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/lavapop.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/splash.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/splash2.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/swim1.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/swim2.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/swim3.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/swim4.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/liquid/water.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/bow.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/bowhit1.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/bowhit2.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/bowhit3.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/bowhit4.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/break.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/chestclosed.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/chestopen.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/click.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/door_close.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/door_open.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/eat1.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/eat2.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/eat3.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/explode1.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/explode2.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/explode3.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/explode4.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/fizz.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/random/fuse.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/tile/piston/in.ogg
Normal file
BIN
MiniWorldRes/assets/minecraft/sounds/tile/piston/out.ogg
Normal file
|
Before Width: | Height: | Size: 250 B After Width: | Height: | Size: 5.4 KiB |
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 276 B After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 9.3 KiB |
|
Before Width: | Height: | Size: 230 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 5.6 KiB |
|
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 271 B After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 265 B After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 165 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 165 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 268 B After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 221 B After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 202 B After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 196 B After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 60 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 53 KiB |
|
Before Width: | Height: | Size: 212 B After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 6.6 KiB |
|
Before Width: | Height: | Size: 196 B After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 246 B After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 233 B After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 210 B After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 186 B After Width: | Height: | Size: 5.2 KiB |
|
Before Width: | Height: | Size: 182 B After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 464 B After Width: | Height: | Size: 4.0 KiB |
|
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 220 B After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 337 B After Width: | Height: | Size: 3.5 KiB |