Skip to content

Commit 29509cd

Browse files
authored
fix: Use Bedrock GDK (#114)
1 parent 78ab19d commit 29509cd

71 files changed

Lines changed: 6734 additions & 3949 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

addon_starter/1_hello_world/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
PROJECT_NAME="aop_mobs"
2-
MINECRAFT_PRODUCT="BedrockUWP"
2+
MINECRAFT_PRODUCT="BedrockGDK"
33
CUSTOM_DEPLOYMENT_PATH=""

addon_starter/1_hello_world/package-lock.json

Lines changed: 64 additions & 178 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

addon_starter/1_hello_world/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Minecraft Add-On Hello World Project",
66
"private": true,
77
"devDependencies": {
8-
"@minecraft/core-build-tasks": "^5.2.0",
8+
"@minecraft/core-build-tasks": "^5.5.0",
99
"eslint-plugin-minecraft-linting": "^2.0.2",
1010
"source-map": "^0.7.4",
1111
"ts-node": "^10.9.1",

addon_starter/2_entities/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
PROJECT_NAME="aop_mobs"
2-
MINECRAFT_PRODUCT="BedrockUWP"
2+
MINECRAFT_PRODUCT="BedrockGDK"
33
CUSTOM_DEPLOYMENT_PATH=""

addon_starter/2_entities/package-lock.json

Lines changed: 64 additions & 178 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

addon_starter/2_entities/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Minecraft Add-On Entities Project",
66
"private": true,
77
"devDependencies": {
8-
"@minecraft/core-build-tasks": "^5.2.0",
8+
"@minecraft/core-build-tasks": "^5.5.0",
99
"eslint-plugin-minecraft-linting": "^2.0.2",
1010
"source-map": "^0.7.4",
1111
"ts-node": "^10.9.1",

addon_starter/README.md

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ products:
1414

1515
This sample demonstrates everything you need to have an add-on in Minecraft. There are three versions and progressions:
1616

17-
* `start` is a foundational starter project. It comes with a justjs-based workflow tool
18-
* `1_hello_world` is a basic entity that will show you that your add-on is working. It comes a mob that overrides the default cow in Minecraft
19-
* `2_entities` adds a set of entities (from the MCLive2022 add-on pack to the add-on)
20-
* `complete` adds more functionality and scripts to the add-on
17+
- `start` is a foundational starter project. It comes with a justjs-based workflow tool
18+
- `1_hello_world` is a basic entity that will show you that your add-on is working. It comes a mob that overrides the default cow in Minecraft
19+
- `2_entities` adds a set of entities (from the MCLive2022 add-on pack to the add-on)
20+
- `complete` adds more functionality and scripts to the add-on
2121

2222
## Prerequisites
2323

@@ -45,35 +45,35 @@ Visit the [Visual Studio Code website](https://code.visualstudio.com) and instal
4545

4646
1. Open a Windows Terminal or PowerShell window and change the working directory to your **myaddon** folder:
4747

48-
```powershell
49-
cd c:\projects\myaddon\
50-
```
48+
```powershell
49+
cd c:\projects\myaddon\
50+
```
5151

5252
1. Use NPM to install our tools:
5353

54-
```powershell
55-
npm i
56-
```
54+
```powershell
55+
npm i
56+
```
5757

5858
1. Use this shortcut command to open the project in Visual Studio Code:
5959

60-
```powershell
61-
code .
62-
```
60+
```powershell
61+
code .
62+
```
6363

6464
It might also ask you to install the Minecraft Debugger and Blockception's Visual Studio Code plugin, which are plugins to Visual Studio Code that can help with Minecraft development. Go ahead and do that, if you haven't already.
6565

6666
1. In Visual Studio Code, open the file `.env`. This contains the environment variables to use to configure project:
6767

6868
```
6969
PROJECT_NAME="starter"
70-
MINECRAFT_PRODUCT="BedrockUWP"
70+
MINECRAFT_PRODUCT="BedrockGDK"
7171
CUSTOM_DEPLOYMENT_PATH=""
7272
```
7373

7474
- **PROJECT_NAME** is used as the folder name under all the assets are going to be deployed inside the game directories (e.g., development_behavior_packs\\**PROJECT_NAME**, development_resource_packs\\**PROJECT_NAME**).
7575

76-
- **MINECRAFT_PRODUCT**. You can choose to use either Minecraft or Minecraft Preview to debug and work with your scripts. These are the possible values: **BedrockUWP, PreviewUWP, Custom**.
76+
- **MINECRAFT_PRODUCT**. You can choose to use either Minecraft or Minecraft Preview to debug and work with your scripts. These are the possible values: **BedrockGDK, BedrockGDK, Custom**.
7777
Use **Custom** in case of deploy on any other path.
7878

7979
- **CUSTOM_DEPLOYMENT_PATH**. In case of using **Custom** for **MINECRAFT_PRODUCT**, this is the path used to generate the assets.
@@ -100,7 +100,4 @@ With this starter, you've seen how to build a nice little add-on.
100100

101101
## Manifest
102102

103-
-[start](https://github.com/microsoft/minecraft-samples/blob/main/addon_starter/1_hello_world): This contains a starter add-on bare-minimum set of files.
104-
-[1_hello_world](https://github.com/microsoft/minecraft-samples/blob/main/addon_starter/1_hello_world): This contains a starter add-on with a basic starter entity.
105-
-[2_entities](https://github.com/microsoft/minecraft-samples/blob/main/addon_starter/2_entities): This contains a starter add-on with a full set of entities.
106-
-[complete](https://github.com/microsoft/minecraft-samples/blob/main/addon_starter/complete): This contains the finished add-on starter example.
103+
-[start](https://github.com/microsoft/minecraft-samples/blob/main/addon_starter/1_hello_world): This contains a starter add-on bare-minimum set of files. -[1_hello_world](https://github.com/microsoft/minecraft-samples/blob/main/addon_starter/1_hello_world): This contains a starter add-on with a basic starter entity. -[2_entities](https://github.com/microsoft/minecraft-samples/blob/main/addon_starter/2_entities): This contains a starter add-on with a full set of entities. -[complete](https://github.com/microsoft/minecraft-samples/blob/main/addon_starter/complete): This contains the finished add-on starter example.

addon_starter/complete/.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
PROJECT_NAME="aop_mobs"
2-
MINECRAFT_PRODUCT="BedrockUWP"
2+
MINECRAFT_PRODUCT="BedrockGDK"
33
CUSTOM_DEPLOYMENT_PATH=""

0 commit comments

Comments
 (0)