
MTUtils
MTUtils is an extension for MineTweaker designed for Minecraft version 1.7.10. This tool opens up new possibilities for mod and pack creators to fine-tune game content.
Main Features
With this addon, you gain access to modifying various characteristics of items and blocks. The mod allows converting values between different data types and setting special conditions for loot drops.
Working with Items
MTUtils.setItemMaxDamage(itemstack, damage);
MTUtils.getItemMaxDamage(itemstack); (Returns int)
MTUtils.getItemDamage(itemstack); (Returns int)
Block Configuration
MTUtils.setHarvestLevel(itemstack, String tooltip, int harvestLevel);
MTUtils.setBlockUnbreakable(itemstack);
MTUtils.setHardness(itemstack, float hardness);
MTUtils.setLightLevel(itemstack, float lightLevel);
MTUtils.setLightOpacity(itemstack, int lightOpacity);
MTUtils.setResistance(itemstack, float resistance);
MTUtils.setTextureName(itemstack, String texturename);
MTUtils.getHarvestLevel(itemstack); (Returns int)
MTUtils.getHarvestTool(itemstack); (Returns String)
MTUtils.getTextureName(itemstack, int side); (Returns String)
Conversion Utilities
MTUtils.getIntFromString(string); (Returns int)
MTUtils.getFloatFromString(string); (Returns float)
MTUtils.getStringFromInt(int); (Returns String)
MTUtils.getStringFromFloat(float); (Returns String)
MTUtils.getStringFromFormattedText(IFormattedText text); (Returns String)
MTUtils.getStringFromFormattedString(IMCFormattedString text); (Returns String)
MTUtils.getCrossMatch(IOreDictEntry ... oreDictEntries); (Returns IItemStack[])
MTUtils.getIngredientFromString(String in); (Returns IIngredient)
MTUtils.getItemStackFromString(String in); (Returns IItemStack)
MTUtils.getIOreDictEntryFromString(String in); (Returns IOreDictEntry)
MTUtils.getIFormatedTextFromString(String in); (Returns IFormattedText)
MTUtils.getIMCFormattedTextFromString(String in); (Returns IMCFormattedString)
Loot Drop System
MTUtils.clearDrops(); // Recreates HashMap drops
MTUtils.setBlockDrops(@Nullable IItemStack harvester, IItemStack block, IItemStack drops[], float quantiDrop[], IItemStack falseDrops[]);
GregTech Integration
Thanks to the contribution from @zetti68, the mod received extended GregTech support.
Commands for GregTech
Use the /MTUtils
command (or aliases /mtutils
, /mtu
) to get GT machine keys. For example: /MTUtils GTkey "Canner"
. To view all available keys, use /MTUtils GTKeys [1...]
.
Adding Recipes
MTUtilsGT.addCustomRecipe("gt.recipe.canner", false, 128, 128, [10000], [<minecraft:cobblestone>], <liquid:soda>500, <liquid:water>500, [<minecraft:diamond>]);
MTUtilsGT.addCustomRecipe("gt.recipe.canner", false, 128, 128, [10000], [<minecraft:cobblestone>], [<liquid:soda>500], [<liquid:water>500], [<minecraft:diamond>]);
Fluid Replacement
MTUtilsGT.addFluidInput(<liquid:soda>,<liquid:mineralsoda>);
MTUtilsGT.addFluidInput([
[<liquid:soda>,<liquid:mineralsoda>]
]);
Underground Biomes Constructs API Support
The configuration file allows setting up blocks for integration with Underground Biomes:
[
{
"name":"exampleblock",
"nameid":"minecraft:iron_ore",
"texturepath":"minecraft:iron_ore"
}
]