Files
modpack-files/both/scripts/Backpack.zs
2025-03-24 19:54:03 +01:00

36 lines
1.7 KiB
Plaintext

val oreLeather = <ore:leather>;
val tannedLeather = <Backpack:tannedLeather>;
val backpackDef = <Backpack:backpack>.definition;
// Add colored recipes
// var metaItemBackPack = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] as int[];
// for metaID in metaItemBackPack {
// val backpackSColor = backpackDef.makeStack(metaID);
// val backpackMColor = backpackDef.makeStack(metaID + 100);
// val backpackLColor = backpackDef.makeStack(metaID + 200);
// recipes.addShaped(backpackMColor, [[tannedLeather, tannedLeather, tannedLeather], [tannedLeather, backpackSColor, tannedLeather], [tannedLeather, tannedLeather, tannedLeather]]);
// recipes.addShaped(backpackLColor, [[tannedLeather, tannedLeather, tannedLeather], [tannedLeather, backpackMColor, tannedLeather], [tannedLeather, tannedLeather, tannedLeather]]);
// }
// for metaID in 0 to 17 {
// val backpackSColor = backpackDef.makeStack(metaID);
// val backpackMColor = backpackDef.makeStack(metaID + 100);
// val backpackLColor = backpackDef.makeStack(metaID + 200);
// recipes.removeShaped(backpackSColor);
// recipes.removeShaped(backpackMColor);
// recipes.removeShaped(backpackLColor);
// recipes.addShaped(backpackMColor, [
// [tannedLeather, tannedLeather, tannedLeather],
// [tannedLeather, backpackSColor, tannedLeather],
// [tannedLeather, tannedLeather, tannedLeather]]);
// recipes.addShaped(backpackLColor, [
// [tannedLeather, tannedLeather, tannedLeather],
// [tannedLeather, backpackMColor, tannedLeather],
// [tannedLeather, tannedLeather, tannedLeather]]);
// }
for metaID in 1 to 17 {
val backpackSColor = backpackDef.makeStack(metaID);
recipes.removeShaped(backpackSColor);
}