ZenScript Copyimport mods.roots.Bark;
使用方式
Link to 使用方式
ZenScript Copyvoid addRecipe(
string name, // the name of the recipe
IItemStack woodLog, // the itemstack equivalent of the wood log being broken
IItemStack bark // the itemstack of the type of bark this log produces (including stack count)
);
Adds a recipe that converts a block (in the form of an item stack) into another item stack. Log input must be an itemblock.
ZenScript Copyvoid removeRecipe(
IItemStack bark // the itemstack of the type of bark to remove (excluding stack size)
);
Removes a bark recipe via output from the list.
ZenScript Copyimport mods.roots.Bark;
// Will produce 2 sand from a melon block broken by a knife.
Bark.addRecipe("melon", <minecraft:melon_block>, <minecraft:sand>*2);
// Removes wildwood bark from the default list
Bark.removeRecipe(<roots:bark_wildwood>);