tinkerswithenchants-1.0.1.jar
Curse Maven Snippet
What's new
**Javelin Enchants**
- Javelin now accepts TRIDENT category enchantments (Loyalty, Channeling, Impaling) (All vanilla except Riptide, modded enchants should also work)
- Detection uses `forge:tools/tridents` tag with fallback for ranged non-launcher items
- Loyalty: sets `ID_LOYALTY` on ThrownTool entity, internally capped at level 10. Stacks with TC's Returning modifier (higher level wins)
- Channeling: summons lightning on mob hit during thunderstorm. Also works on lightning rod hits (1.17+ behavior)
- Impaling: extra damage to aquatic mobs via `getDamageBonus()`
- Damage enchants (Sharpness, Fire Aspect, Knockback, Smite, BoA) all apply on thrown javelin hits
**Bug Fixes**
- Fixed Curse of Binding appearing on weapons via Apotheosis/other treasure shelf — removed blanket `isCurse()` pass from all three mixins, curses now go through proper category checks
- Fixed double-Unbreaking on armor — removed `damageItem` override from ArmorItemMixin
- Fixed apotheosis:temptation (hoe enchant) leaking onto pickaxes — DIGGER probing is now ToolAction-specific
- Fixed shield enchants (apotheosis:reflective, apotheosis:shield_bash) leaking onto all items — now uses `tconstruct:modifiable/shields` tag
- Fixed staffs and fishing rods incorrectly getting TRIDENT category — excluded via `ranged/launcher` tag and `fishing_rods` tag
- Fixed ResourceLocation deprecation warnings — all `new ResourceLocation()` replaced with `fromNamespaceAndPath()`/`parse()`
**Enchantability**
- Enchantability is now computed automatically from tool durability instead of a flat config value
- Uses log₂ curve mapping to range 5–30 based on base material quality
- Tool type durability multipliers are read from NBT (`tic_multipliers`) to normalize across tool types — same materials produce similar enchantability regardless of tool type
- Fallback: estimates multiplier from category for addon tools missing NBT multipliers
- Gold head materials receive minimum 22 enchantability (matching vanilla gold)
- Unbreakable items receive 30 (maximum)
- Removed `enchantability` from server config (no longer needed)
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

