Plugins and content packs
A server can be changed in two ways: plugins, which are code that runs on the server, and content packs, which are data.
Which to use
| Kind | What it adds | Written in |
|---|---|---|
| Content packs | Loot and wild spawns, and new models, objects, species, moves, items, recipes and shop goods. Data only, no code. | Data files |
| Rust plugins | Server behaviour: events, rules, menus, minigames, permissions. They run in a sandbox, so a plugin can touch only what the server hands it. | Rust, compiled to WebAssembly |
| Java plugins | The same, for authors who know Java. They run with the server's full trust, as plugins do on other block-game servers. The server starts Java (25 or newer) only if it has a Java plugin. | Java 25+ (.jar) |
Plugins run on the server only. Headsets never run plugin code. They are sent what plugins change in the world, the menus and messages plugins show, and the data of content packs, so players install nothing.
One API for both languages
Rust and Java plugins use the same API, generated from one definition, so the events, calls and documentation match. Where to look:
| Page | What it covers |
|---|---|
| Writing a plugin | Your first plugin in Rust or Java, its manifest and needs, starting and stopping |
| API reference | Every type and its methods |
| Events | Everything a plugin can react to, and what it can stop |
| Player | A player in the world: body, bag, gear, coins, progress, team |
| Menu and Messages | Talking to players: menus with tabs, notices, banners, sounds |
| World | Blocks, placed objects, loose items, time, weather, towns and dungeons |
| Creature | Voxelmon: wild ones, players' teams, species, moves and battles |
| Content packs | The data a pack can add |
No text chat
VoxelMon is played in VR with no keyboard and no text chat. Plugins reach players through notices, banners and menus, and players act through menus and what they do in the world. Console commands are for the server's owner.
Safety
- The server's owner approves each plugin and pack by its exact files. A changed file has to be approved again, and nothing updates itself.
- Each plugin's manifest lists what it needs, such as saving files or reaching the internet. A Rust plugin gets nothing else.
- Content packs have hard size limits, and the headset checks every file before using it.
- A Java plugin can do anything the server's user can. Run the server under its own user or in Docker (the
:javaimage), so that is only the server's own folder. - A plugin cannot approve, stop or reload plugins or packs. Only the owner can, at the console.
Licence
The plugin kits and the examples in the download's sdk/ folder are open source: MIT or Apache-2.0, whichever you choose (sdk/LICENSE-MIT, sdk/LICENSE-APACHE). Build on them, change them and share what you make; your plugins and packs are your own. The server itself is not open source.