Skip to content

Commit

Permalink
Add example script
Browse files Browse the repository at this point in the history
  • Loading branch information
kuba6000 committed May 14, 2023
1 parent 1dd8c29 commit 2181d17
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions scripts/EditGTRecipe.zs.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// Example usage of RA2 builder and RecipeRemover in Minetweaker-Gregtech-5-Addon
// Wiki can be found here: https://github.com/GTNewHorizons/Minetweaker-Gregtech-5-Addon/wiki
// Available recipe maps: https://github.com/GTNewHorizons/Minetweaker-Gregtech-5-Addon/wiki#available-recipe-maps

// Replace sticky piston recipe with more difficult one (1x slime ball -> 2x slime balls)

// Remove current recipe (with 1x slime ball)
mods.gregtech.RecipeRemover.remove("gt.recipe.assembler", [<minecraft:piston>, <minecraft:slime_ball>], []);

// Add a new recipe (with 2x slime balls)
mods.gregtech.RA2
.builder()
.itemInputs([<minecraft:piston>, <minecraft:slime_ball> * 2])
.itemOutputs([<minecraft:sticky_piston>])
.noFluidInputs()
.noFluidOutputs()
.duration(100)
.eut(4)
.addTo("gt.recipe.assembler");

0 comments on commit 2181d17

Please sign in to comment.