Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import crafttweaker.item.IIngredient;
- import crafttweaker.item.IItemStack;
- function funcCrushing(input as IIngredient, output as IIngredient, energy as long, output2 as IIngredient, chance as float){
- var longchance = chance *100;
- var stackOutputList = output.items as IItemStack[];
- var stackInputList = input.items as IItemStack[];
- var stackOutput2List = output2.items as IItemStack[];
- var stackOutput = IItemStack;
- var stackInput = IItemStack;
- var stackOutput2 = IItemStack;
- for item in stackOutputList{
- stackOutput = item;
- break;
- }
- for item in stackInputList{
- stackInput = item;
- break;
- }
- for item in stackOutput2List{
- stackOutput2 = item;
- break;
- }
- mods.thermalexpansion.Pulverizer.addRecipe(stackOutput, stackInput, energy, stackOutput2, longchance);
- }
- funcCrushing(<minecraft:stone_slab:3>, <minecraft:stone_slab:1>, 1500, <minecraft:wool:4>, 0.2);
Advertisement
Add Comment
Please, Sign In to add comment