generated from CleanroomMC/TemplateDevEnv
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
3,693 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
|
||
// 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() |
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 |
---|---|---|
@@ -0,0 +1,93 @@ | ||
|
||
if (!isLoaded('appliedenergistics2')) return | ||
println 'mod \'appliedenergistics2\' detected, running script' | ||
|
||
// Can be access via either `appliedenergistics2` or `ae2` | ||
|
||
// Bracket Handlers | ||
|
||
// Get the P2P Tunnel type from the enum. Case insensitive. | ||
tunnel('me') | ||
tunnel('ic2_power') | ||
tunnel('fe_power') | ||
tunnel('gteu_power') | ||
tunnel('redstone') | ||
tunnel('fluid') | ||
tunnel('item') | ||
tunnel('light') | ||
tunnel('bundled_redstone') | ||
tunnel('computer_message') | ||
|
||
|
||
// Inscriber: | ||
// Converts an item into another item, requiring either one or two additional items as either catalysts or ingredients. | ||
mods.appliedenergistics2.inscriber.recipeBuilder() | ||
.input(ore('blockGlass')) | ||
.output(item('minecraft:diamond')) | ||
.top(item('minecraft:diamond')) // Optional, ItemStack. Either top or bottom must be defined. | ||
.bottom(item('minecraft:diamond')) // Optional, ItemStack. Either top or bottom must be defined. | ||
.inscribe() // Disable consumption of the top/bottom items. | ||
.register() | ||
|
||
mods.appliedenergistics2.inscriber.recipeBuilder() | ||
.input(item('minecraft:gold_ingot')) | ||
.output(item('minecraft:diamond')) | ||
.top(item('minecraft:diamond')) | ||
.register() | ||
|
||
mods.appliedenergistics2.inscriber.removeByOutput(item('appliedenergistics2:material:59')) | ||
//mods.appliedenergistics2.inscriber.removeAll() | ||
|
||
|
||
// Grinder: | ||
// Converts an item into one item, with up to two additional items as chance byproducts after a number of turns. | ||
mods.appliedenergistics2.grinder.recipeBuilder() | ||
.input(item('minecraft:clay')) | ||
.output(item('minecraft:diamond'), item('minecraft:gold_ingot'), item('minecraft:diamond')) // Up to 3 outputs can be defined. The first is 100%, the second is chance1, the third is chance2. | ||
.turns(1) | ||
.chance1(0.5) // Optional float, defaults to 1.0f. | ||
.chance2(0.3) // Optional float, defaults to 1.0f. | ||
.register() | ||
|
||
mods.appliedenergistics2.grinder.recipeBuilder() | ||
.input(item('minecraft:stone')) | ||
.output(item('minecraft:clay') * 4) | ||
.turns(10) | ||
.register() | ||
|
||
mods.appliedenergistics2.grinder.removeByInput(item('minecraft:gold_ingot')) | ||
mods.appliedenergistics2.grinder.removeByOutput(item('minecraft:quartz')) | ||
//mods.appliedenergistics2.grinder.removeAll() | ||
|
||
|
||
// Spatial Storage Allowed Tile Entities: | ||
// Either the class itself or its String name to add or remove from the Tile Entities allowed in Spatial Storage. | ||
mods.appliedenergistics2.spatial.add('net.minecraft.tileentity.TileEntityStructure') // Adds the Structure Block to the allowed Tile Entities | ||
|
||
mods.appliedenergistics2.spatial.remove('net.minecraft.tileentity.TileEntityChest') // Removes the vanilla Chest from the allowed Tile Entities | ||
//mods.appliedenergistics2.spatial.removeAll() | ||
|
||
|
||
// Cannon Ammo: (alias: Cannon) | ||
// Item and weight, where weight is a factor in how much damage is dealt. | ||
mods.appliedenergistics2.cannonammo.add(item('minecraft:clay'), 10000) | ||
|
||
mods.appliedenergistics2.cannonammo.remove(item('minecraft:gold_nugget')) | ||
//mods.appliedenergistics2.cannonammo.removeAll() | ||
|
||
|
||
// P2P Attunement: | ||
// Item and tunnel type, modid and tunnel type, or capability and tunnel type to add to allowed items to convert P2P tunnels. | ||
mods.appliedenergistics2.attunement.removeByTunnel(tunnel('item')) // Remove all ways to create the given tunnel | ||
|
||
mods.appliedenergistics2.attunement.add(item('minecraft:clay'), tunnel('item')) // item + tunnel | ||
mods.appliedenergistics2.attunement.remove(item('minecraft:lever'), tunnel('redstone')) // item + tunnel | ||
|
||
//mods.appliedenergistics2.attunement.remove('thermaldynamics', tunnel('fe_power')) // modid + tunnel | ||
//mods.appliedenergistics2.attunement.add('thermaldynamics', tunnel('redstone')) // modid + tunnel | ||
|
||
// Must be imported via `appeng.capabilities.Capabilities` | ||
//mods.appliedenergistics2.attunement.remove(Capabilities.FORGE_ENERGY, tunnel('fe_power')) // capability + tunnel | ||
//mods.appliedenergistics2.attunement.add(Capabilities.FORGE_ENERGY, tunnel('item')) // capability + tunnel | ||
|
||
//mods.appliedenergistics2.attunement.removeAll() |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
|
||
if (!isLoaded('compactmachines3')) return | ||
println 'mod \'compactmachines3\' detected, running script' | ||
|
||
// Miniaturization: | ||
// Consumes a 3d structure in-world based on keys when an item is thrown into the field. | ||
mods.compactmachines.miniaturization.recipeBuilder() | ||
.name('diamond_rectangle') // Optional, String | ||
.input(item('minecraft:clay')) | ||
.output(item('minecraft:clay')) | ||
.symmetrical() // Indicates that the recipe does not have to test all 4 rotations to determine if the multiblock is valid | ||
.ticks(10) // Alias: duration, default 100 | ||
.shape([['www', 'www']]) // Shape is a List<List<String>> | ||
.key('w', blockstate('minecraft:diamond_block')) | ||
// character, blockstate, nbt, metadata-sensitive (default true), display item | ||
//.key('w', blockstate('minecraft:diamond_block'), null, true, item('minecraft:diamond') * 7) | ||
.register() | ||
|
||
mods.compactmachines.miniaturization.recipeBuilder() | ||
.name('groovy_rocket') // Optional, String | ||
.input(item('minecraft:diamond')) | ||
.output(item('minecraft:clay') * 64) | ||
.symmetrical() | ||
.ticks(5400) | ||
// both ` ` and `_` are reserved for empty space, and cannot be used as keys | ||
.key('a', blockstate('minecraft:stained_glass:0')) | ||
.key('b', blockstate('minecraft:stained_glass:1')) | ||
.key('c', blockstate('minecraft:stained_glass:2')) | ||
.key('d', blockstate('minecraft:stained_glass:3')) | ||
.key('e', blockstate('minecraft:diamond_block')) | ||
.key('f', blockstate('minecraft:stained_glass:5')) | ||
.key('g', blockstate('minecraft:stained_glass:6')) // Note: More than 6 keys results in incorrect displays in JEI | ||
.layer(" ", " ", " a ", " aaa ", " a ", " ", " ") // layer adds String... to the shape structure | ||
.layer(" ", " b ", " aaa ", " baaab ", " aaa ", " b ", " ") // adds layers in descending Y order | ||
.layer(" ", " c ", " cac ", " caeac ", " cac ", " c ", " ") | ||
.layer(" ", " a ", " aaa ", " aaeaa ", " aaa ", " a ", " ") | ||
.layer(" ", " a ", " aaa ", " aaeaa ", " aaa ", " a ", " ") | ||
.layer(" ", " a ", " aaa ", " aaeaa ", " aaa ", " a ", " ") | ||
.layer(" ", " g ", " cac ", " caeac ", " cac ", " f ", " ") | ||
.layer(" ", " a ", " aaa ", " aaeaa ", " aaa ", " a ", " ") | ||
.layer(" ", " a ", " aaa ", " aaeaa ", " aaa ", " a ", " ") | ||
.layer(" ", " a ", " aaa ", " aaeaa ", " aaa ", " a ", " ") | ||
.layer(" ", " c ", " cac ", " caeac ", " cac ", " c ", " ") | ||
.layer(" ", " a ", " aaa ", " aaaaa ", " aaa ", " a ", " ") | ||
.layer(" a ", " ccc ", " cdddc ", "acdddca", " cdddc ", " ccc ", " a ") | ||
.register() | ||
|
||
mods.compactmachines.miniaturization.removeByInput(item('minecraft:ender_pearl')) | ||
mods.compactmachines.miniaturization.removeByCatalyst(item('minecraft:redstone')) | ||
mods.compactmachines.miniaturization.removeByOutput(item('compactmachines3:machine:3')) | ||
//mods.compactmachines.miniaturization.removeAll() |
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
|
||
if (!isLoaded('inspirations')) return | ||
println 'mod \'inspirations\' detected, running script' | ||
|
||
// Cauldron: | ||
// Converts up to 1 itemstack and up to 1 fluid into up to 1 itemstack or up to 1 fluid, with a boiling boolean and variable amount of fluid consumed or produced. | ||
// Cauldrons have a cap of either 3 or 4 levels, depending on the config. | ||
mods.inspirations.cauldron.recipeBuilder() | ||
.standard() // Optional, one type is required, it can either be done in a normal recipeBuilder or preset via a recipeBuilder variant. | ||
.input(item('minecraft:gold_ingot')) | ||
.fluidInput(fluid('lava')) | ||
.output(item('minecraft:clay')) | ||
.boiling() | ||
.sound(sound('block.anvil.destroy')) | ||
.levels(3) | ||
.register() | ||
|
||
mods.inspirations.cauldron.recipeBuilderStandard() // Requires 1 input, 1 output, 1 fluid input, 0 < levels < 3/4, and a sound | ||
.input(item('minecraft:diamond')) | ||
.output(item('minecraft:clay')) | ||
.fluidInput(fluid('lava')) | ||
.levels(3) | ||
.sound(sound('block.anvil.destroy')) | ||
.register() | ||
|
||
mods.inspirations.cauldron.recipeBuilderTransform() // Requires 1 input, 1 fluid input, 1 fluid output, 0 < levels < 3/4 | ||
.input(item('minecraft:stone:3')) | ||
.fluidInput(fluid('water')) | ||
.fluidOutput(fluid('milk')) | ||
.levels(2) | ||
.register() | ||
|
||
mods.inspirations.cauldron.recipeBuilderMix() // Requires 1 output and 2 fluid inputs | ||
.output(item('minecraft:clay')) | ||
.fluidInput(fluid('milk'), fluid('lava')) | ||
.register() | ||
|
||
mods.inspirations.cauldron.recipeBuilderFill() // Requires 1 input, 1 output, 1 fluid input, and a sound | ||
.input(item('minecraft:gold_ingot')) | ||
.output(item('minecraft:clay')) | ||
.fluidInput(fluid('milk')) | ||
.sound(sound('block.anvil.destroy')) | ||
.register() | ||
|
||
mods.inspirations.cauldron.recipeBuilderBrewing() // Requires 1 input, 1 input potion, and 1 output potion | ||
.input(item('minecraft:diamond_block')) | ||
.inputPotion(potionType('fire_resistance')) | ||
.outputPotion(potionType('strength')) | ||
.register() | ||
|
||
mods.inspirations.cauldron.recipeBuilderPotion() // Requires 1 input, 1 output, 1 input potion, and 0 < levels < 3/4 | ||
.input(item('minecraft:gold_block')) | ||
.output(item('minecraft:diamond_block')) | ||
.inputPotion(potionType('fire_resistance')) | ||
.levels(2) | ||
.register() | ||
|
||
mods.inspirations.cauldron.recipeBuilderDye() // Requires 1 input, 1 output, 1 dye, and 0 < levels < 3/4 | ||
.input(item('minecraft:gold_block')) | ||
.output(item('minecraft:diamond_block')) | ||
.dye('blue') | ||
.levels(2) | ||
.register() | ||
|
||
|
||
// Note: some recipes (banners, potions) cannot be removed. | ||
mods.inspirations.cauldron.removeByInput(item('minecraft:ghast_tear')) | ||
mods.inspirations.cauldron.removeByOutput(item('minecraft:piston')) | ||
mods.inspirations.cauldron.removeByFluidOutput(fluid('beetroot_soup')) | ||
mods.inspirations.cauldron.removeByFluidInput(fluid('mushroom_stew')) | ||
|
||
//mods.inspirations.cauldron.removeAll() | ||
|
||
|
||
// Anvil Smashing: | ||
// Converts a Block or IBlockState into an IBlockState when an anvil falls on top of it (from any height). | ||
mods.inspirations.anvilsmashing.recipeBuilder() | ||
.input(blockstate('minecraft:diamond_block')) | ||
.output(blockstate('minecraft:clay')) | ||
.register() | ||
|
||
mods.inspirations.anvilsmashing.recipeBuilder() | ||
.input(blockstate('minecraft:clay')) | ||
.output(blockstate('minecraft:air')) | ||
.register() | ||
|
||
mods.inspirations.anvilsmashing.removeByInput(blockstate('minecraft:packed_ice')) | ||
mods.inspirations.anvilsmashing.removeByOutput(blockstate('minecraft:cobblestone')) | ||
|
||
//mods.inspirations.anvilsmashing.removeAll() | ||
|
Oops, something went wrong.