time_enchants-0.0.2
Curse Maven Snippet
What's new
[0.0.2] - 2026-11-29
Added
- Project rebuilt from scratch on NeoForge
21.1.268/ Minecraft1.21.1using ModDevGradle (the previous build system was lost with the original sources). - Expanded configuration file (
config/time_enchants-common.toml):[loot_and_trades]: configurable loot book chance, librarian/wanderer trade chances, and trade costs (emeralds + diamonds).[balance]: configurable Click TP rate limit, magnet/XP-magnet radii, and per-level percentages for Lifesteal, Reflect Damage, XP Boost, Prosperity and Super Loot.[level_caps]: optional per-enchantment maximum effective level (-1= no cap).
- Soulbound persistence: items kept on death are now stored in world
SavedDataand survive server restarts (previously lost on shutdown). - Missing
effectsfield added to all enchantment JSON definitions (required by the 1.21.1 enchantment codec).
Changed
- Villager trades are now rare: enchantments were removed from the vanilla
minecraft:tradeabletag so librarians no longer sell them through the regular trade pool. A Master Librarian (level 5) now has only a configurable chance (default 5%) to offer one Time Enchantments book, and the Wandering Trader chance per enchantment is even lower (default 2%, max 3 books). Book level is random within the enchantment's max level. - Auto Feed now consumes the most nutritious food in the inventory instead of the first edible item found, and the per-level intervals were fixed (see bug fixes).
- Mining AOE / Vein Miner now use the real loot table for connected
blocks (
Block.getDrops), so Silk Touch, Fortune and block-specific drops are respected. Prosperity and Auto Smelt are applied on top. - Reflect Damage and other combat formulas now read their percentages from the config instead of hardcoded values.
- Code reorganized: the monolithic
ModEventsclass was split into focused handlers (TickHandler,CombatHandler,MiningHandler,InteractionHandler,TradeHandler) and a client-only flight handler.
Fixed
- Auto Feed interval bug: the level-based
switchnever assigned the interval, so every level used the same delay. Levels now use 200/100/40 ticks for levels 1/2/3 respectively. - Soulbound data loss: previously stored in a static in-memory map and
lost on server restart; now persisted via
SavedData. Math.random()replaced with properRandomSourcein trade generation.- Unnecessary
ThreadLocalrecursion guard in mining removed (all mining logic runs on the server thread). - Teleport cooldown now configurable instead of hardcoded (100 uses / 5 minutes by default).
- Client flight state resets correctly on spectator mode, creative flight, and player clone events.
Notes
- Enchantment count unchanged: 23 enchantments.
- Supported languages:
en_us,es_es,fr_fr,de_de,pt_br.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include
This mod has no related projects