Last active
October 26, 2023 20:00
-
-
Save Lgmrszd/054d384fcdf56e9e4bfd2e3e2697b210 to your computer and use it in GitHub Desktop.
example script
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 mods.artisanworktables.builder.RecipeBuilder; | |
// List of materials used | |
val materials = ["Iron", "Steel", "Copper", "Bronze", "Tin"] as string[]; | |
val stick = <minecraft:stick>; | |
for mat in materials { | |
// define recipe ingredients needed here | |
val ing = oreDict.get("ingot" + mat); | |
RecipeBuilder.get("engineer") | |
.setShaped([ | |
[stick, stick, stick], | |
[ing, ing, stick]]) | |
.addTool(<ore:artisansHammer>, 10) | |
.addOutput(itemUtils.getItem("artisanworktables:artisans_handsaw_"+mat.toLowerCase())) | |
.create(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment