How do i use the fluid cells in machine recipes?

  • What im trying to do is make a centrifuge recipe that takes 50 :Water Cell: water cells and makes 1 :Electrolyzed Water Cell: heavy water cell and 49 :Empty Cell: empty ones. I use the method used in getSubItems to get the cells with fluid. I know that works bacause if i set the input to a random item like :Refined Iron: iron ingots it works but if i set it to the :Water Cell: water cells the recipe is not working.

  • never use getSubItems to acquire Items. That Method is Clientside Only and only exists for Creative Mode and NEI Displays

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • try just using getIc2Item("waterCell") or something instead of trying to manually fill it with water.

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • filling them is not the problem. i cant use fluid cells as inputs. even if i make the output a random item like iron ingots it still wont take them. i can use them as outputs fine but not inputs.

  • Oh youre using universal fluid cells? That is probably the Issue. They dont work right as Inputs.

    I don't say, your "insert whatever" is bad. I'm only showing ways for making it better.
    GregTech Website
    Patreon really helps me out. If you consider funding the development of GT, so I might be able to do it fulltime, why not?
    GregTech 6, the Main Thread, Bug Reports go here too.
    I'm also on #gt-dev on irc.esper.net, if you don't want to make a Forum account just to contact me.
    (I'm there almost every day, when I'm at my own computer. Yes you can drop bugs and suggestions there too)

  • What error are you getting when doing Cell -> Cell + Empty Cells? There's been a lot of work (some quite recently) to make universal fluid cells work in machine recipes, especially if a different recipe using them already exists (hence the compressor recipe is fine).


    As an aside, getSubItems was patched to be universal in 1.11 and was made universal in 1.12 so you're clear to use it without concern.

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.


    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(


    I see this too much.

  • They all use the same base recipe manager which can definitely use NBT. It does sometimes need slightly different passing in though to ensure it checks the way you need, but for what you're doing it shouldn't. The extractor has an air cell to empty cell recipe which means universal fluid cells definitely do work as inputs too.


    Try something like...

    Java
    1. IRecipeInput input = Recipes.inputFactory.forStack(IC2Items.getItem("fluid_cell", "water"), 50);
    2. ItemStack outputA = IC2Items.getItem("fluid_cell", "ic2heavy_water");
    3. ItemStack outputB = IC2Items.getItem("fluid_cell");
    4. outputB.setCount(49); //49 Empty universal fluid cells output
    5. Recipes.centrifuge.addRecipe(input, Arrays.asList(outputA, outputB), null, false);

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.


    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(


    I see this too much.

  • Which version of IC2 are you compiling against/using? It did previously have some problems so older versions won't work.

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.


    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(


    I see this too much.

  • That'd do it, the extractor recipe was only fixed in 86 and I would doubt fluid containers would work reliably before it too. Try updating and trying again with 96. Curse is definitely due a bump in version soon if it works.

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.


    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(


    I see this too much.

  • You'd have to remove the recipes from the canning machine's enriching recipe manager; the cleanest method being removing it from the ICannerEnrichRecipeManager#getRecipes() iterator. Whilst not really recommended normally, it remains the best way to remove recipes if that is what you want to do.

    145 Mods isn't too many. 9 types of copper and 8 types of tin aren't too many. 3 types of coffee though?

    I know that you believe that you understood what you think I said, but I am not sure you realise that what you read was not what I meant.


    ---- Minecraft Crash Report ----
    // I just don't know what went wrong :(


    I see this too much.