Patched

Allows data/resource packs to modify parts of json files instead of completely replacing them.
Back to Files

fabric-3.4.0+1.20.1

File namePatched-fabric-3.4.0+1.20.1.jar
Uploader
EnderTurretEnderTurret
Uploaded
Nov 3, 2024
Downloads
33
Size
196.4 KB
Mod Loaders
Fabric
File ID
5870285
Type
R
Release
Supported game versions
  • 1.20.1
  • 1.20

Curse Maven Snippet

Fabric

modImplementation "curse.maven:patched-689918:5870285"

Learn more about Curse Maven

What's new

New Features

  • Patches can now be applied to tags/sounds json/blockstates(?)/etc. or so-called "merged files". These only work for files defined in the same pack. That is, you cannot patch a tag defined by Minecraft (although you could patch your own contributions to it). This opens up the possibility for configurable tags, among other things.

New Features (modder-facing)

  • Added the paste patch type, which allows 'pasting' arbitrary code-defined data in json files. The intended purpose of this patch type is to make it possible to get config values into otherwise-unconfigurable things like biomes. For example, making a feature's spawn rate configurable without needing data packs. See the documentation and SingleDataSource for more information.
  • On (Neo)Forge, mods may now use IMC (InterModComms) to register data sources (for the paste operation) and test conditions (for test patches with a type field). See the documentation for details.

Changes (modder-facing)

  • Custom test registration has changed — they are now registered using Patched.registerTestCondition() and Patched.registerSimpleTestCondition(). Test conditions registered the old way will still work.