generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix incorrect Constellation logic * fix incorrectly named files * update examples, fix errors in examples
- Loading branch information
1 parent
4f1ec82
commit 67fc28f
Showing
24 changed files
with
2,060 additions
and
2,003 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,38 @@ | ||
|
||
// Auto generated groovyscript example file | ||
// MODS_LOADED: advancedmortars | ||
|
||
println 'mod \'advancedmortars\' detected, running script' | ||
|
||
// Mortar | ||
|
||
// add(List<String> types, ItemStack output, int duration, List<IIngredient> inputs) | ||
mods.advancedmortars.Mortar.add( | ||
['stone'], | ||
item('minecraft:diamond') * 4, | ||
4, | ||
[ore('ingotGold')] | ||
) | ||
|
||
mods.advancedmortars.Mortar.add( | ||
['stone'], | ||
item('minecraft:tnt'), | ||
4, | ||
[ore('ingotGold')] | ||
) | ||
|
||
// add(List<String> types, ItemStack output, int duration, ItemStack secondaryOutput, float secondaryOutputChance, List<IIngredient> inputs) | ||
mods.advancedmortars.Mortar.add( | ||
['iron', 'wood'], | ||
item('minecraft:tnt') * 5, | ||
4, | ||
item('minecraft:tnt'), | ||
0.7, | ||
[ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), // max 8 | ||
ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), ore('ingotIron')] | ||
) | ||
|
||
mods.advancedmortars.Mortar.recipeBuilder() | ||
.type('stone') // EnumMortarType ('wood', 'stone', 'iron', 'diamond', 'gold', 'obsidian', 'emerald') | ||
.duration(2) // int | ||
.output(item('minecraft:grass')) // ItemStack | ||
.input(item('minecraft:dirt')) // IIngredient | ||
.register() | ||
|
||
mods.advancedmortars.Mortar.recipeBuilder() | ||
.type('emerald') | ||
.duration(4) | ||
.output(item('minecraft:wheat_seeds') * 16) | ||
.secondaryOutput(item('minecraft:melon_seeds')) // ItemStack | ||
.input(ore('cropWheat')) | ||
.register() | ||
|
||
mods.advancedmortars.Mortar.recipeBuilder() | ||
.type('obsidian') | ||
.duration(8) | ||
.output(item('minecraft:wheat_seeds') * 16) | ||
.secondaryOutput(item('minecraft:melon_seeds'), 0.5) // ItemStack, float | ||
.input(ore('cropWheat')) | ||
.register() | ||
// Mortar: | ||
// Uses any number of specific types of Mortars to convert multiple items into a single output with a possible chance | ||
// output after a number of player interactions. | ||
|
||
mods.advancedmortars.mortar.recipeBuilder() | ||
.type('stone') | ||
.duration(2) | ||
.output(item('minecraft:grass')) | ||
.input(item('minecraft:dirt')) | ||
.register() | ||
|
||
mods.advancedmortars.mortar.recipeBuilder() | ||
.type('emerald') | ||
.duration(4) | ||
.output(item('minecraft:wheat_seeds') * 16) | ||
.secondaryOutput(item('minecraft:melon_seeds')) | ||
.input(ore('cropWheat')) | ||
.register() | ||
|
||
mods.advancedmortars.mortar.recipeBuilder() | ||
.type('obsidian') | ||
.duration(8) | ||
.output(item('minecraft:wheat_seeds') * 16) | ||
.secondaryOutput(item('minecraft:melon_seeds'), 0.5) | ||
.input(ore('cropWheat')) | ||
.register() | ||
|
||
|
||
mods.advancedmortars.mortar.add(['iron', 'wood'], item('minecraft:tnt') * 5, 4, item('minecraft:tnt'), 0.7, [ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), ore('ingotIron'),ore('ingotIron'), ore('ingotIron'), ore('ingotIron'), ore('ingotIron')]) | ||
mods.advancedmortars.mortar.add(['stone'], item('minecraft:tnt'), 4, [ore('ingotGold')]) | ||
mods.advancedmortars.mortar.add(['stone'], item('minecraft:diamond') * 4, 4, [ore('ingotGold')]) | ||
|
Oops, something went wrong.