promotional bannermobile promotional banner

Dynamic Enchants

This Mod adds different types of enchants that could be helpful, examples: Flight, Light Aura, Tool Repair, Armor Repair, Weapon ...

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

NeoForge

implementation "curse.maven:dynamic-enchants-1392025:7336800"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

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 display Mode: ON/OFF to the player.
  • Registered the packet in Messages.onRegisterPayloadHandler.

Runtime gating and behavior

  • ModEvents.onPlayerInventoryTick now runs Tickorino only when:
    • The player’s main-hand item has the Tickorino enchant, and
    • TickarinoEnchant.isActive(mainHand) is true.
  • 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.

UI/Localization

  • Added a dedicated Controls category via KeyMapping.Category.register(ResourceLocation(modid, "dynamic_enchants")).
  • New lang key: key.category.dynamicenchants.dynamic_enchantsDynamic 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.