Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[1.14.4] recipes not showing in game


dante595
 Share

Recommended Posts

Hi,

I am new to modding and have a basic block and item thanks to a nice tutorial by suppergerrie2 - https://suppergerrie2.com/minecraft-1-14-modding-with-forge-1-setting-up-a-dev-environment/

These work in the game but the recipes for them do not show up in a crafting bench. I have created the json files as:

{
    "type": "minecraft:crafting_shaped",
    "pattern":
    [
        "xx",
        "xx"
    ],
    "key":
    {
        "x":
        {
            "item": "cobra:chalk_dust"
        }
    },
    "result":
    {
        "item": "cobra:chalk_block",
        "data": 0,
        "count": 1
    }
}

and

{
    "type": "minecraft:crafting_shaped",
    "pattern":
    [
        "x"
    ],
    "key":
    {
        "x":
        {
            "item": "cobra:chalk_block"
        }
    },
    "result":
    {
        "item": "cobra:chalk_dust",
        "data": 0,
        "count": 4
    }
}

 

These files are in the assets\cobra\recipes\ folder inside the created jar file.

I have not written any code to register the recipes as this seemed to be done automatically by Forge, but have I missed any steps to get these recipes to show up?

My full code is here - https://github.com/ed-webb/cobra  I am using version forge-1.14.4-28.1.0

 

Thanks

Link to comment
Share on other sites

54 minutes ago, dante595 said:

assets\cobra\recipes

1.13 and up moved this to data/modid/recipes.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

1 minute ago, dante595 said:

There is nothing to register in code, is there?

None whats so ever for simple crafting table recipes, or any of the furnace recipes.

 

1 minute ago, dante595 said:

Thanks. I have moved from assets to data, but still no output.

Show a screenshot of your package explorer in your IDE.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

7 minutes ago, dante595 said:

@poopoodice, I could have used shapeless, but shaped should still work, shouldn't it? I will try it, but still want to fix the dust -> block recipe.

trying this shapeless recipe, I still get nothing in the output slot of a crafting table.

{
    "type": "minecraft:crafting_shapeless",
    "ingredients": [
        {
            "item": "cobra:chalk_block"
        }
    ],
    "result":
    {
        "item": "cobra:chalk_dust",
        "data": 0,
        "count": 4
    }
}

 

I am sure I am missing something else fundamental...

Link to comment
Share on other sites

1 minute ago, dante595 said:

Here is my package explorer again. I managed not expand the recipes folder before!

Post your console output. There is probably an error somewhere.

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

Link to comment
Share on other sites

There was:

 

[Server thread/ERROR] [minecraft/RecipeManager]: Parsing error loading recipe cobra:chalk_block
[Server thread/ERROR] [minecraft/RecipeManager]: Parsing error loading recipe cobra:chalk_dust

 

The json was valid, but it did not like the line:

"data": 0,

 

All working now, thanks.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.