Back to mods
BlockPatch Patcher project artwork

Vintage Story Mod DB · Vintage Story mod

BlockPatch Patcher

Enjoy my work? You can support me on Ko-fi or Patreon. Thank you! This mod is a library and adds no content to the game This is a small library to allow to patch blockpatches. With this installed, a content mod can add a file of blockpatch patches at config/

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which BlockPatch Patcher release should I use?

Updated 1 year ago
Latest stable file 1.1.0
Game version 1.19.8, 1.20.0, 1.20.4
Loader Built-in Vintage Story mod system

BlockPatch Patcher 1.1.0 targets 1.19.8, 1.20.0, 1.20.4. Do not install it on the client. It must be installed on the dedicated server. No extra mods listed for this file.

Where it goes

Is BlockPatch Patcher required on the client, server, or both?

Do not install it on the client. It must be installed on the dedicated server.

Client Not supported
Dedicated server Required
Loader for this release Built-in Vintage Story mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This Vintage Story file is marked server-only.

What else does BlockPatch Patcher 1.1.0 need?

1.1.0. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add BlockPatch Patcher without breaking your instance.

Built for BlockPatch Patcher 1.1.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.1.0. It targets 1.19.8, 1.20.0, 1.20.4; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    Do not install it on the client. It must be installed on the dedicated server.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.1.0. It opens that exact file at the source.

About this project

What does BlockPatch Patcher add?

Enjoy my work? You can support me on Ko-fi or Patreon. Thank you!

Support me on Ko-fi   Support me on Patreon

This mod is a library and adds no content to the game

This is a small library to allow to patch blockpatches. With this installed, a content mod can add a file of blockpatch patches at config/blockpatchpatches.json. Patches target all blockpatches, either in worldgen/blockpatches.json or in the worldgen/blockpatches folder.

The allowed format resembles very closely the blockpatch one, as seen in the example patch:

{
"comment": "Patch berries",
"code": "@.*(berry).*",
"op": "replace",
"minTemp": -100,
"maxTemp": 100,
"minRain": 0.0,
"maxRain": 1.0,
"minFertility": 0.0,
"maxFertility": 1.0,
"chance": 2000.0,
"minForest": 0.0,
"maxForest": 1.0,
"minY": 0.0,
"maxY": 1.0,
"quantity": { "dist": "invexp", "avg": 80.0, "var": 30.0 }
}

All numerical values of a block patch can be patched using one of three operation types: "add", "multiply", "replace". The first two will use the existing value dynamically, multiplying it or adding the value in the patch to it. Replace will instead simply replace the value.

Currently supported value types are:

  • Numerical values (int, float)
  • NatFloat (as an example, see "quantity" in the patch above)
  • Strings and lists of strings

Only numerical values support multiplication, string support addition and replacement, while the rest only support replacement. You can make multiple patches targeting the same code to get around this.

More modding tools and libraries

image

VTML Editor

Edit VTML in-game

image

ExtraCode

Adds extra classes and behaviors for content modders

image

Vintage Mod Templates [Code][Content]

Custom templates for code and content mods

Project description from Vintage Story Mod DB.

Pick your setup

BlockPatch Patcher releases for each Vintage Story version.

Choose the version and loader you play, then open the matching release.

4 available setups

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

BlockPatch Patcher versions and loaders

2 of 2 releases match

Looking for an older file? The official Vintage Story Mod DB project page is in Resources.