https://github.com/bridge-core/bptest
Unit testing for Minecraft behavior packs
https://github.com/bridge-core/bptest
Last synced: 8 months ago
JSON representation
Unit testing for Minecraft behavior packs
- Host: GitHub
- URL: https://github.com/bridge-core/bptest
- Owner: bridge-core
- Created: 2020-01-08T12:58:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T04:57:20.000Z (over 3 years ago)
- Last Synced: 2025-07-29T03:31:34.449Z (11 months ago)
- Language: TypeScript
- Size: 199 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BPTest
Unit testing for Minecraft behavior packs
## Installation
```npm i bptest```
## Usage
```javascript
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);
})
```