Skip to content

Composter CraftTweaker functions

thedarkcolour edited this page Mar 28, 2022 · 11 revisions

Composter

Modify the list of valid items for the composter. Here is the default list of valid items with their chances of success.

Adding Valid Items

Adds the item to the list of valid items for the composter with a given chance of success. You can also use IOreDictEntry instead of IItemStack

// mods.futuremc.Composter.addValidItem(IIngredient item, int chance);
mods.futuremc.Composter.addValidItem(<minecraft:stick>, 20);

Removing Valid Items

Removes the item (metadata sensitive) from the list of valid items for the composter.

// mods.futuremc.Composter.removeValidItem(IItemStack item);
mods.futuremc.Composter.removeValidItem(<minecraft:potato>);

Changing the Chance of an Item

Changes the chance of success for a valid item for the composter.

// mods.futuremc.Composter.replaceValidItemChance(IIngredient item, int newChance);
mods.futuremc.Composter.replaceValidItemChance(<minecraft:potato>, 100);

Clearing valid items

Call this before you add your recipes to remove all the default valid items.

mods.futuremc.Campfire.clearValidItems();