pages235/scripts/downloadSoundsMap.mjs
Vitaly df442338f8
feat(sounds): Add sound variants and resource pack support! (#258)
feat: add in-game music support! Enable it with `options.enableMusic = true`
2025-01-29 04:54:51 +03:00

10 lines
369 B
JavaScript

import fs from 'fs'
const url = 'https://github.com/zardoy/minecraft-web-client/raw/sounds-generated/sounds-v2.js'
const savePath = 'dist/sounds.js'
fetch(url).then(res => res.text()).then(data => {
fs.writeFileSync(savePath, data, 'utf8')
if (fs.existsSync('.vercel/output/static/')) {
fs.writeFileSync('.vercel/output/static/sounds.js', data, 'utf8')
}
})