Patched

Patched

Mod

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

Client or server Utility

27.0k downloads
44 followers
Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.
Filter loader...
Filter versions...

Features

  • Added a new test type: patched:pack_enabled, which allows checking for the existence of data/resource packs. See the documentation for details.

Changes

  • Rewrote Patched's primary mixin for better compatibility with mods that cause re-entrant resource queries, such as Tiny Skeletons.

Changes (for mod developers)

  • Patched's library sources are now included in the mod's sources jar.
  • Patched's internals (or most of them) are now in an internal package, rather than spread out all over the place. This will break code using or mixing into these internals, but you shouldn't be doing that anyway.

Changes

  • Fixed a crash when using the Programmer Art resource pack. (This was caused by a missed change from Fabric API.) This does not affect the Forge build, and shouldn't affect Quilt either (it already has this change).

This update backports just about everything added from 5.1.0+1.20.4 to 7.1.1+1.21.1. It also introduces a few new changes and features, which will be ported over to 1.21.1 shortly.

Backported Features

  • Added the include operation, which allows effectively including the contents of a patch inside another patch. This is intended to reduce patch duplication.
  • Added "patch targets" (also called "dynamic" patches), which allow applying a single patch to any number of files.
  • Added two new test types:
    • patched:registered, which allows testing for the existence of something in a registry
    • patched:item_registered, which is a simplified version of the above

Backported Features (for mod developers)

  • The patch datagen stuff now supports Codecs in all of the methods taking Objects, and also now allows providing an alternate Gson for serialization in the Object versions. There's also been some minor javadoc improvements in that area.
  • Patched now supports reading its metadata from the loader-specific mod metadata files! This means that modders can finally ditch their pack.mcmetas and move this data to their fabric.mod.json/quilt.mod.json/mods.toml!

Backported Changes

  • The Patched metadata in pack.mcmeta files has been modified to reflect Mojang's changes to pack metadata sections. In short: patched:has_patches is no more, and instead there's a patched section. Patched will still load old-style packs.

New Features

  • Added a new test type: patched:pack_enabled, which allows checking for the existence of data/resource packs. See the documentation for details.

New Changes

  • Rewrote Patched's primary mixin for better compatibility with mods that cause re-entrant resource queries, such as Tiny Skeletons.

New Changes (for mod developers)

  • Patched's library sources are now included in the mod's sources jar.
  • Patched's internals (or most of them) are now in an internal package, rather than spread out all over the place. This will break code using or mixing into these internals, but you shouldn't be doing that anyway.

Changes

  • Support using a RegistryOps in the datagen code.

Changes

This is mostly a modder-facing update, adding two things.

First, the patch datagen stuff now supports Codecs in all of the methods taking Objects, and also now allows providing an alternate Gson for serialization in the Object versions. There's also been some minor javadoc improvements in that area.

Second, Patched now supports reading its metadata block from the loader-specific mod metadata files! This means that modders can finally ditch their pack.mcmetas and move this data to their fabric.mod.json/neoforge.mods.toml! See the recently added section in the 'Installation' document for the exact syntax.

Changes

  • Updated to 1.21.
  • The Fabric build no longer requires Fabric API. However, running without Fabric API will prevent mods' patches from being applied, and will cause Patched's client commands to be unavailable. (These features require Fabric API's resource-loader and command-api modules, respectively.)

Changes

  • Updated to 1.21.

Changes

  • Updated to 1.20.5.

Features

  • Added the include operation, which allows effectively including the contents of a patch inside another patch. This is intended to reduce patch duplication.
  • Added "patch targets" (also called "dynamic" patches), which allow applying a single patch to any number of files.
  • Added two new test types:
    • patched:registered, which allows testing for the existence of something in a registry
    • patched:item_registered, which is a simplified version of the above

See also the updated documentation for details on all of these.

Changes

  • The Patched metadata in pack.mcmeta files has been modified to reflect Mojang's changes to pack metadata sections over the past several updates. In short: patched:has_patches is no more, and instead there's a patched section. Patched will still load old-style packs, for now.
  • Fabric: fixed mixins that broke with semi-recent (mid-January) changes to Fabric API.
  • NeoForge: updated mod metadata for semi-recent (late-December?) FML changes

Changes

  • Port to NeoForge 1.20.4.

Changes

  • Updated to latest 1.20.2 Fabric API.

Changes

  • Try to avoid crashing the game if an "early loading" error occurs.
  • Fix crash on NeoForge ≥20.2.65.

Changes

  • Update to 1.20.2. There is not currently a Quilt version because QSL does not appear to support 1.20.2 yet. Do not try to use the Fabric version on Quilt; it won't work.

Project members

EnderTurret

Owner

Details

Licensed LGPL-2.1-only
Published 2 years ago
Updated 6 days ago