磨粉机
Link to 磨粉机
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
.
添加配方
Link to 添加配方
Required | 类型 | 数据类型 |
---|---|---|
Required Required | 类型 输出 | 数据类型 IItemstack |
Required Required | 类型 输入 | 数据类型 材料(IIngredient) |
Required Required | 类型 Energy | 数据类型 int |
Required 可选 | 类型 Secondary Output | 数据类型 IItemstack |
Required 可选 | 类型 Secondary Chance | 数据类型 double |
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
类型 | 数据类型 |
---|---|
类型 输出 | 数据类型 物品堆(IItemstack) |
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
类型 | 数据类型 |
---|---|
类型 输入 | 数据类型 物品堆(IItemstack) |
ZenScript Copy//Example:
mods.immersiveengineering.Crusher.removeRecipesForInput(IItemstack input);
mods.immersiveengineering.Crusher.removeRecipesForInput(<minecraft:diamond>);