Docs » Plugins and packs » Plugins and content packs

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.

Names in the API may still change in later versions. Packs cannot add sounds, new blocks or world generation yet.

Which to use

KindWhat it addsWritten in
Content packsLoot and wild spawns, and new models, objects, species, moves, items, recipes and shop goods. Data only, no code.Data files
Rust pluginsServer 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 pluginsThe 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:

PageWhat it covers
Writing a pluginYour first plugin in Rust or Java, its manifest and needs, starting and stopping
API referenceEvery type and its methods
EventsEverything a plugin can react to, and what it can stop
PlayerA player in the world: body, bag, gear, coins, progress, team
Menu and MessagesTalking to players: menus with tabs, notices, banners, sounds
WorldBlocks, placed objects, loose items, time, weather, towns and dungeons
CreatureVoxelmon: wild ones, players' teams, species, moves and battles
Content packsThe 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 :java image), 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.