This commit is contained in:
sainagh
2026-07-25 16:18:14 -05:00
parent 3533ad27ec
commit 5463fe8373
3932 changed files with 5500 additions and 211408 deletions
-35
View File
@@ -1,35 +0,0 @@
#loader crafttweaker contenttweaker
#reloadable
#priority 100
import crafttweaker.item.IItemStack;
import crafttweaker.item.IIngredient;
function addPuzzleShapeless(name as string, output as IItemStack, ingredients as IIngredient[]) {
val stage_name = name + "_stage";
recipes.addHiddenShapeless(name, output, ingredients,
function(out, ins, cInfo) { return out; },
function(out, cInfo, player){
if !isNull(player) && !player.hasGameStage(stage_name) {
player.addGameStage(stage_name);
player.sendChat("Unlocked stage \"" + stage_name + "\"");
}
}
);
mods.recipestages.Recipes.addShapeless(name + "_staged", stage_name, output, ingredients);
}
function addPuzzleShaped(name as string, output as IItemStack, ingredients as IIngredient[][]) {
val stage_name = name + "_stage";
recipes.addHiddenShaped(name, output, ingredients,
function(out, ins, cInfo) { return out; },
function(out, cInfo, player){
if !isNull(player) && !player.hasGameStage(stage_name) {
player.addGameStage(stage_name);
player.sendChat("Unlocked stage \"" + stage_name + "\"");
}
}
);
mods.recipestages.Recipes.addShaped(name + "_staged", stage_name, output, ingredients);
}