RCXcrafter / EmbersRekindled

Port of Embers Rekindled to a minecraft version beyond 1.12.2
MIT License
11 stars 7 forks source link

Problem to add recipes to Mixing centrifuge 1.20.1 #29

Closed ComeBelin closed 7 months ago

ComeBelin commented 7 months ago

I would like to add a recipe with the centrifugal mixing in 1.20.1 through the modification of recipes kubejs

{
  "type": "embers:mixing",
  "inputs": [
    {
      "amount": 2,
      "tag": "forge:molten_copper"
    },
    {
      "amount": 2,
      "fluid": "create_wt:molten_zinc"
    }
  ],
  "output": {
    "amount": 4,
    "fluid": "create_wt:molten_brass"
  }
}

or through recipes in kubejs.


ServerEvents.recipes(event => {
    event.custom({
        type: 'embers:mixing',
        inputs: [
            {
                "amount": 2,
                "tag": "forge:molten_copper"
            },
            {
                "amount": 2,
                "fluid": "create_wt:molten_zinc"
            }
        ],
        result: { "fluid": 'embers:molten_dawnstone', "amount": 4 },
    })
})
```js

but it doesn’t work 
RCXcrafter commented 7 months ago

When using an untagged fluid as an ingredient in a recipe you should use "name" for the fluid name, not "fluid". See the dwarven oil mixing recipe for an example: https://github.com/RCXcrafter/EmbersRekindled/blob/rekindled/src/generated/resources/data/embers/recipes/mixing/dwarven_oil_steam.json