ModTweaker

ModTweaker

88M Downloads

Botania Petal Apothacary not accepting custom recipes.

goosezilla opened this issue ยท 14 comments

commented

Same NBT issue? Dont see how this one can be related to JEI though as it doesnt return any flower with that recipe.

Script: http://hastebin.com/acasuzizoh.xml
Works with an output that isnt NBT tagged.

Recipe showing in JEI: http://i.imgur.com/DxdeQ6m.png

Apothecary not accepting custom recipe items: http://i.imgur.com/QdZysAq.png

commented

Once again. you are using the wrong thing!
http://minetweaker3.powerofbytes.com/wiki/Tutorial:Advanced_Recipes
please read the NBT stuff there.

commented

Am I wrong? Seriously if its so obvious and easy can you not just help me out and fix the recipe in the script above? Ive spent so long trying to get this to work using the wiki and im only here because I cant get it to work after trying everything I can think of.

Sorry if this is some massive inconvenience to you but I really dont see an answer and the example provided above is not helpful for this situation. Ive tried the EXACT same code for the petal apothecary and cant get it to give me a valid recipe that accepts the input items.

Please dont just tell me im doing it wrong without providing any specific help or example other than to go back to doing the equivalent of banging my head against a brick wall.

commented

@goosezilla may I see your script?

commented

http://hastebin.com/acasuzizoh.xml

theres that one but i mean I feel like ive tried every possible variation of the values and withTag/onlyWithTag so its just one variation of the script that I really feel should work.

All I need is a working example of an apothecary recipe that outputs an item with specific NBT such as the botania endoflame. If the output doesnt need a specific NBT I can get it working fine.

commented

Not at my main pc atm but could you try this?

//Botania - Endoflame
var endoflame = <botania:specialFlower>.withOnlyTag({type:"endoflame"});

mods.botania.Apothecary.removeRecipe(endoflame);
mods.botania.Apothecary.addRecipe(endoflame, [<ore:petalBrown>, <ore:petalBrown>, <ore:petalRed>, <ore:petalLightGray>, <minecraft:wool>]);
commented

tried it and its the exact same problem

commented

@goosezilla

Just did some testing.
This is not an issue with NBT (Since I double checked it against the proper way of removing and adding flower recipes via the API)

Aka

//Botania - Endoflame

mods.botania.Apothecary.removeRecipe("endoflame");
mods.botania.Apothecary.addRecipe("endoflame", [<ore:petalBrown>, <ore:petalBrown>, <ore:petalRed>, <ore:petalLightGray>, <minecraft:wool>]);
commented

This as per:

    @ZenMethod
    public static void addRecipe(String output, IIngredient[] input) {
        addRecipe(toIItemStack(ItemBlockSpecialFlower.ofType(output)), input);
    }

    private static class Add extends BaseListAddition<RecipePetals> {
        public Add(RecipePetals recipe) {
            super("Botania Petal", BotaniaAPI.petalRecipes);
            recipes.add(recipe);
        }

&

    @ZenMethod
    public static void removeRecipe(String output) {
        removeRecipe(toIItemStack(ItemBlockSpecialFlower.ofType(output)));
    }
commented

However the recipe is still broken which points towards an issue with the Botania/Minetweaker integration that still needs to be investigated.

TLDR;
Not NBT, It's a broken Integration.
Will look into.

commented

Me and Jared are troubleshooting the issue with the integration to see if it's CrT's Issue or Botanias Issue.

commented

Thank you.

I thought it was NBT is because Ive been able to add recipes to the apothecary that dont have an NBT dependent output. I think I tried with a petal turns into wool which worked fine.

commented

Provide me with ANY working recipe that returns an item with NBT. None of those work. Please be more helpful than "read the NBT stuff".

commented
val pick = <minecraft:stone_pickaxe>;
val stonedPick = pick.withTag({display: {Name: "Stoned pick", Lore: ["This pick", "Has been experimenting too much"]}});
val cobble = <minecraft:cobblestone>;
recipes.addShaped(stonedPick, [[pick, cobble], [cobble, cobble]]);

When helping, I assume that you have read the wiki, that is why I replied in that way, if you have not read the wiki, then do so.

commented

Doesnt that example prove my point that NBT is not being used correctly? The input pick can be the stonedpick and the recipe still works.

I really meant a petal apothecary recipe that works anyway. One that outputs an active botania flower. If you cant provide me a working example then surely its a bug.