Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/markusbordihn/minecraft-bedrock-utils
Collection of useful Minecraft Bedrock development related utilities.
https://github.com/markusbordihn/minecraft-bedrock-utils
Last synced: about 1 month ago
JSON representation
Collection of useful Minecraft Bedrock development related utilities.
- Host: GitHub
- URL: https://github.com/markusbordihn/minecraft-bedrock-utils
- Owner: MarkusBordihn
- License: apache-2.0
- Created: 2021-09-04T22:39:35.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-21T22:10:42.000Z (over 2 years ago)
- Last Synced: 2024-09-14T10:44:06.363Z (2 months ago)
- Language: JavaScript
- Size: 1.38 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Minecraft Bedrock Utils (Maintenance only!)
[![NPM version](https://img.shields.io/npm/v/minecraft-bedrock-utils.svg)](https://www.npmjs.org/package/minecraft-bedrock-utils)
[![NPM](https://nodei.co/npm/minecraft-bedrock-utils.png?downloads=true&downloadRank=true)](https://nodei.co/npm/minecraft-bedrock-utils/)
The Minecraft Bedrock Utils simplify some of the manual tasks and allows a more
enjoying development experience.## Features
Automatic detects the used behavior pack and/or resource pack based on the
_manifest.json_ file.Easy and automatic creation of base files and _manifest.json_ files for new
projects.![Example Screenshot](assets/new_project_example.jpg)
## Installation (optional)
The easiest way is to keep minecraft-bedrock-utils as a Dependency in your
package.json, by running```bash
npm install minecraft-bedrock-utils
```If you are working on several projects it's recommend to install the
minecraft-bedrock-utils globally.## Recommended structure
### Recommended structure for existing projects
The following folder structure is recommended for your projects.
- **Project Folder**
- **Behavior Pack Folder**
- manifest.json (for Minecraft)
- **Resource Pack Folder**
- manifest.json (for Minecraft)
- **package.json** (for npm / default values)You should execute the `npx minecraft-bedrock-utils ` command inside
the project folder and not directly inside a behavior pack or resource pack
folder.### Recommended structure for new projects
The following folder structure is recommended for new projects.
- **Project Folder**
- **package.json** (for npm)Execute the command `npx minecraft-bedrock-utils init` and
`npx minecraft-bedrock-utils new` inside your empty project folder to
automatically create the recommend structure.## How to use the utils
Use the **npx** command to run the utils with one of the commands in your
project folder.## Commands
Commands are executed over the **npx** command for example
`npx minecraft-bedrock-utils ` inside the project folder.### init
The init command prepares the workspace and installs a local copy of the needed
tools for offline usage.Use the following command inside a empty folder:
`npx minecraft-bedrock-utils init`After this was successful you should use the `npx minecraft-bedrock-utils new`
command to setup your new project.### new
The new command creates a new project with the required folder and files. It
should be only used for new projects and will give you and error if there are
any existing behavior or resource packs.To start a new project use `npx minecraft-bedrock-utils new` which will ask for
additional details like:![Example Screenshot](assets/new_project_example.jpg)
If you just want to add a basic project use the command
`npx minecraft-bedrock-utils new ` instead.### add item
This commands adds a new items to the project with some default options.
Example: `npx minecraft-bedrock-utils add item`
![Example Screenshot](assets/new_item_example.jpg)
### add recipe
This commands adds a new recipe to the project with some default options.
Example: `npx minecraft-bedrock-utils add recipe`
![Example Screenshot](assets/new_recipe_example.jpg)
### run
The run commands copies the behavior pack and/or resource pack of the current
directory into the developer behavior pack and/or developer resource pack
folders.After the step is done it tries to start Minecraft Bedrock, if it was not
already started.Example: `npx minecraft-bedrock-utils run`
Note: Please make sure to reload the world after this step is done.
### copy
The copy commands copies the behavior pack and/or resource pack of the current
directory into the developer behavior pack and/or developer resource pack
folders.Example: `npx minecraft-bedrock-utils copy`
### launch
Tries to start Minecraft Bedrock, if it was not already started.
Example: `npx minecraft-bedrock-utils launch`
### deploy
The deploy commands copies the behavior pack and/or resource pack of the current
directory into the behavior pack and/or resource pack folders to run it on a
multiplayer server.Example: `npx minecraft-bedrock-utils copy`
### uuid
The uuid command returns a v4 UUID or v5 UUID string which could be used inside
the **manifest.json** file.To get a basic v4 uuid use the following command:
`npx minecraft-bedrock-utils uuid`To get an v5 uuid you need to provide a name and a corresponding namespace. If
no namespace is provided it will use a default namespace (for testing only!).Example: `npx minecraft-bedrock-utils uuid `
### info
Shows basic information about the detected behavior and/or resource pack inside
the project folder.Example: `npx minecraft-bedrock-utils info`
It's possible to add a path to this command to compare several projects like
`npx minecraft-bedrock-utils info `### debug
Shows some debug information mostly for troubleshooting like the detected path.
Example: `npx minecraft-bedrock-utils debug`
## Supported config options
To make things easier to maintain it's possible to pre-define some of the values
inside the _package.json_. These information are mostly used for creating new
project and items and have less relevant afterwards.Example manifest.json:
```json
{
...
"dependencies": {
"minecraft-bedrock-utils": "^1.1.1"
},
"config": {
"project_name": "Example 2D Item with Recipe",
"project_folder_name": "MB_Example_2D_Item_Recipe",
"project_namespace": "markusbordihn_examples"
}
...
}
```## Disclaimer
NOT OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG.