Skip to content

bridge-core/BPTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
})

About

Unit testing for Minecraft behavior packs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages