Skip to content

Commit

Permalink
adapted to mc 1.21.22
Browse files Browse the repository at this point in the history
  • Loading branch information
odorajbotoj committed Sep 3, 2024
1 parent ee846ec commit 4465a2a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 4 additions & 4 deletions behavior_pack/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"version": [
1,
1,
0
1
],
"min_engine_version": [
1,
21,
0
22
]
},
"modules": [
Expand All @@ -25,14 +25,14 @@
"version": [
1,
1,
0
1
]
}
],
"dependencies": [
{
"module_name": "@minecraft/server",
"version": "1.12.0-beta"
"version": "1.14.0-beta"
}
],
"metadata": {
Expand Down
3 changes: 1 addition & 2 deletions tools/localDeploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ const DIR = `${process.env.LOCALAPPDATA}/Packages/Microsoft.MinecraftUWP_8wekyb3
fs.mkdirSync(DIR, { recursive: true }, (err) => { if (err) throw err; });

// copy files
fs.cpSync(`behavior_pack/manifest.json`, `${DIR}/manifest.json`);
fs.cpSync(`behavior_pack/pack_icon.png`, `${DIR}/pack_icon.png`);
fs.cpSync(`behavior_pack/`, `${DIR}/`, { recursive: true });
fs.cpSync(`src_out/`, `${DIR}/`, { recursive: true });
3 changes: 1 addition & 2 deletions tools/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ const NAME = process.env.npm_package_name;
fs.mkdirSync(`build/${NAME}/`, { recursive: true }, (err) => { if (err) throw err; });

// copy files
fs.cpSync(`behavior_pack/manifest.json`, `build/${NAME}/manifest.json`);
fs.cpSync(`behavior_pack/pack_icon.png`, `build/${NAME}/pack_icon.png`);
fs.cpSync(`behavior_pack/`, `build/${NAME}/`, { recursive: true });
fs.cpSync(`src_out/`, `build/${NAME}/`, { recursive: true });

// archive
Expand Down

0 comments on commit 4465a2a

Please sign in to comment.