bptest
TypeScript icon, indicating that this package has built-in type declarations

0.8.0 • Public • Published

BPTest

Unit testing for Minecraft behavior packs

Installation

npm i bptest

Usage

import { ENV } from "bptest";
import path from "path";
 
const PROJ = "path/to/project";
 
ENV.setup(PROJ, async ({ readJSON, World, Entity }) => {
    const W = new World();
    const E = new Entity(await readJSON(path.join(PROJ, "entities/player.json")));
    W.add(E);
    W.tick(200);
})

Readme

Keywords

none

Package Sidebar

Install

npm i bptest

Weekly Downloads

1

Version

0.8.0

License

ISC

Unpacked Size

148 kB

Total Files

125

Last publish

Collaborators

  • solved