-
Notifications
You must be signed in to change notification settings - Fork 31
Composter CraftTweaker functions
thedarkcolour edited this page Mar 28, 2022
·
11 revisions
Modify the list of valid items for the composter. Here is the default list of valid items with their chances of success.
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);
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>);
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);
Call this before you add your recipes to remove all the default valid items.
mods.futuremc.Campfire.clearValidItems();