Posted August 2, 20178 yr I can't figure out how to add a basic recipe Here is my code: https://github.com/GodsVictory/MobRecipes/tree/1.12 In this example I'm simply trying to craft sand into sand. What am I doing wrong? Edited August 2, 20178 yr by GodsVictory
August 2, 20178 yr You do know that your shaped recipe requires the input sand to be in the center of the 3x3 grid, right? And only that space. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
August 2, 20178 yr The log should tell you why the recipe is incorrect. I suspect it's the same issue as this thread, you haven't specified the metadata for an Item with subtypes (minecraft:sand, which is an instance of ItemMultiTexture). You need to specify the metadata with the data property. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 2, 20178 yr Author 1 hour ago, Draco18s said: You do know that your shaped recipe requires the input sand to be in the center of the 3x3 grid, right? And only that space. Yes 1 hour ago, Choonster said: The log should tell you why the recipe is incorrect. I suspect it's the same issue as this thread, you haven't specified the metadata for an Item with subtypes (minecraft:sand, which is an instance of ItemMultiTexture). You need to specify the metadata with the data property. I changed it to: { "type": "minecraft:crafting_shaped", "pattern": [ " ", " S ", " " ], "key": { "S": { "item": "minecraft:sand", "data": 0 } }, "result": { "item": "minecraft:sand", "data": 0 } } It's still not working
August 2, 20178 yr 2 hours ago, GodsVictory said: It's still not working Are there any errors in the log? Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
August 2, 20178 yr This works for me: { "type": "minecraft:crafting_shaped", "group": "planks", "pattern": [ " ", " A ", " " ], "key": { "A": { "item": "minecraft:sand", "data": 0 } }, "result": { "item": "minecraft:sand", "count": 1, "data": 0 } } Screenshot: Spoiler Edited August 2, 20178 yr by Corgam
August 2, 20178 yr Author 10 hours ago, Choonster said: Are there any errors in the log? no, although I am getting this: [10:11:24] [main/INFO]: FML has found a non-mod file MobRecipes-1.12-1.0.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. 35 minutes ago, Corgam said: This works for me: { "type": "minecraft:crafting_shaped", "group": "planks", "pattern": [ " ", " A ", " " ], "key": { "A": { "item": "minecraft:sand", "data": 0 } }, "result": { "item": "minecraft:sand", "count": 1, "data": 0 } } Screenshot: Reveal hidden contents What's in your main class? I tried that and still can't get it to work.
August 2, 20178 yr 12 minutes ago, GodsVictory said: no, although I am getting this: [10:11:24] [main/INFO]: FML has found a non-mod file MobRecipes-1.12-1.0.0.jar in your mods directory. It will now be injected into your classpath. This could severe stability issues, it should be removed if possible. What's in your main class? I tried that and still can't get it to work. I just have a file "sand.json" in assets.mymodid.recipes folder and I think no other code is required
August 2, 20178 yr Author ok, I seem to have got it working. I simply deleted my build directory and the rebuilt, not sure what exactly was causing it.
August 2, 20178 yr If your code doesn't change (the java files) then Eclipse doesn't (always) check to see if the resources have changed. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
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.