#"event.custom" recipes fail to register

18 messages · Page 1 of 1 (latest)

analog carbon
#

When using event.custom to add a custom recipe for Create, the code runs without errors and reports a created recipe, but I cannot see the recipe in my recipe viewer, nor does it work in-world.

ServerEvents.recipes(event => {
    const recipe = event.custom({
        "type": "create:mixing",
        "ingredients": [
            {
                "item": "minecraft:andesite"
            },
            {
                "tag": "forge:nuggets/gold"
            }
        ],
        "results": [
            {
            "item": "create:andesite_alloy"
            }
        ]
    })
    console.log(recipe)
})
```js
grizzled archBOT
#

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

real perch
#

Does event.custom return anything?

zealous blaze
#

dont use the hub

#

open the mod itself with winrar

#

it should look like this

    event.custom({
        "type": "create:mixing",
        "ingredients": [{"item": "minecraft:egg"},{ "type": "fluid_stack", "fluid": "minecraft:water", "amount": 500 }],
        "results": [{ "id": "minecraft:frogspawn"}]});
#
    event.custom({"type": "create:milling",
        "ingredients": [{"item":  "minecraft:ochre_froglight"}], 
        "results": [{"id": "minecraft:glowstone"}, {"id": "minecraft:yellow_dye"}]});
analog carbon
#

@create include your real generated data please next time :<

zealous blaze
#

also note, item components (nbt) does not work with newest create if you ever want to make anything fancy

#

(or on 1.21.1*)

analog carbon
#

i want to make plain boring items

zealous blaze
#

then you're gucci

analog carbon
#

elegance 😌

#

(this sucks)