File Details
dynamicenchants-0.1.2-neoforge-1.21.10.jar
- B
- Dec 15, 2025
- 110.00 KB
- 35
- 1.21.10
- NeoForge
File Name
dynamicenchants-0.1.2-neoforge-1.21.10.jar
Supported Versions
- 1.21.10
Curse Maven Snippet
Tickorino toggle rework (per-item)
- Implemented per-item toggle for Tickorino using ItemStack data components (
DataComponents.CUSTOM_DATA). - Added helpers in
TickarinoEnchant:isActive(ItemStack),toggleActive(ItemStack). - Each enchanted item keeps its own ON/OFF state (persisted on the item), so toggling one tool no longer toggles all tools.
Input changes (keybind replaces sneak-right-click)
- Removed sneak right-click toggle behavior for Tickorino.
- Added a configurable keybind to toggle the held item’s Tickorino state:
- Name: Toggle Tickorino
- Default key:
.(period) - Works even when GUIs are open
- Appears under a new Controls category: Dynamic Enchants
Networking
- Added
TickorinoTogglePacket(serverbound) to toggle the held item’s Tickorino flag and displayMode: ON/OFFto the player. - Registered the packet in
Messages.onRegisterPayloadHandler.
Runtime gating and behavior
ModEvents.onPlayerInventoryTicknow runs Tickorino only when:- The player’s main-hand item has the Tickorino enchant, and
TickarinoEnchant.isActive(mainHand)istrue.
- Removed the old per-player toggle logic.
Kelp support (Hoe-only)
- Added special handling for kelp under Hoe logic:
- For
Blocks.KELP_PLANT, logic climbs to the kelp head (Blocks.KELP) and random-ticks there (preferred growth trigger). - For
Blocks.KELP, random-ticks the block directly.
- For
UI/Localization
- Added a dedicated Controls category via
KeyMapping.Category.register(ResourceLocation(modid, "dynamic_enchants")). - New lang key:
key.category.dynamicenchants.dynamic_enchants→Dynamic Enchants.
Logging
- Disabled spammy logger output that was flooding the console (previous debug/info calls tied to Tickorino processing).
Files updated/added
Updated
enchantment/custom/TickarinoEnchant.java— per-item toggle helpers; kelp handling; removed per-player toggle; muted debug logging.util/ModEvents.java— removed sneak-right-click toggling; gated Tickorino by per-item active state.network/Messages.java— registered the new packet.DynamicEnchantsClient.java— keybind registration (default.), new Controls category, client tick handler to send toggle packet.assets/dynamicenchants/lang/en_us.json— added Controls category label.
Added
network/TickorinoTogglePacket.java— serverbound packet to toggle per-item state.
Result
- Toggle is now item-specific and persistent.
- Only items with Tickorino respond to the toggle.
- Keybind replaces sneak right-click and is configurable.
- Kelp growth works with a Hoe when Tickorino is ON.
- Console remains clean of unnecessary spam from Tickorino debug logs.

