Repository navigation
Releases
Vellum 0.10.1
- The previewer draws like the game in four more places: opacity rounds down as in game (half opacity is alpha 127, not 128), sprites at fractional sizes stretch to fill their box, clips round to whole GUI pixels as the game's scissor does, and
<item count>is read as a number of at least 1 ("07"shows 7,"abc"and"0"show no count). The opacity math is one engine function both use. - Borders and padding are as wide on the right and bottom as on the left and top. A box whose right or bottom edge falls exactly halfway between device pixels, such as one centered or sized in percent in a window of odd width or height at GUI scale 2, drew a 1px border 1.5px wide there, because those edges rounded the other way from the left and top ones.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.10.1.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.10.1.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.10.1.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.10.1.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.10.1.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.10.1.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.10.0
- CSS nesting: style rules can hold rules and
@media,@supportsand@layerblocks. - Transformed elements and form controls at fractional positions no longer draw off the device pixel grid
Thank you @tuhkanens-dev for reporting the bugs!
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.10.0.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.10.0.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.10.0.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.10.0.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.10.0.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.10.0.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.9.0
- An element inspector: F12 on a page's screen docks a panel on the right with the page's tree, a picker, and the selected element's box, attributes, inline style, text and computed values. Attributes, style and text can be edited live, and elements deleted. Drag the panel's edge to resize it, and the bar between the tree and the details to share its height. It's on in a development environment, and
client.inspector=trueturns it on elsewhere. See "Inspector" indocs/api/development.md. - The
mapdemo is gone.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.9.0.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.9.0.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.9.0.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.9.0.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.9.0.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.9.0.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.8.0
<scene>: a small 3D world in a box. Blocks come from a structure file (structure="ns:path/file.nbt") and<block x y z state>children;<block-group x y z>claims a box of them (x="3..7" y="2", an axis left out being all of it) to show, fade (opacity), move (-mc-translate) and turn (-mc-yaw,-mc-pitchand the new-mc-roll) with ordinary CSS transitions and animations;<entity x y z>children stand in it; and<scene-anchor x y z>pins HTML captions to points in it. The camera is-mc-yaw,-mc-pitch,-mc-model-scaleand the new-mc-scene-center, plus dragging withrotatable. Hovering a block shows its name and firesblockhover, clicking firesblockclick. Each group is meshed once, with neighbors culled, fluids, connected blocks and block entities, and a scene that doesn't change is one blit a frame. Scripts change scenes by changing their children. 26.x only: on 1.21.1 a scene lays out and fires its events but draws nothing. The previewer draws scenes from the blocks' models. See "Scenes" indocs/api/elements.md, and the Cottage showcase (/vellum showcase scene), which builds itself step by step.Host.loadBytes: hosts give the engine binary resources (structure files). In game it reads resources, dev source trees and page folders asloadTextdoes.- Style changes cost much less when selectors can't see them: a script writing
el.styleor text every frame no longer rematches every selector in the page (about 1 ms a frame down to 0.2 ms on a 500-element page). Selectors are matched again only after tree changes, state changes (:hover,:checked...), changes to attributes some selector reads,idandclass, and text that empties or fills an element. - Changing a
<link>'shref,relormedia, or text inside an element in a<style>, restyles the page at once, not with the next change that happens to. DocumentDriver.patch(key, value)sets one top-level field ofvellum.datawithout sending the rest. Only the value is serialized and parsed, the page's other objects stay as they are, and the page getsvellum.on('patch', ({key, value}) => ...), then its'data'listeners with the key as a second argument. A null value removes the field. Patches are kept across reloads, as pushes are.VellumSession.patchandVellumHud.patchdo the same from a server and for HUD overlays; a server's patches count towardclient.maxDataCharsandclient.maxDataDepth.mergeno longer parses and re-serializes the whole data: the driver keeps each top-level field's JSON and only serializes the fields you pass. The page still gets the whole data.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.8.0.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.8.0.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.8.0.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.8.0.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.8.0.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.8.0.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.7.0
VellumPages.folder(namespace, dir)serves a namespace from a folder players can edit, such as one inconfig/. Relative stylesheets, scripts and images resolve inside it, saving any of them reloads the page, and nothing outside the folder can be read. See "Pages players edit" indocs/api/pages.md.- If the shape shader fails to compile, Vellum draws shapes the old way until the next resource reload, instead of retrying the compile every 5 seconds (a hitch each time).
- Less work per frame: animations are only advanced a second time when an event handler changed them, outer box-shadows skip work the shader threw away, and the previewer no longer allocates per pixel.
- Less work per restyle, relayout and event: colour transitions no longer copy the whole style twice a frame, grid track sizing measures each item once, flex and grid containers skip the anonymous boxes whitespace between items used to make, and event listeners only build error messages when something fails.
- The build no longer pulls in Mixin, whose annotation processor made every change recompile all of the mod's code.
&,<and the like without a semicolon decode at the end of text and right before another&(a &wasa &&).- Deselecting an option that wasn't selected, when that leaves a select with no selection, now updates the page (
:checked,v-model). - A grid row's minimum counts a scroll container item's percentage margins.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.7.0.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.7.0.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.7.0.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.7.0.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.7.0.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.7.0.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.6.2
- The jar is about 12% smaller (2.8 MB to 2.5 MB): classes keep line numbers for stack traces but not local variable tables, and Rhino's French and Chinese error messages are left out.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.6.2.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.6.2.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.6.2.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.6.2.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.6.2.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.6.2.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.6.1
- On Minecraft 26.2 and 26.3, rounded boxes, rounded borders and box-shadows are drawn by a shader: smooth antialiased edges at any GUI scale or rotation, and a real Gaussian blur.
shape-rendering: crispEdgeskeeps a page or element pixel-sharp, andclient.shapeShader=falseinvellum.propertiesturns the shader off for everything. 1.21.1 is unchanged. - The previewer draws rounded boxes, borders and shadows the way the shader does, so pages look the same there as in game.
Canvas.fillBoxShadow: a canvas backend can draw box-shadows itself.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.6.1.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.6.1.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.6.1.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.6.1.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.6.1.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.6.1.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.6.0
- Timers a page sets while it loads wait their full delay. In game, the first frame jumped the clock from 0 to the game's own time, so a load-time
setTimeoutfired at once andperformance.now()jumped.performance.now()andrequestAnimationFramenow count from the page's first frame, as in browsers. - The jar is about 150 KB smaller: Rhino's bytecode compiler, serialization and CommonJS loader, which Vellum never runs, are left out.
- Showing a HUD overlay again from its own
onClosehandler works (it was undone right after), so a queue of toasts is a few lines;docs/api/hud.mdhas the recipe. -mc-entity-focus: centerfits an<entity>likebodybut zooms around its middle with-mc-model-scale, so zooming in no longer shows only the feet.:keyworks on any element, not only in av-for: when the key changes the element is re-created, so its entrance animation replays. A keyedv-ifbranch does the same. The journal and Mobdex use it instead of one-item loops.- What an animation's
finishedpromise or event changes applies before the next frame is drawn, so the journal no longer flickers after a page turn. - The templates and the Vellum build start from any JDK 17 or newer: Gradle downloads Java 25 for itself, which Fabric Loom needs.
- The showcase and demo pages are about 12% smaller and share
showcase/showcase.css, with the same look.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.6.0.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.6.0.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.6.0.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.6.0.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.6.0.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.6.0.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.5.1
list-styleandlist-style-typework:noneremoves a list's bullets, anddisc,circleandsquarepick them.- Enter in a text field submits its form, as in browsers.
- NeoForge 26.3 no longer warns about Vellum's deprecated
logoFileat startup. template/has example mods for NeoForge and Fabric that depend on Vellum from the maven.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.5.1.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.5.1.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.5.1.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.5.1.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.5.1.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.5.1.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.
Vellum 0.5.0
- Vellum is on maven.maxleiter.com. Mods should make it a required dependency instead of bundling it.
.mc-dimand.mc-centergive a page vanilla's dimmed background and centered layout.- Vellum now runs on Minecraft 26.2 as well as 26.3 and 1.21.1, on NeoForge (26.2.0.88) and Fabric (Fabric API 0.161.0+26.2). Everything works on 26.2 except the dev tour (
-Ptour), which stays 26.3 only; docs/versions.md lists the differences.
Also on Modrinth and CurseForge.
| Jar | Loader | Minecraft |
|---|---|---|
vellum-fabric-1.21.1-0.5.0.jar |
Fabric (needs Fabric API) | 1.21.1 |
vellum-fabric-26.2-0.5.0.jar |
Fabric (needs Fabric API) | 26.2 |
vellum-fabric-26.3-0.5.0.jar |
Fabric (needs Fabric API) | 26.3 |
vellum-neoforge-1.21.1-0.5.0.jar |
NeoForge | 1.21.1 |
vellum-neoforge-26.2-0.5.0.jar |
NeoForge | 26.2 |
vellum-neoforge-26.3-0.5.0.jar |
NeoForge | 26.3 |
For mod developers, the dev.vellum artifacts are on https://maven.maxleiter.com. See setup.