Created
January 14, 2018 12:41
-
-
Save kindlich/78a518f20936091661830b1c2f2d3099 to your computer and use it in GitHub Desktop.
ModTweaker #586
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import crafttweaker.item.IIngredient; | |
import crafttweaker.liquid.ILiquidStack; | |
import crafttweaker.item.IItemStack; | |
print("TRYING TO REMOVE LIQUIDS FROM MELTER"); | |
var metalItems as IIngredient[string][string] = { | |
iron: { | |
block: <minecraft:iron_block>, | |
dust: <immersiveengineering:metal:18>, | |
gear: <materialpart:iron:gear>, | |
ingot: <minecraft:iron_ingot>, | |
liquid: <liquid:iron>, | |
nugget: <minecraft:iron_nugget>, | |
plate: <immersiveengineering:metal:39>, | |
rod: <immersiveengineering:material:1> | |
} | |
}; | |
for metalName, metal in metalItems { | |
var metalLiquid as ILiquidStack = metal.liquid as bool ? metal.liquid.liquids[0] : null; | |
if (metalLiquid as bool) { | |
for metalPartName, metalPart in metal { | |
if (metalPartName != "liquid" & metalPart as bool) { | |
var metalPart as IItemStack = metalPart.items[0]; | |
mods.tconstruct.Melting.removeRecipe(metalLiquid * 1, metalPart); | |
} | |
} | |
} | |
} | |
//for metalName, metal in metalItems { | |
// if (metal has "liquid" & metal.liquid as bool) { | |
// var liquid as ILiquidStack = metal.liquid; | |
// for metalPartName, metalPart in metal { | |
// if (metalPartName != "liquid" & metalPart as bool) { | |
// for item in metalPart.items { | |
// mods.tconstruct.Melting.removeRecipe(liquid * 1, item); | |
// } | |
// | |
// } | |
// } | |
// } | |
//} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment