Content packs
A content pack changes a server's world with data files and no code. Players install nothing: the server sends their headsets what a pack adds as they need it.
What a pack is
A pack is a folder in the server's packs/ folder. It holds a pack.toml and any of these folders:
| Folder | What it adds |
|---|---|
loot/ | Loot: more items in chests, drops, battles and fishing |
spawns/ | Spawns: which wild Voxelmon appear where |
models/ | Models: Blockbench files that the rest of the pack is drawn with |
objects/ | Objects: furniture, props and statues placed in the world |
species/, moves/ | Species and moves: new Voxelmon and what they do in battle |
items/, recipes/, shops/ | Items, the recipes that make them and the shops that sell them |
A pack with something in every folder looks like this:
packs/
approved.toml # written by `pack approve`
more-iron/
pack.toml
loot/dungeons.toml
spawns/snow.toml
models/throne.bbmodel
objects/furniture.toml
species/glimmer.toml
moves/glimmer.toml
items/gems.toml
recipes/gems.toml
shops/gems.toml
# pack.toml
id = "more-iron" # letters, digits, - and _
name = "More iron"
version = "1.0.0"
A pack runs nothing. The server reads it and checks every name in it. Even so, the server uses a pack only once its owner approves it, as with plugins:
> packs
more-iron 1.0.0 (More iron) waiting: `pack approve ID`
> pack approve more-iron
Pack more-iron approved and in use.
The approval is for the pack's files as they are. Change any file and the pack waits to be approved again. A pack may hold 32 MB at most.
The download has three example packs in sdk/examples/packs/: furniture (a chair with a seat, a lamp that lights, a chest whose lid opens), creatures (a species with two moves and a spawn rule) and gems (items, recipes and a shop rule).
Loot
Each table in a loot/*.toml file is one rule: whenever loot of its kind is rolled, there is chance percent that it also holds the item, least to most of it.
# loot/dungeons.toml
[more_iron]
source = "dungeon_chest"
item = "IRON INGOT"
least = 1
most = 3
chance = 25
| Key | What it is |
|---|---|
source | chest (towns and the wild), dungeon_chest, supply_cache, creature (a beaten Voxelmon), battle (a won battle), fishing or other |
item | An item's name as the game shows it, in any case |
least, most | How many, 1 up to the item's stack limit |
chance | Percent, 1 to 100 |
Spawns
Each table in a spawns/*.toml file is one rule: of the wild Voxelmon appearing in its biomes at its time of day, chance percent are its species instead, at a level from least_level to most_level. The first rule that matches and wins its roll is taken.
# spawns/snow.toml
[lunapups_at_night]
species = "LUNAPUP"
biomes = ["SNOWY TAIGA", "SNOW"]
least_level = 5
most_level = 12
time = "night"
chance = 10
| Key | What it is |
|---|---|
species | A species' name, in any case, or a pack's species by its key (pack:table) |
biomes | Biome names as a plugin's World.biome gives them; leave it out for anywhere |
least_level, most_level | Its level, 1 to 100 |
time | day, night or any |
chance | Percent of the matching spawns, 1 to 100 |
A pack's spawns are wild spawns only: dungeons, dens, hives, fishing and guardians keep their own. A wild Voxelmon of any species can appear where a rule sends it, swimmers too, so keep sea species to sea biomes.
Models
Every Blockbench file in a pack's models/ folder is a model, named pack:file (more-iron:throne for models/throne.bbmodel). The game uses its cubes with the file's own textures, its groups as bones, and its animations as clips: idle, walk, run, sit, attack and up to three more of your own.
The server converts models as it starts. It sends each one to a headset the first time something made from it comes near that player, and the headset checks it and keeps it by its SHA-256. A model can have 512 cubes, 32 groups and 8 clips.
A group or cube named with a # marks a place for the game and is not drawn:
| Name | What it marks |
|---|---|
#seat | Where a player sits: a cube's top face's middle, or a group's pivot |
#collision | A box players and creatures meet (up to 8: #collision_back, #collision2...); with none, the whole model is one box |
#grip | Where a hand closes on a held item (a tool, a weapon, a bow, a shield): the middle of the cube, the haft running along its longest side toward the #head (or toward the far end of the model), so a model authored lying along X or Z is held as one standing up its Y. A group's pivot and its own up (+Y) mark it too. A bow's must run up the model's Y (its string does) |
#head | A tool's or weapon's working end (an axe's head, a sword's blade): what a swing strikes with, as the game's own tools strike with theirs. With none, the half of the item past the middle of its grip along the haft |
#string | A bow's string, the line the arrow is drawn back along |
A pack's model gets the same hover outline as the game's own, along its own edges and in its own colours, whether it is held, lying on the ground, placed, or a Voxelmon being pointed at.
Objects
An object is a model placed in the world: furniture, a prop or a statue. It takes up the blocks its model fills (its size rounded up to whole blocks, at most 16 a side) and is turned in quarter turns, with the model's front (Blockbench's north, -Z) the way it faces.
Players bump into its collision boxes, sit on its seat, open it if it has storage, and break it if it is breakable (once it is empty, like a chest). An object placed by a plugin or from the console drops nothing when broken.
Objects are saved with the world by their model's name. If a pack is taken away, its objects stay as small grey cubes nobody can break, and come back as they were when the pack returns.
Each table in an objects/*.toml file says how objects of one model are made. A model with no table can still be placed, with the defaults.
# objects/furniture.toml
[throne]
model = "throne" # a model of this pack, or pack:file of another
name = "OAK THRONE"
seat = true
storage = 0
breakable = true
light = 0
| Key | What it is |
|---|---|
model | Its model: a file of this pack's models/ without .bbmodel, or another pack's as pack:file |
name | What it is called, at most 32 letters (optional) |
seat | true: players sit at its #seat (which it must have); false: never. Left out: where it marks one |
storage | Slots it stores in, 0 to 24 (default 0). A click opens it; its model's open clip plays while it stands open |
breakable | Whether players may break it (default true) |
light | The light it gives, 0 to 15 (default 0; a torch is 14) |
Players place objects from items. Give the pack an item with the behaviour object and a recipe to make it, and an object placed from that item drops the item again when broken. Plugins place objects too (World.place_model, PlacedObject.play for an animation, Model), and so can the owner at the console:
> place more-iron:throne 12 64 -3 90
Placed more-iron:throne (object 41).
The furniture example pack has a chair with a seat, a lamp that lights and a chest of twelve slots whose lid opens. Its chair is also a CAMP CHAIR item made at the workbench, and the example plugin Spawn Guard places its chair and lamp beside spawn.
Species
Each table in a species/*.toml file is a new Voxelmon species, keyed pack:table (creatures:glimmerkit). Players catch it, train it and battle with it like any other. The server sends each headset the species as the player joins, and its model the first time it is needed.
A player's Voxelmon are saved on the server by their species' key. If a pack is taken away, players keep its Voxelmon as plain placeholders that cannot be sent out, and they are themselves again when the pack returns.
# species/glimmer.toml
[glimmerkit]
name = "GLIMMERKIT"
model = "glimmerkit"
span = 0.7
health = 9
walk_speed = 0.4
essence = "lightning"
attack = 8
defense = 7
speed = 9
rarity = "uncommon"
capture_difficulty = 40
hours = "day"
temperament = "friendly"
night_temperament = "neutral"
habitats = ["grass", "savanna"]
moves = ["1 TACKLE", "1 spark_nip", "6 static_veil", "12 BITE"]
loot = ["STRING"]
cry = "LUNAPUP"
cry_pitch = 130
| Key | What it is |
|---|---|
name | Its name, the game's way: capitals, at most 16 letters, digits, spaces, -, ' and .; never one of the game's own species' names. Make it your own: names of another game's creatures are not allowed on the stores |
model | Its model (a file of this pack's models/, or pack:file): animated, with at least an idle and a walk clip; run, sit and attack are shown where it has them. Its front faces Blockbench's north (-Z) |
span | Its longest side, 0.05 to 6 (the game's own are 0.4 to 1.5); the model's proportions give the rest. Default 0.6 |
health | Its base health, 1 to 200 (the game's own are 6 to 16). Default 10 |
walk_speed, hover | Walking pace and how high it floats, 0 to 4 (defaults 0.35 and 0) |
essence, second_essence | One of air, water, fire, earth, dragon, frost, insect, lightning, metal, shadow, plant, poison; the second optional |
attack, defense, speed | Base battle stats, 1 to 100 (the game's own are 4 to 14). Default 5 |
rarity | common, uncommon or rare (default common): how often it is rolled against the others where it lives |
capture_difficulty | 0 to 100, higher harder (default 40) |
hours | always, day or night (default always) |
temperament, night_temperament | friendly, neutral (attacks when riled) or aggressive (hunts players); by night the day's if left out |
locomotion | walk, swim or amphibious (default walk); pounce and hop true or false |
habitats | Where it spawns by itself: grass, savanna, mud, sand, snow, autumn, taiga, jungle, coast, rock, fungal, volcanic, moor, cave, lush_cave, flooded_cave, volcanic_cave, ice_cave, crystal_cave, dungeon, shallows, reef, open_sea, lake. None: only where a spawn rule or a plugin puts it |
moves | Up to 24, each "LEVEL MOVE" in level order: a move of this pack by its table, another pack's as pack:table, or one of the game's by its name. One or two at level 1 |
evolves_into, evolves_at | The species it becomes (of this pack by its table, pack:table, or one of the game's by name) and at what level, 2 to 100 |
loot | Up to two items it drops when beaten: the game's by name, a pack's by key (gems:ruby) or this pack's by its table; none for its essence's own. A pack's item it names must be there (approve its pack too), else the species is refused |
cry, cry_pitch | The game's species whose cry it calls with (default: the first of its essence) and that cry's pitch, 50 to 200 percent. No sound files travel |
The portrait shown on the watch and in battles is drawn on each headset from the model, seen from the front and a little above, in its idle pose. A server can have 256 species of its own.
Moves
Each table in a moves/*.toml file is a new battle move, keyed pack:table. Battles are worked out on the server, and headsets only show them.
# moves/glimmer.toml
[spark_nip]
name = "SPARK NIP"
description = "A QUICK NIP THAT CRACKLES. IT MAY LEAVE THE FOE NUMB."
effect = "damage"
essence = "lightning"
power = 30
accuracy = 100
status = "paralysis"
status_chance = 10
vfx = "strike"
[static_veil]
name = "GLINT VEIL"
description = "SPARKS HANG ROUND THE USER, RAISING ITS DEFENSE."
effect = "stat"
learn_level = 5
stat = "defense"
stat_target = "self"
stat_stages = 1
| Key | What it is |
|---|---|
name | Its name, as a species' (at most 16), never one of the game's own moves' or another of the server's |
description | Plain letters, at most 120 |
effect | damage (an attack: needs power), guard (halves damage for the turn, goes first), recover (needs heal), status (needs status) or stat (needs stat) |
essence | An essence, or neutral (left out) for a plain move |
power | 1 to 100 for an attack, 0 for anything else |
accuracy | Percent, 1 to 100 (default 100) |
uses | Uses before a rest, 1 to 40; left out, the game's rule (by effect and power) |
priority | 0 to 2, an attack only: higher goes first |
learn_level | The least level it is taught at, 1 to 100 (default 1) |
status, status_chance | burn, poison, frost, paralysis or sleep, and its chance for an attack (a status move's is always 100) |
stat, stat_target, stat_stages, stat_chance | attack, defense, speed or accuracy; self or foe; -2 to 2, not 0; its chance for an attack (a stat move's is 100) |
drain, recoil | An attack's percent of its damage healed, or taken back (0 to 100) |
explode | An attack after which its user faints |
heal, cure | A recovery's percent of health, and whether it clears a condition |
vfx | How it looks: projectile, beam, strike, ground_burst, storm or aura; left out, a shot for an attack and an aura for anything else |
A server can have 512 moves of its own. Plugins find a pack's moves like any other (Move.named by name or key, Creature.teach), and its species too (Species.named, World.spawn_creature, Team.add). The numbers a plugin sees for them last only while the server runs, so save them by key.
The creatures example pack has the GLIMMERKIT above with its two moves and a spawn rule.
Items
Each table in an items/*.toml file is a new item, keyed pack:table (gems:ruby_sword). Players carry it, hold it, drop it, store it in chests, wear it and trade for it like any other item. Their headsets are sent the item as they join and its model the first time they see it.
An item cannot do something new. It behaves as one of the game's own kinds (behaviour), by the game's rules for that kind and its tier:
# items/gems.toml
[ruby]
name = "RUBY"
model = "ruby"
behaviour = "material"
size = 0.18
worth = 12
[ruby_sword]
name = "RUBY SWORD"
model = "ruby_sword" # marks #grip and #head
behaviour = "sword"
tier = 2
damage = 9
size = 1.0
worth = 140
| Key | What it is |
|---|---|
name | Its name, as a species' (capitals, at most 16), never one of the game's own items' or another of the server's. Make it your own |
model | Its model (a file of this pack's models/, or pack:file). A held one (every tool, weapon, bow, rod and shield) marks its #grip; a bow its #string; a tool or weapon its #head (else the half of it past its grip strikes). Its #collision boxes are what lies on the ground and in a hand (else its whole box). A worn piece's model is stretched over its body part (below) |
behaviour | material (does nothing of itself: crafted from, traded), food (eaten: healing), sword, knife, axe, pickaxe, shovel, hoe, hammer, club (swung and strike as the game's; pickaxes, axes and shovels dig as theirs of the tier), bow (drawn by its string, shooting the bag's arrows), fishing_rod, shield (raised, blocks), helmet, chestplate, leggings, boots (put on at the pack door's equipment page) or object (placed as an object of its model, by its pack's objects rule) |
tier | 0 (wood) to 5 (abyssal): copper 1, iron 2, cobalt 3, voxelium 4. A tool's blow and digging, a shield's block and armour's protection are the game's for its kind at that tier |
damage | A tool's or weapon's blow, or a bow's shot, 0 to 100; left out, its tier's (a sword: 4, then 2 more a tier) |
healing | What eating it restores, 0 to 40 (food) |
block, protection | A shield's share of a blow it stops, an armour piece's share of harm it takes, percent (0 to 90); left out, its tier's |
stack | The most in one slot: a material up to 64 (the default), food and objects up to 16, everything else 1 |
worth | Its worth in coins, what a shop asks where its rule names no price (0, the default: never sold but where a rule names a price) |
size | Its longest side in metres, 0.03 to 3; left out, its model's own (a block is a metre) |
Armour
A pack's armour protects as the game's does and is drawn on the body. Its model is stretched over the body part, the way the game's own armour is fitted, with its front (Blockbench's north, -Z) the way the wearer faces:
| Behaviour | What the model is |
|---|---|
helmet | One piece over the head |
chestplate | One piece over the torso |
leggings | One leg's piece from hip to knee, drawn on each thigh |
boots | One foot's piece with its ankle, drawn on each foot |
Every other player sees it, and the wearer sees it in a mirror. The wearer's own first-person body leaves off the helmet and the chestplate, which would sit at the eyes when looking down. The player card on the equipment page and on the watch shows only the game's own armour so far.
Keeping and finding items
A server can have 512 items of its own. Bags, chests, stations and the ground keep them by key. If a pack is taken away, its items stay where they were as grey boxes nobody can use, and are themselves again when the pack returns. A Voxelmon can hold a pack's item as it holds the game's.
Plugins find a pack's items like any other (ItemType.named by name or key, ItemType.key, ItemType.all) and can put them in bags (Bag.add) and loot. Loot rules name them by key or name.
Recipes
Each table in a recipes/*.toml file is a recipe made at one of the game's stations, the same way players make the game's own there: laid out and struck at the workbench, anvil and fletching bench, fed into a forge, dropped into a cauldron or pot, or set on a campfire's rim. The station's recipe browser lists it after the game's own.
A recipe names this pack's items by their tables, another pack's as pack:item, and the game's own by their names.
# recipes/gems.toml
[ruby_sword]
at = "anvil"
output = "ruby_sword"
rows = [" R ", " R ", " S "]
R = "ruby"
S = "STICK"
[ruby_from_crystal]
at = "forge"
output = "ruby"
count = 2
inputs = ["1 RESONANCE CRYSTAL"]
seconds = 12
| Key | What it is |
|---|---|
at | workbench, anvil (a heated one, by a forge), fletching (the fletching bench), forge (its mouth: one input, a log burnt as its fuel), cauldron (with its water, stirred), campfire (its rim: one input) or pot (a cooking pot over a campfire: one to three ingredients, stirred) |
output, count | What it makes and how many, 1 to 64 (default 1; a pot meal's servings, at most 8) |
inputs | Shapeless: each "COUNT ITEM", nine items in all at most |
rows | Shaped (workbench, anvil, fletching bench): up to three rows of up to three letters, each letter a key of its own in the table naming its item (R = "ruby"), a space for nothing. Laid anywhere on the grid |
mirror | A shaped recipe also made mirrored (default false) |
seconds | How long the forge smelts it (default 10) or the rim cooks it (default 8) |
exp | The profession EXP a make pays, 0 to 500: Carpentry at the workbench and fletching bench, Blacksmithing at the anvil and forge, Alchemy at the cauldron, Cooking at the campfire and pot. Left out, what the game's comparable recipes there pay: 6 at the workbench, 24 at the anvil, 16 at the fletching bench, 6 at the forge, 12 at the cauldron, 4 on the rim, 12 in the pot |
An anvil's or fletching bench's guide lays a pack's recipe out on its grid as it does the game's own, once a player chooses it in the browser.
The game's own recipes come first. A pack's recipe that uses the same items at the same station as one of the game's is never made, and the server says so when it reads the pack. A server can have 512 recipes of its own.
Shops
Each table in a shops/*.toml file adds goods, with prices, to what townspeople of one trade sell. The shop page has four rows. It shows a rule's goods first and fills the rest with the trade's own, unless the rule replaces them.
# shops/gems.toml
[blacksmith_rubies]
job = "blacksmith"
town = "any"
sell = ["15 ruby", "160 ruby_sword"]
replace = false
| Key | What it is |
|---|---|
job | The trade: blacksmith, carpenter, merchant, cook, farmer, innkeeper, baker, librarian, miller, lookout, woodcutter, fisher, herder, orchardist, florist, guard, stargazer, aquarist, petkeeper or miner (the clinic's healer sells nothing) |
town | any (default), threatened (its Voxelord still there) or freed |
sell | Up to four, each "PRICE ITEM", a price of 1 to 1,000,000 coins |
replace | true: none of the trade's own goods |
Plugins can read and set a trade's goods too (World.shop_goods, World.set_shop_goods). What a plugin sets replaces a pack's rule for the same trade and towns until the server stops.
The gems example pack has a RUBY, a RUBY SWORD and a RUBY HELMET. The sword and helmet are forged on the anvil, rubies are smelted from a resonance crystal, and blacksmiths sell the ruby and the sword. The creatures pack's GLIMMERKIT drops its rubies.
With plugins
Packs are applied first, and plugins see the result. A plugin's LootRolled handler sees a pack's items among the loot, its CreatureSpawning handler sees a pack's species, and either may change them again.
What packs cannot do yet
- Sounds and music. No recorded audio is sent to headsets, which is why a species calls with one of the game's cries.
- New item behaviours. An item does what one of the game's kinds does. Anything else is a plugin's job.
- Code that runs on players' headsets.
- World generation: new blocks, ores, biomes or structures.
Each of these needs a game update first. This page will say when one arrives.