Monkey Patches

A collection of hacky patches to fix bugs in other mods, especially bugs that were fixed in unreleased versions of those mods.
Back to Files

monkeypatches-0.5.0.jar

File namemonkeypatches-0.5.0.jar
Uploaded
Dec 14, 2025
Downloads
55.4K
Size
54.4 KB
Mod Loaders
NeoForge
File ID
7333964
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:monkeypatches-1303058:7333964"

Learn more about Curse Maven

What's new

Added

  • Copper Age Backport GH48 patch for copper armor durability
    • ModItemsMixin: Fixes copper armor having infinite durability by adding explicit durability values
    • Adds durability to helmet, chestplate, leggings, and boots using durability multiplier of 11
    • Only loads for Copper Age Backport versions <=0.1.4 (fix should be in the next release)
    • No configuration option available - patch runs during early class loading before config system initializes

Fixed

  • KubeJS GH972 patches now include version predicates to prevent loading on fixed versions
    • ServerScriptManagerMixin and KubeJSModEventHandlerMixin now only apply to KubeJS versions <2101.7.2
    • Resolves crash when using KubeJS 2101.7.2+ which includes the native fix
    • Fixes "Critical injection failure" error when mixins attempt to apply to already-fixed code
    • See issue #3 for details

Technical Details

  • Uses @Redirect to intercept stacksTo() calls in specific lambda methods during armor registration
  • Targets lambda$register$74 (helmet), lambda$register$75 (chestplate), lambda$register$76 (leggings), lambda$register$77 (boots)
  • Chains durability() call onto properties builder: props.stacksTo(n).durability(type.getDurability(11))
  • Version predicate [,0.1.4] ensures patch doesn't conflict with upstream fix in newer releases
  • KubeJS GH972 mixins now use versionPredicates = "[,2101.7.2)" to prevent application on fixed versions

This mod has no additional files