Download Zen Toolforge — Minecraft Mods — MetaMods

Zen Toolforge

Active

Downloads

2

Last update

6 years ago
Client
Libraries
Addons

Zen Toolforge

Utility Tools for Working with Tinker's Construct via CraftTweaker

The Zen Toolforge modification provides a set of useful functions that extend the capabilities of interacting with the Tinker's Construct mod (and its Construct's Armory addon) through the CraftTweaker scripting system. It's important to note that this mod by itself doesn't make any changes to the game - it only activates when corresponding CraftTweaker scripts are used.

For installation, you'll need to previously install CraftTweaker, ModTweaker, and Tinker's Construct along with all their dependencies. Support for Construct's Armory is automatically provided if this mod is present in the pack, but its presence is not a mandatory requirement.

Main Functionality

The mod offers two key functions and three auxiliary ones. The main capabilities allow creating tools based on tool definition and material lists, as well as disassembling finished tools into component parts (excluding modifiers). It's these functions that gave the modification its name - "Tool Forge".

The developer created this mod to solve specific tasks in their own scripts: it allows generating mobs armed with random Tinker's Construct tools and dressed in Construct's Armory armor, as well as configuring the drop of individual components instead of complete items when defeating them.

Additional Capabilities

Among the additional functions, you can highlight obtaining ITICMaterial by string identifier (dynamically, unlike bracket handlers), as well as checking for the presence of specific traits or modifiers in items.

Important Note

There is one limitation: if you use the mod's functions in scripts that execute before tool materials are loaded, created tools may appear without traits. As a temporary solution, it's recommended to use the updateTag() method from CraftTweaker to manually apply the trait array through NBT. Problematic tools are automatically fixed during the first modification at the Tool Station or Tool Forge.

Function Syntax

All current functions are located in the "mods.zentoolforge.Toolforge" module, which must be imported before use:

  • buildTool(IItemDefinition, ITICMaterial...) : IItemStack
  • deconstructTool(IItemStack) : IItemStack[]
  • getMaterialFromID(string) : ITICMaterial
  • hasTrait(IItemStack, string) : bool
  • hasModifier(IItemStack, string) : bool

The mod can be freely used in modpacks.

Project members
nihiltres

nihiltres

Created: 9 Apr 2019

ID: 36600