Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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

  • Author

No, I don't mean the recipe helper. I mean if you put a block in the crafting table, then it does not show 4 dust in the output slot.

  • Author

 

6 minutes ago, Animefan8888 said:

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

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

There is nothing to register in code, is there?

ScreenHunter_683 Sep. 29 11.58.jpg

ScreenHunter_682 Sep. 29 11.57.jpg

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.

  • Author

Here is my package explorer:

image.png.67529fd8b58a19f8c2cf0bd63f810764.png

 

@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.

  • Author
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...

  • Author

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

 

ScreenHunter_685 Sep. 29 14.55.jpg

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.

  • Author

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.

5 hours ago, dante595 said:

assets\cobra\recipes\

The path has changed now is data\modid\recipes

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.