Nova-Committee / Re-Avaritia

MIT License
16 stars 14 forks source link

Extreme Crafting Recipes / 询问] #72

Closed KervinN54 closed 1 month ago

KervinN54 commented 1 month ago

Checks / 检查

Description / 描述

I am simply trying to use the custom recipe type for the extreme crafting table and it is not working. I am trying to make a modpack, and need these recipes for it. I have tried reloading with kubejs, reentering my world, and restarting my game. But all 3 of these have failed to make the recipe show up in jei or work when all items are manually placed. image_2024-07-18_195313197 That is the photo of the code I am using, I copy and pasted the outline and simply swapped out the input, output, and shape/placement of items. What am I doing wrong?

cnlimiter commented 1 month ago

@KervinN54 see this

ServerEvents.recipes(
    event => {
        event.custom({
            type: 'avaritia:shaped_extreme_craft',//shapeless is avaritia:shapeless_extreme_craft。
            pattern: [
                "       I ",
                "      III",
                "     III ",
                "    III  ",
                " C III   ",
                "  CII    ",
                "  NC     ",
                " N  C    ",
                "X        "
            ],
            key: {
                C: [
                    {item: 'avaritia:crystal_matrix_ingot'}
                ],
                I: [
                    {item: 'avaritia:infinity_ingot'}
                ],
                N: [
                    {item: 'avaritia:neutron_ingot'}
                ],
                X: [
                    {item: 'avaritia:infinity_catalyst'}
                ]
            },
            result: {item: 'avaritia:infinity_sword'}
        })
        event.custom({
            type: 'avaritia:compressor',
            inputCount: 2000,
            timeCost: 240,
            ingredient: {tag: 'forge:ingots/copper'},
            result: { item: 'avaritia:singularity', count: 1 , nbt: {Id: 'avaritia:copper'}}
        })
        console.log('Hello! The avaritia recipe event has fired!')
    }
)