Home Getting Started With Scripts Using this wiki Commands CTGUI Global functions Bracket Handlers

Sieving

Package

To access Sieve without clarifying the full path, you can import the package at the top of your Script with the following:

script.zs
import mods.exnihilocreatio.Sieve;

Methods

  • IIngredient block The block that drops the output.
  • IItemStack output The item that drops from the block..
  • Float chance The chance should be between 0-1.

String Mesh

script.zs
Sieve.addStringMeshRecipe(IIngredient, IItemStack, Float chance);
Sieve.addStringMeshRecipe(<minecraft:gravel>, <minecraft:diamond>, 0.001);

Flint Mesh

script.zs
Sieve.addFlintMeshRecipe(IIngredient, IItemStack, Float chance);
Sieve.addFlintMeshRecipe(<minecraft:gravel>, <minecraft:diamond>, 0.01);

Iron Mesh

script.zs
Sieve.addIronMeshRecipe(IIngredient, IItemStack, Float chance);
Sieve.addIronMeshRecipe(<minecraft:gravel>, <minecraft:diamond>, 0.1);

Diamond Mesh

script.zs
Sieve.addDiamondMeshRecipe(IIngredient, IItemStack, Float chance);
Sieve.addDiamondMeshRecipe(<minecraft:gravel>, <minecraft:diamond>, 1);

Removal

script.zs
Sieve.removeAll();