Dungeon format
A dungeon made in Voxelforge is one .vfdungeon file: a zip of plain JSON and an ordinary schematic, in an open format this page describes in full. You don't need it to make or run a dungeon. It's here so you can see exactly what a dungeon holds, write tools that read or make one, and know your work never depends on us.
Our promise for your dungeons
- Your file. A dungeon downloads as one file you keep. Its blocks are an ordinary schematic that WorldEdit can paste anywhere.
- Runs without voxelforge.app. Once a dungeon is on your server, VF Dungeons runs it from the files on your server, and checks its licence there too. Nothing stops if the site is down, or gone.
- An open format. Everything else is plain JSON, all of it described below. Each version of the format adds to the one before, and the plugin keeps reading every older version.
- Open source if we end. If Voxelforge shuts down, or VF Dungeons goes 12 months with no new version and no way to buy it, we publish the plugin's source code under the GNU GPL version 3, with a build that needs no licence. TheVF Dungeons licence makes this promise.
The spec
The rest of this page is the spec as we keep it, added to with each version of the format. It's written for people building tools, so it goes into every field.
What Voxelforge hands the VF Dungeons plugin (named VoxelForge Dungeons, then Voxelforge Adventure, before the beta): a zip, made by
src/dungeon/bundle.ts, holding
| File | What |
|---|---|
manifest.json |
format: "voxelforge-dungeon-bundle", version (dungeon.json’s), name, namespace (version 7), author, made (ISO time), by, size, files |
dungeon.json |
The logic, below |
blocks.schem |
The blocks, as a gzipped Sponge v3 schematic, with NPCs, mobs (frozen, as decoration) and displays |
pack.zip |
Only when needed: the resource pack for its looks (uploaded skins, gear and models, health bars, icons, effects, items, sounds); version 7’s rules are under “Its pack” below |
datapack/… |
Version 7, only with enchantments: its enchantments as a data pack (under “Its enchantments” below) |
bedrock.mcpack, bedrock.json |
Only when needed: the Bedrock pack for the dungeon’s items, displays and mob looks, and its index (see “Bedrock players” in adventure-json.md) |
The same file is published to the VoxelForge server (public bucket
vfd-dungeons, named by its SHA-1, see supabase/dungeons.sql) and
downloaded for other servers (plugins/VFDungeons/dungeons/).
dungeon.json, version 1
Positions are block coordinates relative to the schematic’s minimum corner,
[x, y, z]; they can fall outside the schematic. An area is a box with
both corners inside, { "min": [x, y, z], "max": [x, y, z] }. A spot is
where a player stands, the block their feet are in, and which way they face:
{ "pos": [x, y, z], "yaw": 0 }, Minecraft’s yaw (0 south, 90 west, 180
north, 270 east). Item and mob ids have no namespace ("iron_sword",
"zombie"). A plugin refuses a format or version it doesn’t know.
{ "format": "voxelforge-dungeon", "version": 1, "name": "Medium crypt", "size": [192, 16, 192],
"settings": { "difficulty": 1, // multiplies every mob's health and damage "partyScaling": true, // extra mobs per extra player, more health "deaths": "checkpoint", // or "lives" "lives": 3, // each, with "lives" "timeLimit": 60, // minutes; the time left shows on the run's sidebar, and chat says it near the end "hunger": false, // false: food stays full, health comes back slowly "ownGear": false // true: players keep their own gear (the kit is added on top) and take out what they find },
"start": { "pos": [10, 1, 12], "yaw": 180 }, // where the run begins; the kit is given here "exit": { "min": [180, 1, 4], "max": [183, 4, 7] }, // the whole living party in it clears the run
// Optional. The party arrives at "arrival", safe from mobs. "begin" is // "npc" (the leader talks to it, the party confirms, everyone goes to the // start) or "portal" (each player goes to the start as they step in; the // clock starts with the first one). Only the chosen one is present. "lobby": { "area": { "min": [0, 1, 0], "max": [8, 6, 8] }, "arrival": { "pos": [4, 1, 4], "yaw": 0 }, "begin": "npc", "npc": { "spot": { "pos": [4, 1, 7], "yaw": 180 }, "name": "Gatekeeper", "skin": "steve", "lines": ["Ready to go in?"] } // or "portal": { "min": [...], "max": [...] } },
// slots: 36 entries, hotbar 0–8 then the inventory rows 9–35; empty slots are null. // armor: head, chest, legs, feet (each optional). effects last the whole run. "kit": { "slots": [{ "item": "iron_sword", "count": 1 }, null, "…"], "armor": { "head": { "item": "iron_helmet", "count": 1 } }, "offhand": { "item": "shield", "count": 1 }, "effects": [{ "id": "night_vision", "level": 1 }] },
// A chest rolls its table once (per player for per-player chests): // between rolls[0] and rolls[1] picks, each an entry by weight, a count // between min and max. "loot": [ { "id": "common", "name": "Common", "rolls": [2, 4], "entries": [{ "item": "arrow", "min": 4, "max": 12, "weight": 5 }] } ], "chests": [ { "id": "chest-1", "pos": [20, 1, 30], "table": "common", "perPlayer": true, "hologram": "" } ],
// Wakes when a player comes within "range" of its area; spawns "count" // mobs, one every "every" seconds, at most "maxAlive" alive; then it's // used up. With party scaling, each player past the first adds // "extraPerPlayer" to both the count and most alive. A mob further than // "leash" from its area gives up: it walks back to the area's middle, // ignoring players on the way, as hurt as it was (mobs never heal on // their own, only by a heal skill); one not back within 10 s is put // back. A boss with an arena isn't held by the leash at all, only by its // arena (which works the same way). The same goes for a map's spawners. // health and damage are before difficulty; null keeps the mob's own. "spawners": [ { "id": "spawner-1", "name": "Spawner 1", "area": { "min": [40, 1, 40], "max": [44, 3, 44] }, "mob": { "type": "zombie", "name": "", "health": null, "damage": null, "armor": null, "weapon": null }, "count": 6, "every": 2, "maxAlive": 4, "range": 16, "leash": 24, "extraPerPlayer": 2 } ],
// Walking in makes "respawn" the party's respawn point. With "checkpoint" // deaths, a dead player respawns there after a few seconds; if the whole // party is down at once, every spawner woken since that checkpoint starts again. "checkpoints": [ { "id": "checkpoint-1", "name": "Checkpoint 1", "area": { "min": [60, 1, 60], "max": [63, 4, 63] }, "respawn": { "pos": [61, 1, 61], "yaw": 90 } } ],
// When a player walks in, the actions run: once ever, or every time someone enters. // Actions: { "kind": "title", "title", "subtitle" } · { "kind": "message", "text" } // { "kind": "sound", "sound": "entity.wither.spawn" } · { "kind": "give", "stack": { "item", "count" } } "triggers": [ { "id": "trigger-1", "name": "Trigger 1", "area": { "min": [70, 1, 70], "max": [73, 4, 73] }, "once": true, "actions": [{ "kind": "title", "title": "The crypt awakens", "subtitle": "" }] } ],
// Where tiles were used: each one's set, tile, turn (quarter turns) and minimum corner. "tiles": [{ "set": "crypt", "id": "passage-tee", "turn": 1, "pos": [0, 0, 32] }]}In a run
- Everyone plays in adventure mode with the kit; their own inventory, armor, effects, health, hunger, experience and position are saved first and given back when they leave. Nothing from the run leaves it.
- With
ownGear(a dungeon a map’s quests gear players up for), they keep their own inventory, armor and off-hand instead: the kit is added on top (what doesn’t fit drops at their feet), and what they find in the run (chest loot, wave rewards, drops, items given) leaves with them. Deaths still drop nothing. - No PvP, no dropping items, no breaking or placing blocks. Mobs drop nothing: loot comes from chests.
- The run ends cleared (exit), failed (out of lives, or everyone left),
timed out (
timeLimit), or abandoned (the whole party offline for 5 minutes).
dungeon.json, version 2: rules and what they drive
Version 2 (milestone 3) replaces triggers with areas and rules, and
adds doors, switches, waves, sound zones and variables. The editor writes
version 2 only when a dungeon uses any of these, so a dungeon without them
is still version 1 (with "triggers": []) and older plugins keep running
it. A version 1 file’s triggers read as areas, each with one rule (“enter”,
once or always, its actions), which is what the editor turns them into.
Everything below sits next to the version 1 fields (settings, start,
exit, lobby, kit, loot, chests, spawners, checkpoints,
tiles). Objects are named by id; rules never hold coordinates (they name
areas).
{ "format": "voxelforge-dungeon", "version": 2,
// Named areas for rules: walking in or out, teleporting, spawning, filling blocks, particles. "areas": [{ "id": "area-1", "name": "Arena", "area": { "min": [40, 1, 40], "max": [60, 8, 60] } }],
// A door's blocks are the door, closed, as built. Opening takes them away: at once // ("instant"), or as block displays sliding ("slide", toward "slide", by the door's own // extent that way) or swinging 90° about the vertical edge at one end of its long side // ("swing", "hinge": "start" is the end with the lower x or z), over "seconds"; the blocks // go when the motion starts. Closing plays it backwards and puts the blocks back. // "startsOpen" doors open at once when the run starts. A player using a door block (right-click): // locked, holding "key" in the main hand: it unlocks (one key used up unless "keepKey") and opens; // locked, without it: "Locked" above their hotbar; // unlocked and "byHand": it opens or closes. // "closeAfter" > 0 closes it that many seconds after it opens. "sound" plays as it opens and closes ("" none). "doors": [ { "id": "door-1", "name": "Arena gate", "area": { "min": [50, 1, 39], "max": [53, 4, 39] }, "opens": "slide", "slide": "up", "hinge": "start", "seconds": 1.5, "startsOpen": true, "byHand": false, "locked": false, "key": null, "keepKey": false, "closeAfter": 0, "sound": "block.iron_door.open" } ],
// A lever, button, pressure plate, or any block players right-click ("block"). // Levers are on or off as they're switched; a button or plate is on while pressed; a block is used ("on"). "switches": [{ "id": "switch-1", "name": "Lever 1", "pos": [12, 2, 30], "kind": "lever" }],
// Started by a rule. Each wave spawns its groups (each "count" mobs, plus "extraPerPlayer" for // each player past the first with party scaling on) at random open places in its spawn area // ("spawn" is an index into "spawns", -1 any of them), mobs as a spawner's (health and damage // before difficulty). It ends when all its mobs are dead ("cleared") or after "seconds" ("timer"; // mobs left stay). Then: rules hear "wave N cleared", each player gets a roll of "reward" (a // loot table id, or null), and after "pause" seconds the next wave starts. After the last, // rules hear wave 0 ("all cleared"). "stop" removes its mobs and resets it. A party wipe // stops and resets waves started since the checkpoint. "waves": [ { "id": "waves-1", "name": "Arena", "spawns": [{ "min": [44, 1, 44], "max": [56, 1, 56] }], "extraPerPlayer": 1, "waves": [{ "groups": [{ "mob": { "type": "zombie", "name": "", "health": null, "damage": null, "armor": null, "weapon": null }, "count": 5, "spawn": -1 }], "ends": "cleared", "seconds": 60, "pause": 5, "reward": null }] } ],
// A sound for players inside: over and over every "every" seconds, or once as they walk in (0). "sounds": [{ "id": "sound-1", "name": "Dripping", "area": { "min": [0, 1, 0], "max": [31, 15, 31] }, "sound": "ambient.cave", "volume": 1, "pitch": 1, "every": 20 }],
// Kept for the run ("world"; a map's world), for each party, or for each player; flags, // numbers or text; each starts at "initial". "variables": [{ "name": "arena_done", "scope": "world", "type": "flag", "initial": false }],
// When "when" happens, if every condition in "if" holds, the actions in "then" run in order. "rules": [ { "id": "rule-1", "name": "", "owner": { "kind": "area", "id": "area-1" }, "when": { "on": "enter", "area": "area-1", "who": "party" }, "if": [{ "is": "var", "name": "arena_done", "op": "=", "value": false }], "then": [ { "do": "door", "door": "door-1", "action": "close" }, { "do": "title", "title": "The dead rise", "subtitle": "", "to": "everyone" }, { "do": "waves", "waves": "waves-1", "action": "start" } ], "repeat": "once", "cooldown": 0, "enabled": true } ]}Rules
A rule fires when its trigger happens, if it’s enabled, and:
"repeat": "once": it hasn’t fired yet in the run;"perPlayer": not yet for the player who set it off (no such player: asonce);"always": every time.cooldownseconds have passed since it last fired (any player).
Its conditions are checked, then its actions run in order. A wait holds
the actions after it for that long (the rest run later, even if the rule
fires again meanwhile). Nothing runs after an end.
The player is whoever set the rule off: the one who walked in, used
the switch or door, died, used the item, reached the checkpoint, or whose
variable changed. Triggers with no player (start in a dungeon, timer,
wave, spawner, kill, signal, a world or party variable) have
none: an action "to": "player" then reaches everyone, has is false, and
inArea with "who": "player" means anyone. signal passes its sender’s
player on.
Triggers (when.on):
| on | fields | when |
|---|---|---|
start |
The run starts (once the lobby’s begun, with the clock). In a map: a player arrives for the first time (with that player). | |
enter |
area, who: anyone or party |
A player walks into the area; with party, the moment every living player of the party is inside. In a map, being put there doesn’t count: coming back from a dungeon run at its exit, getting their things back after a run that ended while they were away, or logging in or a reload where they left off. |
leave |
area |
A player leaves the area. |
switch |
switch, state: on, off, any |
A lever is switched on or off, a button pressed, a plate stepped on (at most once a second per player), a block used. |
door |
door, state: opened, closed |
A door opens or closes (by a rule, its key, a hand, or closeAfter). |
wave |
waves, wave |
Wave wave (1 is the first) is cleared; 0: all of them. |
spawner |
spawner |
The spawner is used up and all its mobs are dead. |
kill |
mob, count |
Every countth kill of that mob type since the start, by anyone. |
checkpoint |
checkpoint |
The checkpoint becomes the party’s respawn point. |
death |
A player dies. | |
item |
item |
A player right-clicks holding that item in the main hand. |
timer |
seconds, repeat |
seconds after the start; with repeat, every seconds. |
signal |
name |
An action sent that signal. |
variable |
name |
The variable changed (to a new value). |
Conditions (if, all must hold; "not": true turns one round):
| is | fields | holds when |
|---|---|---|
var |
name, op (=, !=, <, <=, >, >=), value |
The variable compares so (flags and text: = and != only). |
has |
item, count |
The player has at least that many. |
inArea |
area, who: player or party |
The player is in the area; or every living player of the party is. |
door |
door, state: open, closed, locked, unlocked |
The door is so. |
switch |
switch, state: on, off |
A lever is on or off; a button or plate is on while pressed. |
block |
area, block |
Every block in the area is that block (a block state, minecraft:emerald_block; properties not given don’t matter). |
party |
op, value |
The party has so many players. |
chance |
percent |
A random roll. |
Actions (then, in order; to is player or everyone):
| do | fields | does |
|---|---|---|
title |
title, subtitle, to |
Shows a title. |
message |
text, to |
A chat message. |
actionbar |
text, to |
Text above the hotbar. |
sound |
sound, volume, pitch, to |
Plays a sound at each listener. |
give |
stack, to |
Gives items (into the inventory; what doesn’t fit drops at their feet). |
take |
stack |
Takes items from the player (as many as they have, up to the count). |
effect |
id, level (1 is I), seconds, to |
A potion effect. |
teleport |
area, yaw, to |
To the middle of the area’s floor, facing yaw. |
door |
door, action: open, close, toggle, lock, unlock |
As the door does. |
waves |
waves, action: start, stop |
Starts the waves from wave 1 (if not already going), or stops and resets them. |
spawner |
spawner, action: wake, stop, reset |
Wakes it whatever its range, stops it spawning, or resets it (its mobs removed, not used up). |
spawn |
mob, area, count |
Spawns mobs at random open places in the area (as a spawner’s mob, not counted by any spawner). |
var |
name, op: set, add, toggle, value |
Changes a variable (for the player, their party, or the world, by its scope). |
rule |
rule, enable |
Switches a rule on or off. |
signal |
name |
Fires the signal trigger. |
checkpoint |
checkpoint |
Makes it the party’s respawn point. |
blocks |
area, block |
Fills the area with the block (minecraft:air clears it). |
particles |
particle, area |
A burst of particles through the area. |
wait |
seconds |
The actions after it run that much later. |
end |
result: won, lost |
Ends the run cleared or failed. |
owner only says where the editor shows a rule (an object’s panel, or the
project’s list when null); it changes nothing in a run.
dungeon.json, version 3: mob types and combat
Version 3 adds what adventure-json.md’s “Version 4: mobs, bosses and combat” describes, the same in a dungeon:
mobs, the dungeon’s own mob types (bosses among them), andlootboxes(with theirlooks,blockandboxModelsas in adventure-json.md’s “Looks and effects”, with no version bump; the models’ item models are in pack.zip and their Bedrock entities in the bundle’s Bedrock pack);- spawners’, wave groups’ and
spawnactions’ mobs naming one withcustom; - kill triggers naming
vf:mob-…; - the
burstaction; settings.numbersandsettings.companions;- health bars:
settings.healthbar, and a mob type’s ownhealthbar.
A dungeon with no mob types is still written as version 2 (or 1), which
older plugins read. A mob type’s model look and the health bars need the
dungeon’s pack.zip, which carries the models its mobs wear and the
voxelforge:healthbar font.
dungeon.json, version 4: mobs’ own moves
Version 4 adds what adventure-json.md’s “Version 9: mobs’ own moves” describes, the same in a dungeon:
- own moves (
"skill": "move"), skills’weight, and a mob type’smoves; - the fight conditions (
mobHealth,distance,sight,nearby); - the
aim,warn,shootandrandomactions, andburst’sin; statuses, thestatusaction and condition,burst’sapply, thezoneaction, and a mob type’scrowdControl.
The editor writes version 4 only when a mob type has an own move, or a
rule, ability or phase uses one of these conditions or actions; otherwise
it’s still version 3 (or lower). The warnings’ shapes are in the
dungeon’s pack.zip.
dungeon.json, version 5: more conditions
Version 5 adds the conditions adventure-json.md’s “Conditions: what
version 10 adds” describes, the same in a dungeon: date, weekday,
time, weather, biome, mobsNear, holding, health, potion,
any and compare. Dates and days of the week go by the server’s time
zone. The editor writes version 5 only when a rule, or a mob type’s own
move or ability, uses one of them.
dungeon.json, version 6: effects and shots
Version 6 adds what adventure-json.md’s “Version 13: effects and shots”
describes, the same in a dungeon: the effects list, the fx step,
statuses’ and zones’ looping effects, and shots’ look (with a player’s
projectile’s hit steps), and the talent pieces: the hit, chain,
leap, blink, charge, grapple, totem, trap, orbit,
decoy, shield, cleanse, aura, stealth and repeat steps and
shots’ path, and casting: the cast and interrupt steps (a mob’s
cast shows over it and in its boss bar), and steps’ formulas (numbers
worked out as they run; rank and a player’s level are 1 in a run), and body animations (mob types’ moving
models in boxModels, look.anims and look.head, a skill’s anim, the anim step). Its pack has the effects’ frames under
voxelforge:fx/vfd_<dungeon>/… (version 7: in its own namespace, <namespace>:fx/…),
so two dungeons on one server don’t share pictures. The editor writes version 6 only when the dungeon plays
an effect.
cutscenes (read with version 6) is adventure-json.md’s baked
cutscenes, positions from the schematic’s corner: bosses’ intro play
from it in runs entered from an adventure map (adventure-json.md, “Version
13 also: cutscenes”). Other runs play no intros. The editor doesn’t make
dungeon cutscenes yet: what it writes today is the project’s own
(unbaked, empty) list, which the plugin reads as none.
Text icons
A dungeon’s words can have text icons (:key:, from the editor’s
Library → Icons) as an adventure map’s can. icons lists them by name,
in the same shape as adventure.json’s (adventure-json.md, “Text icons”),
and its pack.zip has their voxelforge:icons font. The plugin draws
them for whoever reads them:
- Drawn per player: rule messages, titles and action bars, the lobby NPC’s lines, boss bars (one for each kind of player) and mobs’ drawn health bars.
- Stand-ins: chest holograms show everyone the stand-ins.
- Baked in: holograms placed with the Displays tool are in the schematic, with the pack’s glyphs baked in. So players without the pack see boxes there.
A file without icons has none, and its codes stay as typed.
Each dungeon’s own glyph page (n26). Bedrock has one glyph table for
every pack on a server: font/glyph_XX.png draws U+XX00 to U+XXFF. So a
dungeon’s icons don’t sit at U+E600 + n (an adventure map’s) but on a page
of its own, worked out from its namespace: one of E2–F8, the private-use
pages vanilla Bedrock leaves empty, less E6 (maps’ icons) and E7 (the big
icons, U+E700 + n, in the dungeon’s own font). Icon n is U+XX00 + n
everywhere: its glyph, its pack and bedrock components, its Java font
(<namespace>:icons), the holograms baked into the schematic, and its
Bedrock sheet font/glyph_XX.png in bedrock.mcpack. The same dungeon
always gets the same page; dungeons spread evenly over the 21 pages, so two
dungeons with icons share one about 1 time in 21 (the plugin then keeps
the newer sheet and warns). Nothing new for the plugin to read: 0.9.0 takes
the codes from the file. Files exported before n26 keep U+E600 + n.
dungeon.json, version 7: its own namespace, items and enchantments
Version 7 (VF Dungeons’ beta) makes a dungeon complete on its own and polite beside other dungeons: it carries its own items and enchantments, and everything it adds to a server lives in its own namespace, so any number of dungeons share one server, one resource pack and one data pack. Every export is version 7 now: its pack is laid out for VF Dungeons’ combined pack, which a plugin that reads up to version 6 doesn’t make, so it refuses the file as made by a newer Voxelforge.
Only what the plugin reads goes in. A dungeon project can hold an
adventure map’s logic (copied in, or from a project that was a map), but
dungeon.json carries only: format, version, namespace, name,
size, fonts, settings (difficulty, partyScaling, deaths,
lives, timeLimit, hunger, ownGear, numbers,
companions, healthbar), start, exit, lobby, kit, loot,
chests, spawners, checkpoints, areas, doors, switches,
waves, sounds, variables, rules, mobs, lootboxes,
statuses, effects, icons, items, enchants, tiles and
boxModels. Version 1’s triggers and version 6’s unbaked cutscenes
are no longer written, nor is settings.timer (in earlier plugins, the
run’s bar at the top; the time left is on the run’s sidebar now, and
plugins ignore it in older files).
{ "format": "voxelforge-dungeon", "version": 7, // "vfd_" and 6 hex characters of a hash of its project's id: the same for the life of the project, different for // every project. Its items, enchantments, pack fonts, effects and uploaded sounds are named in it. Also in manifest.json. "namespace": "vfd_3fa9c1",
// The fonts its pack holds, by what they're for; a missing key: that font isn't in the pack (nothing uses it). "fonts": { "healthbar": "vfd_3fa9c1:healthbar", // mobs' health bars: settings.healthbar's and each mob type's glyphs are in it "icons": "vfd_3fa9c1:icons", // its text icons (each icon's components name it too) "finder": "vfd_3fa9c1:finder" // the group finder's picture: U+E100, 78 × 36 GUI px, drawn at 2×, its top 20 px into a chest title },
"items": [ { "id": "item-1", "name": "Ember blade", "base": "iron_sword", "gear": "<gear uuid>", "lore": "Still warm.", "rarity": "epic", "glint": false, "slot": "mainhand", "stats": [{ "stat": "attack_damage", "amount": 4, "op": "add" }], "enchants": [{ "id": "vf:enchant-1", "level": 2 }, { "id": "sharpness", "level": 1 }], "durability": null, "stack": 1, "food": null, "abilities": [{ "id": "ability-1", "name": "Flare", "when": "use", "if": [], "then": [], "mana": 0, "cooldown": 8, "charges": 0, "sound": { "id": "vfd_3fa9c1:sound-1", "volume": 1, "pitch": 1, "vary": 0.1 } }], "thrown": false, "soulbound": false, "set": null, "upgrades": [], "sockets": 0, "gem": null, "level": 0, "classes": [], "races": [], "counter": { "model": "voxelforge:cooldown/vfd_3fa9c1/item-1", "ability": "ability-1" }, "model": "voxelforge:cooldown/vfd_3fa9c1/item-1", "equipment": null, "tooltip": null, "square": null, "charged": false, "tooltipStyle": "voxelforge:epic" } ], "enchants": [ { "id": "enchant-1", "name": "Ember bite", "maxLevel": 3, "on": ["sword", "axe"], "table": 5, "exclusive": [], "effects": [{ "do": "ignite", "seconds": 4 }, { "do": "lifesteal", "percent": 10 }] } ]}Its items
items has adventure.json’s item shape (adventure-json.md, “Items”), kept
to what works on any server: the game’s own attribute stats, enchantments,
durability, food, a look (model, equipment), a rarity frame, a
coloured name and plain lore, plus abilities with cooldowns and charges
(which need VF Dungeons, and work in every world). The open world’s parts
are written at neutral values (level 0, no classes, races,
set, upgrades, sockets or gem; abilities’ mana 0 and no
casting) or left out (material, stars, recipe, blueprint,
pet, typeWord); stats hold no mana or combat stats, and slot is
never a jewellery slot. The editor’s Items dialog doesn’t offer them in a
dungeon, and Check warns when a dungeon’s items still have them.
-
slot"any"is the game’s ownanyslot group in a dungeon: the stats count while the item is in either hand or worn (the editor calls it “held or worn”). Stats carried anywhere in the inventory would need plugin code, which dungeon items don’t get. -
model: the item_model it wears (a Library or uploaded look, or its cooldown counter’s: cooldowns.ts), or null for its base item’s own. -
wornModel:true(left out otherwise) for a 3D look worn on the head as its model, a helm on a helmet base (adventure-json.md, “Bedrock players”, has the rule). No version bump: a plugin that doesn’t read it wears the item as its base, as players without VF’s pack see it. -
tooltipStyle: the tooltip frame its rarity gives it,voxelforge:<rarity>(the pack’svoxelforge:tooltip/<rarity>_frameand_background), or null for a common item, which keeps the game’s own. The tooltip itself is the game’s: its name in the rarity’s colour, plain lore and the game’s attribute lines. The plugin gives the item itstooltip_stylefor players with VF’s pack; everyone else sees the game’s own tooltip. -
enchantsname the game’s enchantments (sharpness), the dungeon’s own (vf:enchant-1), and the library’s standard ones (vflib:burning: the editor’s list issrc/dungeon/vflibCatalog.ts). VF Dungeons’ jar carries the library’s data pack, so a dungeon file never carries those files; the plugin writes the id intominecraft:enchantmentsas it is. -
A library enchantment’s book is
vf:book/vflib:<id>/<level>(vf:book/vflib:burning/2), beside the dungeon’s ownvf:book/enchant-1/2; the editor’s item picker offers them in dungeons. -
soulboundis always false: VF Dungeons doesn’t run it, and the editor hides it in dungeons (Check warns, “Remove them” clears it). -
Ids stay
vf:item-1andvf:book/enchant-1/2wherever an item goes (kits, loot, rewards, keys, rules). The plugin scopes them withnamespace: the item’scustom_data.voxelforge.itemisvfd_3fa9c1:item-1, so two dungeons’item-1never meet. In game,/vfd give <player> vfd_3fa9c1:item-1 [count]gives one (the dungeon’s name in a-z0-9_ works in place of the namespace). The editor’s Items dialog shows that command, and its “For other servers…” export writes the samecustom_datain its/givecommands.
Its enchantments
enchants has adventure.json’s shape. In the game each is
<namespace>:<id> (vfd_3fa9c1:enchant-1), and an item’s
vf:enchant-1 means that one. A stat effect with a mana or combat stat
isn’t written (a data pack can’t add those). The bundle’s datapack/
folder holds them as a data pack:
| Path | What |
|---|---|
datapack/pack.mcmeta |
For an owner who drops the folder into world/datapacks/ themselves |
datapack/data/<ns>/enchantment/<id>.json |
The enchantment (damage, stats, protection, on-hit effects, ignite, lightning, auras) |
datapack/data/<ns>/tags/item/enchantable/<id>.json |
What it goes on |
datapack/data/minecraft/tags/enchantment/in_enchanting_table.json |
replace: false; the ones the enchanting table offers |
datapack/data/minecraft/tags/enchantment/on_random_loot.json |
replace: false; all of them, as books in loot |
The two minecraft tags are additive. VF Dungeons builds one data pack
from every installed dungeon: it copies data/<namespace>/** as it is,
merges the minecraft enchantment tags itself (each value as {"id": …, "required": false}, so removing a dungeon never breaks a tag), and ignores
the folder’s pack.mcmeta and anything else.
More XP is in the JSON too: minecraft:mob_experience and
minecraft:block_experience, each a minecraft:multiply by a linear
factor (1 + percent/100 at level I, + percent/100 a level above). Lifesteal,
auto-smelt, telekinesis and vein mining stay in effects for the plugin
to run. (A map’s enchantments still leave more XP to the plugin.)
Its pack
pack.zip never holds anything under assets/minecraft/ (the editor
refuses to write such a file), so it never replaces a vanilla file and
needs no merging with the server’s own pack:
assets/<namespace>/, the dungeon’s own: its health bars (font/healthbar.json,font/healthbar_number_<n>.json,textures/healthbar/…), text icons (font/icons.json,textures/icons/…), the finder picture (font/finder.json,textures/finder/picture.png), effects (models,itemsandtextures/itemunderfx/<effect>/…; each flipbook layer’smodelis<namespace>:fx/<effect>), and uploaded sounds (sounds.json,sounds/<id>.ogg).assets/voxelforge/, art several dungeons can share: uploads by their uuid (skins, gear, models:models/item/<uuid>.json,items/model/<uuid>.json), loot box and moving models’ bones (box/<model uuid>/…), warning shapes, the rarity frames, the effects’ empty shot model, and cooldown counters (cooldown/<namespace>/<item>and the sharedcooldown/<n>pieces). The same path always has the same bytes from any dungeon, so a plugin combining packs keeps one copy.- Uploaded sounds are named
<namespace>:<id>wherever a sound goes (rules’ and abilities’ Play a sound steps, item abilities’ sounds, effects’ sound layers, sound zones, doors, loot boxes); game sounds stay as before. dungeon.json no longer carries the sounds themselves. - Model displays and model-look mobs wear their model’s own item
definition,
voxelforge:model/<uuid>: a model display’s item in blocks.schem hasminecraft:item_modelset to it (itscustom_model_dataid and box stay, for Bedrock and the plugin), and a mob type’s model look carries it asitemfor the plugin to give the display it spawns. There’s no stand-in block item any more: without the pack they show the game’s missing-model box. - No core shaders: a dungeon has no forms, so its moving models need no item shader.
pack.mcmeta is each dungeon’s own; a plugin combining packs writes its
own.
VF’s pack: every dungeon in one (n06)
VF Dungeons merges the pack.zip of every file in its dungeons folder
into one pack (pack/PackMerge.java in the plugin), made again whenever a
file is added, replaced or removed there (it looks every 5 seconds), and
kept as plugins/VFDungeons/pack/vfdungeons.zip:
- The union of their files. The same path with different bytes keeps the
newest dungeon’s (by manifest.json’s
made) and logs both names. - Left out, with a line in the log: anything under
assets/minecraft/(an older file’s stand-in items, tooltips and shaders: re-export it), and a version 7 dungeon’s files under any namespace but its own andvoxelforge. - Its own
pack.mcmeta:min_formatthe newest of the dungeons’ oldest formats,max_formatat least 99. - Entries sorted, one fixed time: the same dungeons always make the same bytes and hash, so players’ games reuse the copy they have.
It’s published by its SHA-1 (pack.host in the plugin’s config:
voxelforge.app over VoxelForge Core’s link, stored in R2 and downloaded
from voxelforge.app/api/packs/<sha1>.zip; the plugin’s own web server;
or the owner’s link) and sent to Java players as they join as a pack of
its own id, beside the server’s own pack (replace: false), which it never
replaces or removes. A player sees a dungeon’s looks (its health bars,
items’ looks and frames, models, effects) only when the version of VF’s
pack they loaded holds that dungeon; everyone else gets the plain ones.
Bedrock: the dungeons’ bedrock.mcpack files merge the same way into one
pack for Geyser (pack/BedrockMerge.java): JSON at the same path (the
item atlas, shared animations) is merged, other clashes keep the newest,
and two dungeons’ mappings for the same Bedrock item (one gear look) become
one with the smaller max_stack_size. Text icons’ glyph sheets don’t clash
as long as the dungeons’ glyph pages differ (see “Text icons”: each dungeon
has its own page since n26). /vfd pack export writes the plain
zip, ItemsAdder, Nexo and Oraxen folders and a Geyser folder (the Bedrock
pack and its custom item mappings) to plugins/VFDungeons/pack/export/.
dungeon.json, version 8: tiers, On death and server items
Version 8 (VF Dungeons phase 2, “Fits into servers”: checklist n09–n11)
lets a dungeon fit into a server people already run: a difficulty that
scales every enemy number, up to three tiers, the server’s own death rules,
and loot, prizes and keys from the server’s item plugins. Agreed with the
plugin lane in vfd-phase2-contract.md (side-session notes).
Written only when used: a file is version 8 when it has a tier, names a
server item, or sets onDeath to "server"; otherwise it stays version 7,
so servers still on an older plugin keep loading it. VF Dungeons 0.9.0
reads 1 to 8; missing fields mean what version 7 did.
{ "version": 8, "settings": { // Any number from 0.25 to 4 (the editor's slider, in steps of 0.05). "difficulty": 1.5, // "keep" (the default, left out): a lethal hit is a down and nothing drops. // "server": the death happens: the server's keepInventory, grave plugins and death messages apply; // VF still counts the down and respawns them (checkpoint or lives), and what dropped can be picked up until the run ends. "onDeath": "server", // New dungeons: true ("Own gear": the kit is added on top and taken back as they leave); false is "Dungeon kit only". // A file without it reads as false. "ownGear": true, // 2 or 3 tiers players pick from (left out: none, the dungeon as it is). "tiers": [ { "id": "normal", "name": "Normal", "multiplier": 1, "loot": null, "needs": null }, { "id": "hard", "name": "Hard", "multiplier": 1.5, "loot": "loot-4", "needs": { "kind": "permission", "permission": "vfdungeons.tier.crypt.hard" } }, { "id": "mythic", "name": "Mythic", "multiplier": 2.5, "loot": "loot-5", "needs": { "kind": "item", "item": "itemsadder:crypt:mythic_key", "count": 1, "from": "leader", "take": true } } ] }, // The server items it names, each with its vanilla stand-in (only the ones something uses). "serverItems": [ { "ref": "itemsadder:crypt:mythic_key", "name": "Mythic key", "standIn": "tripwire_hook" }, { "ref": "money:50", "name": "50 coins", "standIn": "emerald" } ]}Difficulty and tiers
An enemy’s numbers are multiplied by difficulty × its tier’s
multiplier × the server’s own (runs.difficulty-multiplier in VF
Dungeons’ config, or that dungeon’s line in dungeons.yml, which replaces
it), and party scaling’s extra health on top. What scales: health and
attack damage; skills’ damage and a heal skill’s amount (the mob healing
itself); and everything an own move, mob ability or boss phase step deals
(hits, bursts, zones, shots, chains…). What doesn’t: crit, dodge and
resist, speed, armor, knockback resistance, size, XP, counts, cooldowns and
durations, shield skills (a share of damage), heal steps (they heal
players), and phases’ own speed and damage factors. The editor’s Mobs
dialog shows what each scaling number becomes (“450 → 675”, each tier’s on
hover); nothing extra is written per mob.
id: a-z0-9_, set when the tier is made and kept through renames, so records and leaderboards keep it./vfd play <dungeon>:<tier>and/vfd start <player> <dungeon>:<tier>take the id or the name in a-z0-9_ form; no tier is the first.multiplier: 0.25 to 10. The first tier is the one picked by default.loot: a loot table rolled as well at each chest (per player for a per-player chest; once as a shared chest is filled) and each boss kill (for everyone who fought it). Not at wave rewards or other mobs’ drops.needs: null (anyone), or one of:
| kind | fields | means |
|---|---|---|
permission |
permission |
Every member has it. |
item |
item (any item ref, server items included), count, from (leader or each), take |
Carrying that many anywhere in the inventory; take uses them up as the run starts. |
money |
amount, from |
Vault money, paid as the run starts. |
level |
placeholder, min |
Every member’s level is at least min: the server’s levels.placeholder when its config names one, else this placeholder (PlaceholderAPI; empty: the server’s only). |
Requirements are checked when a tier is picked or queued and again at the
start; nothing is taken until everyone passes. Plugin defaults for missing
keys: from each, take true, count 1.
Server items
Wherever an item ref goes, it can be another plugin’s item, Vault money or a command:
| Source | Ref |
|---|---|
| MMOItems | mmoitems:TYPE:ID |
| ItemsAdder | itemsadder:namespace:id |
| Nexo | nexo:id |
| Oraxen | oraxen:id |
| MythicMobs items | mythic:Name |
| Money (Vault) | money:50 (pays 50 × the count) |
| A command | command:eco give {player} 50 (run by the console once per roll, {player} and {count} filled in; only with allow-commands: true in VF Dungeons’ config) |
Each one the dungeon names has an entry in serverItems: its standIn, a
vanilla item or the dungeon’s own vf:item-N, is what players get (the same
count) on a server without that plugin, when the id isn’t found there,
without Vault, or with commands off; the load report lists what fell back.
Money and commands come as a reward item with the stand-in’s look and the
entry’s name (“Click to collect”), paid or run when it’s clicked, picked
up or given straight to the inventory, so name is shown to players.
The editor offers server items wherever a dungeon names an item (n24):
loot tables, loot box prizes, crate keys, door keys, tiers’ key items, mob
types’ drops and gear (equipment), what spawners’ and waves’ mobs hold
(mob.weapon), the kit (kit.slots, kit.armor, kit.offhand), and give,
take and “has an item” steps (in rules, mob types’ moves, abilities and
phases, items’ abilities and statuses). The plugin makes and matches them
anywhere an item ref goes. Money and commands are collected the moment they
arrive, so nobody ever carries, wears or holds one: keys, gear (armor slots,
hands, the off hand), take steps and “has” conditions take plugin items
only. serverItems lists the refs any of these places use, and nothing
else.
Check, errors: a server item with no stand-in; money or a command as a key, as gear, in a take step or in a “has” condition; a ref written wrong; any server item in an adventure map. A warning: money or a command in the kit’s inventory (it’s paid or run as each run starts, and stays theirs).
Loot weights
Loot entries’ and prizes’ weight are whole numbers, 0 or more, in what the
editor writes (Check gives an error for a fraction, and the export rounds).
VF Dungeons 0.9.0 reads any number of 0 or more, and skips (and logs) a bad
entry instead of the whole dungeon; 0.8.0 needs whole numbers.
dungeon.json, version 9: loot lockouts and entry cooldowns
Version 9 (VF Dungeons phase 3, “Owner tools”: checklist n13) lets a
creator say how often a dungeon gives its loot and how soon players can
play it again. Agreed with the plugin lane in vfd-phase3-contract.md and
vfd-phase3-contract-reply.md (side-session notes). The creator sets them
in Dungeon settings (Loot lockout, Entry cooldown) and, per tier, in the
Tiers dialog; the server owner’s dungeons.yml can change them.
Written only when used: a file is version 9 when it has a lockout other
than "none" or a cooldown above 0, at dungeon or tier level; otherwise it
stays what version 8 says (8 for tiers, server items or the server’s death
rules, else 7). VF Dungeons 0.10.0 reads 1 to 9; missing fields mean no
lockout and no cooldown. 0.9.0 refuses a 9 (“made by a newer VoxelForge”).
{ "version": 9, "settings": { // The dungeon's, and every tier's that doesn't set its own. Left out: "none". "lockout": "weekly", // Minutes a player waits after a clear before playing it (that tier) again. Left out: 0. "cooldownMinutes": 30, "tiers": [ // A tier's own, written only when it sets one; then as set, so "none" and 0 turn the dungeon's off for that tier. { "id": "normal", "name": "Normal", "multiplier": 1, "loot": null, "needs": null, "lockout": "none" }, // No lockout or cooldown of its own: the dungeon's (weekly, 30 minutes). { "id": "hard", "name": "Hard", "multiplier": 1.5, "loot": "loot-4", "needs": null }, { "id": "mythic", "name": "Mythic", "multiplier": 2.5, "loot": "loot-5", "needs": null, "lockout": "weekly", "cooldownMinutes": 0 } ] }}lockout:"none","daily"or"weekly". The editor writes the dungeon’s only when it isn’t"none". The plugin reads anything else as"none"(and its load report says so).cooldownMinutes: a whole number, 0 to 10080 (a week). The editor writes the dungeon’s only when it’s above 0. The plugin reads a bigger one as 10080.- A tier’s
lockoutandcooldownMinutesare left out when it uses the dungeon’s (“Same as the dungeon” in the Tiers dialog). When nothing anywhere locks or makes players wait, all of them are left out and the file isn’t 9. - A dungeon without tiers uses the dungeon’s pair for its one built-in tier.
What VF Dungeons does with them:
- Loot lockout: once a player has looted a chest (opened it and got its
roll) or a boss (got its drops), that chest or boss gives them nothing
more until the reset: the chest says when it resets, and the boss’s drops
skip them. They can still play and help their party. Plain mob drops and
wave rewards aren’t locked; a tier’s extra loot (
tiers[].loot) is locked with its chest or boss. Kept per player, dungeon and tier, so a player locked out of Hard can still loot Normal. - Chests under a lockout: there are no shared chests. Every chest gives
each player their own roll, as a per-player chest does, so a chest’s
perPlayer(“Loot for each player” in the editor) doesn’t matter while a lockout is on. A locked-out player who clicks a chest sees nothing open: a locked-chest sound plays and the action bar says “You’ve looted this already. Resets in 14 h”. Party mates who haven’t looted it since the reset get their own roll, and within one run a player can reopen a chest they’ve already opened (their roll is kept for the run). - Bosses under a lockout: a locked-out player gets no boss loot or tier loot from that boss; its drops on the ground stay unless everyone who fought it was locked out.
- Reset time: the server’s, in VF Dungeons’ config.yml
(
resets.daily, default “00:00”;resets.weekly, default monday;resets.zone, default the server’s). Not in the file. - Entry cooldown: starts when a run of that tier is cleared (not when one fails), for every player still in it at the end; until it’s over they can’t start, join or queue for that tier. The tier picker shows how long is left.
- Owner override:
plugins/VFDungeons/dungeons.ymlcan setlockoutandcooldown-minutesper dungeon and per tier; they replace the file’s. - The tier picker and
/vfd lockoutsshow each tier’s lockout and cooldown.
Check: a lockout that isn’t one of the three, and a cooldown below 0, above 10080 or not whole, at dungeon or tier level, are errors. The editor’s fields can’t make either, so these only catch a hand-edited or imported dungeon.