You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exporting blocks to a folder using the Minecraft Block Wizard on linux fails on the last step.
When attempting to export to a file, the wizard is attempting to create "blocks" directory, the leading forward slash is lost, resulting in a dialog box that does nothing.
VM608:1664 Error: ENOENT: no such file or directory, open '/home/nhardt/.local/share/mcpelauncher/games/com.mojang/development_behavior_packs/TestPack/manifest.json'
at Object.readFileSync (node:fs:453:20)
at t.readFileSync (node:electron/js2c/node_init:2:9771)
at <anonymous>:1649:25
at Array.forEach (<anonymous>)
at m (<anonymous>:1641:13)
at Cr.switchPage (<anonymous>:4572:27)
at DialogSidebar.onPageSwitch (<anonymous>:5053:50)
at DialogSidebar.setPage (dialog.js:522:39)
at HTMLLIElement.<anonymous>
Use case
I am developing on linux and running a bedrock server on linux. I am exporting the custom entities to the bedrock server, not a local install.
Notes
In the existing code, e.split(PathModule.sep) is returning the directory names, but it loses track that this is an absolute path. The entity wizard works, i think because it does not need to create an additional directory under development_behavior_packs. The code below fixes this issue on linux.
((function (e, t) {
// console.log("func args: " + e + " " + t)
// let a = e.split(PathModule.sep),
// o = Math.max(t.split(PathModule.sep).length - 1, 1);
// for (; o < a.length; o++) {
// let e = PathModule.join(...a.slice(0, o + 1));
// try {
// console.log("reading: " + e)
// d.readdirSync(e);
// console.log("read: " + e)
// } catch (t) {
// console.log("could not read, will make: " + e)
// d.mkdirSync(e);
// console.log("created " + e)
// }
// }
console.log("create paths: " + e + " and " + t)
try {
fs.mkdirSync(e, { recursive: true });
fs.mkdirSync(t, { recursive: true });
} catch (err) {
console.error('Error creating paths:', err);
}
})(PathModule.dirname(o), a),
"integrate" == e.export_mode && d.existsSync(o))
I would love it if I could select my working folders but just having this part working would be great! Thanks, this is great, fun software to use!
The text was updated successfully, but these errors were encountered:
Problem
Exporting blocks to a folder using the Minecraft Block Wizard on linux fails on the last step.
When attempting to export to a file, the wizard is attempting to create "blocks" directory, the leading forward slash is lost, resulting in a dialog box that does nothing.
Use case
I am developing on linux and running a bedrock server on linux. I am exporting the custom entities to the bedrock server, not a local install.
Notes
In the existing code, e.split(PathModule.sep) is returning the directory names, but it loses track that this is an absolute path. The entity wizard works, i think because it does not need to create an additional directory under development_behavior_packs. The code below fixes this issue on linux.
I would love it if I could select my working folders but just having this part working would be great! Thanks, this is great, fun software to use!
The text was updated successfully, but these errors were encountered: