create-mcbepack 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +197 -0
- package/out/index.js +60 -0
- package/out/prompt.js +92 -0
- package/out/types.js +1 -0
- package/out/utils/collect-info.js +54 -0
- package/out/utils/create-files.js +77 -0
- package/out/utils/generate-files.js +191 -0
- package/package.json +27 -0
- package/templates/README.md +57 -0
- package/templates/pack_icon.png +0 -0
package/package.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-mcbepack",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "out/index.js",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "tsc --watch",
|
|
8
|
+
"build": "tsc"
|
|
9
|
+
},
|
|
10
|
+
"bin": {
|
|
11
|
+
"create-mcbepack": "./out/index.js"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@types/bun": "latest"
|
|
15
|
+
},
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"typescript": "^5"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@mcbepack/common": "^1.0.0",
|
|
21
|
+
"enquirer": "^2.4.1",
|
|
22
|
+
"node-fetch": "^3.3.2",
|
|
23
|
+
"nodemon": "^3.1.11",
|
|
24
|
+
"picocolors": "^1.1.1",
|
|
25
|
+
"uuid": "^13.0.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
This is a **MCBEPACK** project bootstrapped with [`create-mcbepack`](https://npmjs.com/package/create-mcbepack)
|
|
2
|
+
|
|
3
|
+
## Getting Started
|
|
4
|
+
|
|
5
|
+
First, install dependencies:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bun install
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Then, run the development server:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bun run dev
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
You can start editing your addon by modifying files in the `src` directory. The development server will automatically watch for changes and sync them to your Minecraft development folder.
|
|
18
|
+
|
|
19
|
+
## Available Commands
|
|
20
|
+
|
|
21
|
+
### For general development
|
|
22
|
+
|
|
23
|
+
- **`bun run build:zip`** - Build the addon as a .zip file
|
|
24
|
+
- **`bun run build:mcpack`** - Build the addon as a .mcpack file
|
|
25
|
+
- **`bun run build:addon`** - Build the addon as a .mcaddon file
|
|
26
|
+
|
|
27
|
+
### For script development
|
|
28
|
+
|
|
29
|
+
- **`bun run dev`** - Start development server with file watching
|
|
30
|
+
- **`bun run update:stable`** - Update the addon to the latest stable version
|
|
31
|
+
- **`bun run update:beta`** - Update the addon to the latest beta version
|
|
32
|
+
- **`bun run update:preview`** - Update the addon to the latest preview version
|
|
33
|
+
|
|
34
|
+
## Development
|
|
35
|
+
|
|
36
|
+
Edit your addon code in the `scripts` directory. The development server will automatically:
|
|
37
|
+
|
|
38
|
+
- Compile TypeScript/JavaScript code
|
|
39
|
+
- Sync changes to the Minecraft development folder
|
|
40
|
+
- Watch for file changes and rebuild automatically
|
|
41
|
+
|
|
42
|
+
### Configuration
|
|
43
|
+
|
|
44
|
+
Update `.env.local` to configure your Minecraft installation paths:
|
|
45
|
+
|
|
46
|
+
```env
|
|
47
|
+
BASE_PATH="C:\Users\YourName\AppData\Roaming\Minecraft Bedrock\Users\Shared\games\com.mojang"
|
|
48
|
+
RESOURCE_PATH="development_resource_packs"
|
|
49
|
+
BEHAVIOR_PATH="development_behavior_packs"
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Learn More
|
|
53
|
+
|
|
54
|
+
To learn more about MCBEPACK, take a look at the following resources:
|
|
55
|
+
|
|
56
|
+
- [MCBEPACK Documentation](https://docs.mbext.online/mcbepack) - learn about MCBEPACK features and API
|
|
57
|
+
- [MCBEPACK GitHub Repository](https://github.com/bugphxne/create-mcbepack) - your feedback and contributions are welcome!
|
|
Binary file
|