ModTweaker

ModTweaker

88M Downloads

Botania (210) Lexica addEntry() doesn't work after API update

Wolwrig opened this issue ยท 7 comments

commented

mods.botania.Lexicon.addEntry(string, string) doesn't work anymore. Looks like Vazkii updated the API and changed something. Running Botania version 210

Here is the error I get:
ERROR: BotaniaRecipes.zs:28 > a method available but none matches the parameters (string, string)

commented

addEntry needs an ItemStack now.

commented

so, @Yulife do we need to do anything? or can I close this?

commented

Wait for feedback lol :)

commented

So is this just a change I need to make in the script?

commented

Yea, you know how in the lexicon there is sometimes an icon next to an entry? we added support for that, your script should look something like (String, String, ItemStack)
so
mods.botania.lexicon.addEntry("String1", "String2", minecraft:diamond);

commented

Yes that works, as a note of clarity you example should be

mods.botania.lexicon.addEntry("string1", "string2", <minecraft:diamond>);

to be syntactically correct

commented

Haha I'm glad my code crossover worked lol. ๐Ÿ‘