Avaritia:Reforged

Avaritia:Reforged

45.5k Downloads

How I can create a new recipe with the big avaritia table ?

AntoineMazoyer opened this issue · 5 comments

commented

Checks / 检查

  • I confirm that I have searched for existing issues / pull requests before reporting to avoid duplicate reporting./我确认在报告之前我已经搜索了现有的问题或者拉取请求,以避免重复报告。
  • I confirm that I noted that if I don't follow the instructions, the issue may be closed directly./我确认我已经检查,如果我不按照说明进行操作,该问题可能会被直接关闭。

Description / 描述

I try to create a new recipe with kubejs :

ServerEvents.recipes(event => {
    event.custom({
        "type": "avaritia:compressor",
        "inputCount": 100,
        "timeCost": 100,
        "ingredient": {
            "item": "botania:gaia_ingot",
        },
        "result": {
            "item": "extendedcrafting:ultimate_singularity",
            "count": 1,
        }
    })
    event.custom({
        "type": "avaritia:shaped_table",
        "result": {
            "item": "avaritia:eternal_singularity"
        },
        "pattern": [
            "AAAABAAAA",
            "ACDEBEDCA",
            "ADCEBECDA",
            "AFFGBGHHA",
            "BBBBIBBBB",
            "AFFGBGHHA",
            "ADCJBJCDA",
            "ACDJBJDCA",
            "AAAABAAAA"
        ],
        "key": {
            "A": { "item": "minecraft:diamond" },
            "B": { "item": "minecraft:gold_ingot" },
            "C": { "item": "minecraft:iron_block" },
            "D": { "item": "minecraft:emerald_block" },
            "E": { "item": "avaritia:steel_singularity" },
            "F": { "item": "avaritia:electrum_singularity" },
            "G": { "item": "avaritia:redstone_singularity" },
            "H": { "item": "avaritia:nickel_singularity" },
            "I": { "item": "extendedcrafting:ultimate_singularity" },
            "J": { "item": "avaritia:lead_singularity" },
        }
    })
});

The first one work perfectly, but the second one, I've got this error : "Unknown recipe type: avaritia:shaped_table".
Are you sure the type is correct ? And if it is, why my craft doesn't work ?
I used your documentation and try to create the recipe; but nothing :'(
Can you help me ?

commented

which version

commented

1.20.1
But it's okay, I figured it out. For those who want to make personalized recipes with the singularities, you have to put this :

"C": {
            "type": "forge:nbt",
            "count": 1,
            "item": "avaritia:singularity",
            "nbt": "{Id:\"avaritia:hellforged\"}"
        },

Thanks for the quick feedback :)

commented

A little update.
I've deconstructed the mod files a bit and managed to make a working craft, however when I try to put a singularity, the craft doesn't work. Is there anything else I need to specify?

event.custom({
        "type": "forge:conditional",
        "recipes": [
        {
            "conditions": [
                {
                "type": "forge:mod_loaded",
                "modid": "extendedcrafting"
                }
            ],
            "recipe": {
                "type": "avaritia:shaped_extreme_craft",
                "category": "misc",
                "key": {
                    "C": {
                        "item": "avaritia:hellforged_singularity"
                    },
                    "E": {
                        "item": "avaritia:gold_singularity"
                    },
                    "F": {
                        "item": "extendedcrafting:ultimate_singularity"
                    },
                    "N": {
                        "item": "avaritia:bronze_singularity"
                    },
                    "X": {
                        "item": "avaritia:emerald_singularity"
                    },
                    "Y": {
                        "item": "avaritia:coal_singularity"
                    }
                },
                "pattern": [
                    "NNNNNNNNN",
                    "NXCXYXCXN",
                    "NCXEYEXCN",
                    "NXEEYEEXN",
                    "YYYYFYYYY",
                    "NXEEYEEXN",
                    "NCXEYEXCN",
                    "NXCXYXCXN",
                    "NNNNNNNNN"
                ],
                "result": {
                    "item": "avaritia:eternal_singularity"
                },
                    "show_notification": true
            }
        }]
    })

thanks for your help :)

commented

Finally, I've tested this code, but the singularities appear as NULL.

event.custom({
        "type": "forge:conditional",
        "recipes": [
        {
            "conditions": [
                {
                "type": "forge:mod_loaded",
                "modid": "extendedcrafting"
                }
            ],
            "recipe": {
                "type": "avaritia:shaped_extreme_craft",
                "category": "misc",
                "key": {
                    "C": {
                        "item": "avaritia:singularity",
                        "nbt": { "Id": "avaritia:hellforged" }
                    },
                    "E": {
                        "item": "avaritia:singularity",
                        "nbt": { "Id": "avaritia:gold" }
                    },
                    "F": {
                        "item": "extendedcrafting:ultimate_singularity"
                    },
                    "N": {
                        "item": "avaritia:singularity",
                        "nbt": { "Id": "avaritia:emerald" }
                    },
                    "X": {
                        "item": "avaritia:singularity",
                        "nbt": { "Id": "avaritia:redstone" }
                    },
                    "Y": {
                        "item": "avaritia:singularity",
                        "nbt": { "Id": "avaritia:coal" }
                    }
                },
                "pattern": [
                    "NNNNNNNNN",
                    "NXCXYXCXN",
                    "NCXEYEXCN",
                    "NXEEYEEXN",
                    "YYYYFYYYY",
                    "NXEEYEEXN",
                    "NCXEYEXCN",
                    "NXCXYXCXN",
                    "NNNNNNNNN"
                ],
                "result": {
                    "item": "avaritia:eternal_singularity"
                },
                    "show_notification": true
            }
        }]
    })
commented

Hi bro, cacn u help me with something?? Im trying to update the material count quantity for singularities, can u help me please?

Image

I think its not working, cuz my diamond singularity disapear