npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bedcli

v0.0.12

Published

Minecraft bedrock creator cli

Downloads

165

Readme

Bedcli

bedcli is a compiler, project builder for Minecraft Bedrock, which considerably reduces the size of final package for the release of your project, in turn helps to develop in a more versatile and faster way. bedcli also allows you to compile your package without being a bedcli project, for more information read the documentation.

Requirements

  • Have Node 18 or higher to use bedcli.

Installation

npm install bedcli -g

Configuration

Return the information of your configuration:

bedcli config --info

Clear all configuration:

bedcli config --clear

Define the path to the com.mojang folder (Necessary to use watch in your project):

bedcli config --com.mojang /path/games/com.mojang/

Create a Bedcli project

bedcli create

With the create command you only have to fill in the requested fields, and your project will be created already configured.

Migrate your project to Bedcli

First I created a new bedcli project, with settings that match your existing project.

You must copy the content of your packages in their respective folder, without the manifest.json.

your_project/behavior > Behavior pack your_project/resource > Resource pack

Configure uuid

your_project/bed.config.json

{

  "project": {
	...
  },

/// Type add-on:script
  "uuid": [
    "be75bfeb-98a3-43f6-bb89-beab7af68462", // resource.header RP
    "df3edcc6-376c-4a73-9bec-c1a9b7529fce", // resource.modules RP
    "12c0622a-451c-4588-a87d-550bfe429204", // behavior.header BP
    "59e590db-729d-4936-8043-db2c9215ec72",// behavior.modules BP
    "87bb70e5-28ce-4be5-ac6d-8932b6f952c1" // behavior.modules.script BP
  ],

/// Type add-on
  "uuid": [
    "be75bfeb-98a3-43f6-bb89-beab7af68462", // resource.header RP
	"df3edcc6-376c-4a73-9bec-c1a9b7529fce", // resource.modules RP
	"12c0622a-451c-4588-a87d-550bfe429204", // behavior.header BP
	"59e590db-729d-4936-8043-db2c9215ec72" // behavior.modules BP
  ],

/// Type resource
  "uuid": [
	"be75bfeb-98a3-43f6-bb89-beab7af68462", // resource.header RP
	"df3edcc6-376c-4a73-9bec-c1a9b7529fce" // resource.modules RP
  ],

/// Type data
  "uuid": [
	"12c0622a-451c-4588-a87d-550bfe429204", // behavior.header BP
	"59e590db-729d-4936-8043-db2c9215ec72" // behavior.modules BP
  ],

/// Type data
  "uuid": [
	"12c0622a-451c-4588-a87d-550bfe429204", // behavior.header BP
	"87bb70e5-28ce-4be5-ac6d-8932b6f952c1" // behavior.modules.script BP
  ]
}

Configure scripts

your_project/bed.config.json

{
  "scripts": {
	"entry": "scripts/main.js",
	"language": "js",
	"dependencies": [...]
   }
}
  • scripts.entry: Path of your script file from the your_project/behavior folder.
  • scripts.language: Language of your script file can be js or ts.
  • scripts.dependencies: These are the dependencies that your script has, @minecraft/server and @minecraft/server-ui are supported, but you can add other dependencies and change their version if they are not supported by bedcli.
{
  "module_name": "<name>",
  "version": "<version>"
}

Compile your project

The files after compilation are saved in the your_project/dist folder.

If you use bedcli pack and you are outside the project folder the dist will be created in the path where you executed the command.

Compile your resource or behavior package without being a bedcli project:

bedcli pack --path "./"
  • --path: Its default value is ./ , but paths can be relative or absolute.

Compiles your bedcli project:

bedcli build

Testing with Bedcli

With the watch command you can do quick tests of your project, but it is necessary to configure the com.mojang path beforehand.

bedcli watch

Things to keep in mind with watch:

  • If there is a folder with the same name watch it will remove it.
  • If there are packages with the same header.uuid they will be removed to avoid conflicts.
  • This only covers the development_behavior_packs and development_resource_packs paths, depending on your project type.