promotional bannermobile promotional banner

Item Coating

A mod that allows applying potion effects to weapons, tools, and armor. Effects trigger on attack, block break, or when taking damage.

File Details

itemcoating-forge-2.0.1.jar

  • R
  • Mar 12, 2026
  • 186.47 KB
  • 1.7K
  • 1.20.1
  • Forge

File Name

itemcoating-forge-2.0.1.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:item-coating-1472302:7747350")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Added - Logging System

  • Centralized Logger: New ItemCoatingLogger utility class using SLF4J
    • Replaces all System.out.println and System.err.println calls
    • Provides info(), warn(), error(), and debug() methods
    • Debug messages only shown when enabled in config
  • Debug Configuration: New debug config section
    • enableDebugLogging - enable detailed debug logging (default: false)
    • Useful for troubleshooting coating application and loot generation

Added - Force Hit-Based Mode

  • Force All Hit-Based: New option to convert all long-duration effects to hit-based
    • Available in coating, armorCoating, and toolCoating sections
    • forceAllHitBased - convert all effects to hit-based (default: false)
    • Effects ≤20 ticks (1 second) always remain hit-based with 1 hit
    • Effects >20 ticks converted using customizable formula
  • Duration to Hits Formula: Configurable formula for converting duration to hits
    • durationToHitsFormula - formula with {duration} variable (default: "{duration} / 200")
    • Default gives 1 hit per 10 seconds of potion duration
    • Examples:
      • "{duration} / 200" - 1 hit per 10 seconds (default)
      • "{duration} / 100" - 1 hit per 5 seconds
      • "{duration} / 20" - 1 hit per second
      • "5 + ({duration} / 200)" - base 5 hits + 1 per 10 seconds
    • Minimum 1 hit guaranteed (formula result clamped)
  • Formula Parser Enhancement: New evaluateWithDuration() method for duration conversion

Changed

  • Config Registration: Changed from RegisterType.CLIENT to RegisterType.BOTH
    • Enables proper client-server synchronization
    • Fixes dedicated server compatibility issues
  • Mixin Configuration: Moved ItemStackMixin from common to client-only
    • Fixes "Attempted to load class I18n for invalid dist DEDICATED_SERVER" error
    • Prevents client-only classes from loading on dedicated servers

Fixed

  • Dedicated Server Crash: Fixed crash when loading on Forge dedicated servers
    • Issue: ItemStackMixin was loading client-only I18n class on server
    • Solution: Properly separated client and server mixins
  • Logging Spam: Reduced console spam by moving verbose messages to debug level
    • Loot generation details now only shown with enableDebugLogging = true
    • Coating application details now only shown with enableDebugLogging = true