#Create Mixing with multiple output, including fluid

38 messages · Page 1 of 1 (latest)

stark cliff
#

I'm a bit struggling with creating a mixing recipe like the one below.

https://i.imgur.com/JSSXUEU.png

I did look in the Productive Bee's repo to see how they did the recipe's, but that looked way different than how I've been adding recipe's so far (https://github.com/JDKDigital/productive-bees/blob/dev-1.20.0/src/main/resources/data/productivebees/recipes/create/mixing/mysticalagriculture/honeycomb_soulium.json). Im not sure if this is of any use.

I am using KubeJS Create, but I already noticed in other posts that event.recipes.create.mixing works too. Unfortunately KubeJS Create doesnt have any examples for the mixer.

What would a recipe with an item input and multiple output, including a fuel, look like? Just an example should be enough, I can work from there.

Thanks in advance

pseudo locustBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

open plume
#

it looks like:

event.recipes.create.mixing([
    "2x minecraft:lapis_lazuli",
    "1x minecraft:diamond",
    Fluid.water(50),
  ],
  "minecraft:netherite_block",).heated();

the array is the output

stark cliff
#

Aah, thanks

#

Also, the id for the input item seems to be a bit odd: Item.of('productivebees:configurable_honeycomb', '{EntityTag:{type:"productivebees:brass"}}')

#

Though, this is what KubeJS gives me when using /hand, so Im assuming this is correct?

tidal solar
#

that should work

stark cliff
#

Yep, it works. Thanks

stark cliff
#

One more question actually, what if an item should have a chance?

Item.of("<item>").WithChance(0.x)?

open plume
#

yep it should be

stark cliff
#
event.recipes.create.mixing(
[
  Item.of('minecraft:cocoa_beans').withChance(0.3),
  'productivebees:wax',
  Fluid.of('productivebees:honey', 50)        
], Item.of('productivebees:configurable_honeycomb', '{EntityTag:{type:"productivebees:chocolate"}}'))```

This is the recipe I made, its not giving any errors, but nor showing up in JEI either
#

Could it be they require a server restart?

stark cliff
#

Ooh, I see what happened...

#

Ok, so, this recipe: cs event.recipes.create.mixing( [ 'create:brass_nugget', 'productivebees:wax', Fluid.of('productivebees:honey', 50) ], Item.of('productivebees:configurable_honeycomb', '{EntityTag:{type:"productivebees:brass"}}'))
shows up in JEI as:
https://i.imgur.com/0jbDXjx.png

#

It does have the image of the Brass Comb, but is identified as Honeycomb

#

I find out, because my system processing Honeycomb stalled because suddenly there were Brass Nugget going around clogging up the system

#

If you look up what mixing recipes there are using Honeycomb, the aforementioned recipe is not showing up though

#

So, for some reason Brass Nugget can now be produced from Honeycomb, though in JEI it doesnt show up as a possible outcome. Though, if you look up recipes which have Brass Nugget as a result, it does show Honeycomb as an input, just with the image of the Brass Comb 🤔

#

Im starting to wonder if you can use specific honey combs in a custom recipe. Im not sure how you should distinguish between them

open plume
#

i have try it with a custom event instead that looks like:

  event.custom({
    type: "create:mixing",
    condition: {
      type: "forge:mod_loaded",
      modid: "create",
    },
    ingredients: [
      {
        type: "forge:nbt",
        count: 1,
        item: "productivebees:configurable_honeycomb",
        nbt: '{EntityTag:{type:"productivebees:brass"}}',
      },
    ],
    results: [
      {
        count: 9,
        item: "create:brass_nugget",
      },
      {
        item: "productivebees:wax",
      },
      {
        amount: 50,
        fluid: "productivebees:honey",
      },
    ],
  });

and this is the result at the picture

stark cliff
#

Aah, that looks correct

#

This is almost as productive bees does it I believe

#

Thanks for taking the time to figure it out!

open plume
#

yep i make the custom event from the json from productive bees^^

stark cliff
#

Do I need the condition?

open plume
#

i don't know try it without and if it's not work than put it in^^

stark cliff
#

Check. I will give it a try 👍

#

Though, I just logged of from the server, so it'll be tomorrow 😉

tidal solar
desert lagoon
stark cliff
#

What does .strongNBT() do?

desert lagoon
#

Makes it so that the recipe requires exactly that NBT

#

There's also .weakNBT(), which is supposed to be the default for event.shaped(), event.smoking(), etc, but for event.recipes.etc it isn't the default. It makes it so the recipe needs at least the NBT in the recipe. Since this is under event.recipes.create.mixing(), it doesn't know that .weakNBT() is supposed to be the default, so it just accepts the honeycombe without any NBT.

#

type: "forge:nbt", in the event.custom() is equivalent to .strongNBT()

stark cliff
#

Right, I will give that a try. Would make the file a lot cleaner

#

Didnt have a chance yet to put in the previous version (hence why I didnt close the thread yet)

stark cliff
#

That did the trick. Thanks