Crusher
Link to crusher
The Crusher package can be used to add/remove recipes to/from the Immersive Engineering Crusher.
Hinzufügen des Packages
Link to hinzufügen-des-packages
You can call the Crusher package using mods.immersiveengineering.Crusher
.
Rezept hinzufügen
Link to rezept-hinzufügen
Required | Type | Datentyp |
---|---|---|
Required Required | Type Output | Datentyp IItemStack |
Required Required | Type Input | Datentyp IIngredient |
Required Required | Type Energy | Datentyp int |
Required Optional | Type Secondary Output | Datentyp IItemStack |
Required Optional | Type Secondary Chance | Datentyp double |
Beispiel
Link to beispiel
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 | Datentyp |
---|---|
Type Output | Datentyp IItemstack |
Beispiel
Link to beispiel-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 | Datentyp |
---|---|
Type Input | Datentyp IItemstack |
Beispiel
Link to beispiel-2
ZenScript Copy//Example:
mods.immersiveengineering.Crusher.removeRecipesForInput(IItemstack input);
mods.immersiveengineering.Crusher.removeRecipesForInput(<minecraft:diamond>);