BDEngineImport
A Packet-based Import Library for the BDEngine editor
BDEngineImport
BDEngineImport
A packet-based import library for the BDEngine editor
Features
- Developer API: Packet-based rendering for complex displays. - Developer API: Load models from `.mcfunction` or pre-compiled `.bdi` (cbor) files. - Developer API: Java API for mod integration.
Installation
Add to your `build.gradle.kts`:
```kotlin repositories { maven("https://api.modrinth.com/maven") }
dependencies { modImplementation("maven.modrinth:bdengineimport:${version}") } ```
Basic Usage
Commands
| Command | Description | | :-------------------------------------- | :-------------------------------------- | | `/bdi reload` | Auto-imports files and reloads configs. | | `/bdi spawn <id> <file>` | Spawn a model at your location. | | `/bdi spawn_at <id> <file> <x> <y> <z>` | Spawn a model at specific coordinates. | | `/bdi despawn <id>` | Remove a display. |
API
Get the API instance to interact programmatically:
```java BDEngineImportAPI api = BDEngineImportAPI.get("your_mod_id"); // Use api.spawn(), api.despawn(), etc. ```