Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to add a recepe into the game but i am having problems #102

Open
SophieBunBun opened this issue Jan 24, 2019 · 1 comment
Open

Trying to add a recepe into the game but i am having problems #102

SophieBunBun opened this issue Jan 24, 2019 · 1 comment

Comments

@SophieBunBun
Copy link

I am quite inexperienced with coding and modpack creation, decided to make a little project just for fun but ended up getting the desire to finish it, i would really apreciate your help!

The first thing i tried was to follow what the wiki says and it didnt work and next i tried to add recipies using crafttweaker 2 but both didnt work.

This is what i wrote in the main.json file:

{ "type":"shapedRecipe","entries": [{ "shape": ["ABA","CDC","EFE"], "items": { "A":"minecraft:gold_ingot", "B":"minecraft:redstone", "C":"enderio:item_material:10", "D":"customstuff:copper_coil", "E":"minecraft:piston", "F":"ore:ingotCopper" }, "result": { "item":"customstuff:heatgenerator", "amount":"1" }, "recipeList": "customstuff:recipes" } ] }
Note: All items here were added and are working fine.

On custom stuff i tried both through the ingame method and zen script method but both didnt work...

Im using Custom stuff 4 (the latest version), forge 1.12.2-14.23.5.2768, with ender.io, mekanism, betterquesting,crafttweaker and jei (wich for some reason isnt showing the custom stuff 4 items i added)

Am i doing something wrong?

@luoxingzlx
Copy link

luoxingzlx commented Feb 12, 2019

#66
You need to use minecraft's recipe system to add recipes for the crafting table,
Like this

{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        "###",
        "###",
        "###"
    ],
    "key": {
        "#": {
            "item": "kuronekosgift:hairy_ball_ingot",
            "data": 1
        }
    },
    "result": {
        "item": "kuronekosgift:hairy_ball_block",
        "data": 1
    }
  }

Then put the json file in assets\modid\recipes ,vanilla recipes are loaded automatically without requiring main.json to add content to load it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants