Crusher
Link to crusher
The Crusher package can be used to add/remove recipes to/from the Immersive Engineering Crusher.
Calling The Package
Link to calling-the-package
You can call the Crusher package using mods.immersiveengineering.Crusher
.
Add Recipe
Link to add-recipe
Required | Type | Data Type |
---|---|---|
Required Required | Type Output | Data Type IItemStack |
Required Required | Type Input | Data Type IIngredient |
Required Required | Type Energy | Data Type int |
Required Optional | Type Secondary Output | Data Type IItemStack |
Required Optional | Type Secondary Chance | Data Type double |
Example
Link to example
ZenScript Copy//Example:
mods.immersiveengineering.Crusher.addRecipe(IItemStack output, IIngredient input, int energy, @Optional IItemStack secondaryOutput, @Optional double secondaryChance);
mods.immersiveengineering.Crusher.addRecipe(<minecraft:diamond>, <ore:logWood>, 2048);
mods.immersiveengineering.Crusher.addRecipe(<minecraft:diamond>, <ore:logWood>, 2048, <minecraft:dirt>);
mods.immersiveengineering.Crusher.addRecipe(<minecraft:diamond>, <ore:logWood>, 2048, <minecraft:dirt>, 0.5);
Remove Recipe by Output
Link to remove-recipe-by-output
Type | Data Type |
---|---|
Type Output | Data Type IItemstack |
Example
Link to example-1
ZenScript Copy//Example:
mods.immersiveengineering.Crusher.removeRecipe(IItemstack output);
mods.immersiveengineering.Crusher.removeRecipe(<minecraft:diamond>);
Remove Recipe By Input
Link to remove-recipe-by-input
Type | Data Type |
---|---|
Type Input | Data Type IItemstack |
Example
Link to example-2
ZenScript Copy//Example:
mods.immersiveengineering.Crusher.removeRecipesForInput(IItemstack input);
mods.immersiveengineering.Crusher.removeRecipesForInput(<minecraft:diamond>);