
Item Coating
A mod that allows applying potion effects to weapons, tools, and armor. Effects trigger on attack, block break, or when taking damage.
256
3
Список изменений
Added - Logging System
- Centralized Logger: New
ItemCoatingLoggerutility class using SLF4J- Replaces all
System.out.printlnandSystem.err.printlncalls - Provides
info(),warn(),error(), anddebug()methods - Debug messages only shown when enabled in config
- Replaces all
- Debug Configuration: New
debugconfig sectionenableDebugLogging- 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, andtoolCoatingsections 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
- Available in
- 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.CLIENTtoRegisterType.BOTH- Enables proper client-server synchronization
- Fixes dedicated server compatibility issues
- Mixin Configuration: Moved
ItemStackMixinfrom 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:
ItemStackMixinwas loading client-onlyI18nclass on server - Solution: Properly separated client and server mixins
- Issue:
- 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
- Loot generation details now only shown with
Файлы
itemcoating-forge-2.0.1.jar(186.47 KiB)
ОсновнойМетаданные
Канал релиза
Release
Номер версии
2.0.1
Загрузчики
Forge
Версии игры
1.20.1
Загрузок
49
Дата публикации
1 мес. назад