Posted September 29, 20195 yr 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
September 29, 20195 yr Do you mean this Forge Documentation https://mcforge.readthedocs.io/en/latest/utilities/recipes/#groups
September 29, 20195 yr 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.
September 29, 20195 yr 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.
September 29, 20195 yr 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?
September 29, 20195 yr 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.
September 29, 20195 yr 33 minutes ago, dante595 said: Thanks. I have moved from assets to data, but still no output. There is nothing to register in code, is there? https://github.com/ed-webb/cobra/blob/master/src/main/resources/data/cobra/recipes/chalk_dust.json Why not use shapeless crafting here? and "data": 0 isn't necessary.
September 29, 20195 yr Author Here is my package explorer: @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.
September 29, 20195 yr 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...
September 29, 20195 yr Author Here is my package explorer again. I managed not expand the recipes folder before!
September 29, 20195 yr 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.
September 29, 20195 yr 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.
September 29, 20195 yr 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.