-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(features): Add a number of example features (#54)
- feat(features): Add a number of example features - Clean up various READMEs and other files
- Loading branch information
Showing
178 changed files
with
22,780 additions
and
36 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
page_type: sample | ||
author: mammerla | ||
description: A basic collection of example features and feature rules for Minecraft. | ||
ms.author: [email protected] | ||
ms.date: 10/09/2024 | ||
languages: | ||
- typescript | ||
products: | ||
- minecraft | ||
--- | ||
|
||
# Minecraft Custom Features Project | ||
|
||
This sample demonstrates a set of different custom items with different capabilities. Within each subfolder is a behavior pack and a resource pack. These packs can be deployed to Minecraft using NPM. | ||
|
||
`basic_orange_ore` - is a very basic "hello world" style feature that will place many geodes full of "orange ore" within a world. | ||
`example_feature_set` - will place a number of different elements within the world. Note that it will place an oversupply of monument elements and apple blocks, so please do not use this within a world. | ||
|
||
## Prerequisites | ||
|
||
**Install Node.js tools, if you haven't already** | ||
|
||
We're going to use the package manager [npm](https://www.npmjs.com/package/npm) to get more tools to make the process of building our project easier. | ||
|
||
Visit [https://nodejs.org/](https://nodejs.org). | ||
|
||
Download the version with "LTS" next to the number and install it. (LTS stands for Long Term Support, if you're curious.) In the Node.js Windows installer, accept the installation defaults. You do not need to install any additional tools for Native compilation. | ||
|
||
**Install Visual Studio Code, if you haven't already** | ||
|
||
Visit the [Visual Studio Code website](https://code.visualstudio.com) and install Visual Studio Code. | ||
|
||
### Summary | ||
|
||
Use `npm run local-deploy` to deploy these features over into Minecraft. | ||
|
||
## Manifest | ||
|
||
- [basic_orange_ore](https://github.com/microsoft/minecraft-samples/blob/main/custom_features/custom_orange_ore): This contains a simple end to end example of a feature. | ||
- [example_feature_set](https://github.com/microsoft/minecraft-samples/blob/main/custom_features/example_feature_set): A mega pack of many examples of different features and feature rules. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
PROJECT_NAME="basic_orange_ore" | ||
MINECRAFT_PRODUCT="BedrockUWP" | ||
CUSTOM_DEPLOYMENT_PATH="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": false, | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"printWidth": 120, | ||
"endOfLine": "auto" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"esbenp.prettier-vscode", | ||
"blockceptionltd.blockceptionvscodeminecraftbedrockdevelopmentextension", | ||
"mojang-studios.minecraft-debugger" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "minecraft-js", | ||
"request": "attach", | ||
"name": "Debug with Minecraft", | ||
"mode": "listen", | ||
"preLaunchTask": "build", | ||
"sourceMapRoot": "${workspaceFolder}/dist/debug/", | ||
"generatedSourceRoot": "${workspaceFolder}/dist/scripts/", | ||
"port": 19144 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
{ | ||
"git.ignoreLimitWarning": true, | ||
"editor.formatOnSave": true, | ||
//"typescript.preferences.importModuleSpecifierEnding": "js", | ||
//"javascript.preferences.importModuleSpecifierEnding": "js", | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[css]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"files.exclude": { | ||
"**/build": true, | ||
"**/toolbuild": true, | ||
"**/out": true, | ||
"**/dist": true, | ||
"**/min-maps": true, | ||
"**/res": true, | ||
"**/node_modules": true, | ||
"**/jsn": true, | ||
"**/web": true, | ||
"**/vsc": true, | ||
"**/app/bin": true, | ||
"**/.vscode-test-web": true | ||
}, | ||
"cSpell.words": [ | ||
"appsvc", | ||
"appweb", | ||
"asar", | ||
"asyncclose", | ||
"asyncexecute", | ||
"asyncopen", | ||
"asyncreload", | ||
"asyncshow", | ||
"asyncstart", | ||
"attachables", | ||
"autogen", | ||
"autogenerated", | ||
"autoscript", | ||
"babylonjs", | ||
"bigints", | ||
"bpack", | ||
"cand", | ||
"canonicalize", | ||
"carto", | ||
"char", | ||
"Cheevos", | ||
"codepoint", | ||
"Compactable", | ||
"componentized", | ||
"Cooldown", | ||
"dataform", | ||
"dcommand", | ||
"delim", | ||
"denum", | ||
"Doced", | ||
"docfx", | ||
"errorable", | ||
"ERRORHELP", | ||
"exportworld", | ||
"flatpack", | ||
"flav", | ||
"fluentui", | ||
"fortawesome", | ||
"gamemode", | ||
"Gameplay", | ||
"Gamertags", | ||
"gametest", | ||
"glowstone", | ||
"humanify", | ||
"i", | ||
"iaccept", | ||
"iagree", | ||
"id", | ||
"Illager", | ||
"isloaded", | ||
"Jsons", | ||
"jszip", | ||
"jszipo", | ||
"last", | ||
"leasher", | ||
"leveldat", | ||
"localforage", | ||
"mainapp", | ||
"mainhand", | ||
"mcaddon", | ||
"mcdev", | ||
"mcfunction", | ||
"mcpack", | ||
"mcproject", | ||
"mcstructure", | ||
"mct", | ||
"mctools", | ||
"mcworld", | ||
"mult", | ||
"netherite", | ||
"nodebuffer", | ||
"northstar", | ||
"nums", | ||
"octokit", | ||
"oper", | ||
"Packument", | ||
"Passcode", | ||
"passcodes", | ||
"persistable", | ||
"piid", | ||
"portv", | ||
"prefs", | ||
"prid", | ||
"prismarine", | ||
"protogs", | ||
"purpur", | ||
"redownloaded", | ||
"Regs", | ||
"Reloadable", | ||
"relpath", | ||
"repo", | ||
"repos", | ||
"rescan", | ||
"rpack", | ||
"rshift", | ||
"snbt", | ||
"struct", | ||
"structs", | ||
"sugg", | ||
"tbar", | ||
"texturepack", | ||
"threed", | ||
"titlebar", | ||
"toolbuild", | ||
"Travelled", | ||
"tsdoc", | ||
"tslang", | ||
"typestr", | ||
"Vals", | ||
"Varint", | ||
"Webviews", | ||
"worldtest", | ||
"wsevent", | ||
"Xmark", | ||
"xuid" | ||
], | ||
"mochaExplorer.files": "src/test/**/*.ts", | ||
"mochaExplorer.require": "ts-node/register", | ||
"mochaExplorer.nodeArgv": [ | ||
"--loader=ts-node/esm", | ||
"--no-warnings=ExperimentalWarning", | ||
"--experimental-specifier-resolution=node" | ||
], | ||
"editor.tabSize": 2 | ||
} |
Oops, something went wrong.