MTUtils: Advanced MineTweaker Scripting for Minecraft

Unlocking Customization with MTUtils: A MineTweaker Plugin for Minecraft 1.7.10 Modpack creation is an art form. It demands precise control over every block, item, and recipe to craft a cohesive experience. For those still exploring the rich ecosystem of Minecraft 1.7.10, MTUtils stands out as a ...

Download MTUtils for Minecraft 1.7.10

Original name: MTUtils

Minecraft: 1.7.10

Loaders: Forge

FileVersionLoaderSize
MTUtils-1.2.2.jar1.7.10Forge92 КБDownload
MTUtils v1.3.0.jar1.7.10Forge91 КБDownload
MTUtils v1.3.1.jar1.7.10Forge95 КБDownload
MTUtils v1.3.2.jar1.7.10Forge95 КБDownload
MTUtils v1.3.3.jar1.7.10Forge95 КБDownload
MTUtils-1.4.1.jar1.7.10Forge100 КБDownload
MTUtils-1.4.2.jar1.7.10Forge100 КБDownload
MTUtils-1.6.jar1.7.10Forge126 КБDownload

Unlocking Customization with MTUtils: A MineTweaker Plugin for Minecraft 1.7.10

Modpack creation is an art form. It demands precise control over every block, item, and recipe to craft a cohesive experience. For those still exploring the rich ecosystem of Minecraft 1.7.10, MTUtils stands out as a powerful MineTweaker plugin that hands the reins directly to the creator. It bridges gaps between mods, tweaks vanilla behavior, and opens up scripting possibilities that go far beyond standard configuration files.

What Exactly Is MTUtils?

MTUtils is a companion mod for MineTweaker, designed to extend its scripting capabilities. While MineTweaker already allows you to add or remove crafting recipes, MTUtils dives deeper into the properties of items and blocks themselves. You can alter harvest levels, set custom block drops based on the tool used, convert data types on the fly, and even integrate tightly with GregTech machines. All scripts are placed in the MineTweaker script folder, making it a seamless addition to any existing modpack development workflow.

Key Features for Modpack Creators

Imagine you want a wooden log to drop planks only when broken with an axe, but drop sticks when punched by hand. Or perhaps you need to make a specific block unbreakable to serve as a world border. MTUtils makes these scenarios trivial. It also provides utility functions that convert strings to integers, floats, or formatted text—essential when you need to pass dynamic values between different mod handlers.

If you're building a complex modpack and want to streamline the installation process for your players, you can easily install MTUtils via the foxygame.net launcher — a convenient, flexible, and modern Minecraft launcher where you can download mods right from the menu. This approach keeps your modpack organized and reduces the friction of manual file management.

Commands and Functions at Your Fingertips

After importing the mod with import mods.MTUtils;, a wealth of functions becomes available. Here is a breakdown of the most impactful ones:

Item Manipulation

  • MTUtils.setItemMaxDamage(itemstack, damage) – Redefine how durable an item is.
  • MTUtils.getItemMaxDamage(itemstack) – Retrieve the current maximum damage value as an integer.
  • MTUtils.getItemDamage(itemstack) – Get the current damage of an item.

Block Property Overrides

  • MTUtils.setHarvestLevel(itemstack, String tooltip, int harvestLevel) – Change which tool and tier is required to break a block.
  • MTUtils.setBlockUnbreakable(itemstack) – Make any block completely indestructible.
  • MTUtils.setHardness(itemstack, float hardness) – Adjust how long it takes to mine a block.
  • MTUtils.setLightLevel(itemstack, float lightLevel) – Modify the light emission of a block.
  • MTUtils.setLightOpacity(itemstack, int lightOpacity) – Control how much light passes through.
  • MTUtils.setResistance(itemstack, float resistance) – Set explosion resistance.
  • MTUtils.setTextureName(itemstack, String texturename) – Dynamically change a block's texture.

Data Conversion Utilities

  • MTUtils.getIntFromString(string) – Parse a string into an integer.
  • MTUtils.getFloatFromString(string) – Convert a string to a float.
  • MTUtils.getStringFromFormattedText(IFormattedText text) – Extract plain text from formatted text objects.
  • MTUtils.getCrossMatch(IOreDictEntry ... oreDictEntries) – Find items that match all given Ore Dictionary entries.
  • MTUtils.getIngredientFromString(String in) – Turn a string into a usable ingredient for recipes.

Advanced Drop System

  • MTUtils.clearDrops() – Wipes the custom drop table to start fresh.
  • MTUtils.setBlockDrops(@Nullable IItemStack harvester, IItemStack block, IItemStack drops[], float quantiDrop[], IItemStack falseDrops[]) – Define exactly what drops when a specific block is broken, optionally with a required tool in hand. If the harvester is null, the drop applies regardless of the tool. The falseDrops array allows you to specify items that drop when the condition is not met.

GregTech Integration: A Recipe for Complexity

For modpacks that include GregTech, MTUtils offers a dedicated sub-module: import mods.MTUtilsGT;. This integration lets you add custom recipes to GregTech machines and remap fluids across all recipes. The command /MTUtils GTkey "Canner" retrieves the internal key for a machine, which is needed to target it. You can then call MTUtilsGT.addCustomRecipe(...) to insert your own processing chains, complete with fluid inputs and outputs.

Fluid mapping is particularly powerful. Using MTUtilsGT.addFluidInput(...), you can replace one fluid with another in every existing GregTech recipe. For example, if you want to use MineChem fluids instead of standard GregTech molten metals, you can map them in bulk. The second call variant accepts an array of pairs, allowing you to remap dozens of fluids in a single script execution. This is a game-changer for cross-mod compatibility, especially on servers where both mods coexist.

Underground Biomes Constructs API

MTUtils also touches world generation through its Underground Biomes Constructs API. By defining entries in a JSON config file, you can assign custom textures and name IDs to blocks, effectively re-skinning ores or stone types. The format is straightforward:

[
  {
    "name":"exampleblock",
    "nameid":"minecraft:iron_ore",
    "texturepath":"minecraft:iron_ore"
  }
]

This feature allows modpack authors to visually unify disparate mods or create entirely new aesthetic themes without needing a separate resource pack.

Practical Use Cases

Consider a skyblock pack where you want compressed cobblestone to be unbreakable until the player crafts a special hammer. With MTUtils, you can set the block to unbreakable and then, via a script trigger, change its harvest level when the hammer is detected. Or in a tech-focused pack, you might use the fluid mapping to make all GregTech recipes accept a custom coolant instead of water, instantly altering the entire progression balance.

The drop system shines in adventure maps. You could make stone drop nothing when mined with a wooden pickaxe, but yield rare gems when using a diamond one. The falseDrops parameter even lets you punish incorrect tool usage by dropping a useless item like gravel.

Conclusion

MTUtils is a must-have tool for any serious Minecraft 1.7.10 modpack developer. It extends MineTweaker’s scripting into the realm of block properties, dynamic drops, and deep GregTech recipe manipulation. The ability to convert data types and remap fluids on a massive scale saves hours of manual tweaking. While the mod targets an older version, its utility remains unmatched for those who still cherish the 1.7.10 golden age of modding. By integrating MTUtils into your workflow, you unlock a level of customization that turns a collection of mods into a truly handcrafted experience.