tetra_tool_changer-1.2.jar
Curse Maven Snippet
What's new
Release 1.2 — Tetra Tool Changer
This release expands tool-level support to the full set of Tetra tools and adds an interaction-level interface for mining.
New: Tool interaction interface
- Added
PickaxeToolLevelEvent— fired when a modular handheld item (pickaxe, axe, shovel, hoe, hammer) resolves its harvest tier. You can now modify the mining level to control whether a tool can break/drop a given block (e.g. make a pickaxe unable to mine obsidian under certain conditions). - Added
ToolLevelContext(thread-local player carrier) so methods that only receive anItemStackcan still access the current player viaevent.getPlayer().
Full tool coverage
- The workbench tool-level event (
ToolLevelEvent) now supports every Tetra tool: hammer, axe, pickaxe, shovel, hoe, pry, and cut — previously limited to hammer/axe/cut.
Under the hood
- New mixins:
TetraItemModularHandheldMixin(harvest tier),PlayerToolLevelContextMixin(player context),TetraBlockInteractionMixin(block interaction context). - All events remain KubeJS-compatible via the existing
NativeEventsinterface.
Thanks to Cloudy for the interaction-interface design and tool-level extension ideas.
This mod has no additional files