theOriginalByte Posted January 8, 2015 Posted January 8, 2015 Hey everyone! I have a quick question. How do I prevent the block I've made from just showing up randomly in the result portion of the crafting grid? Here is a picture: The link to the repository is here: https://github.com/Cyb3rWarri0r8/CommuMod/tree/release/V.-1.5/src/main/java/io/cyb3rwarri0r8/commumod All help is greatly appreciated as i've tried to figure this out and have drawn nothing but blanks as to what i've done wrong.
theOriginalByte Posted January 8, 2015 Author Posted January 8, 2015 On 1/8/2015 at 8:45 PM, diesieben07 said: First off, your image is broken. Then, this is probably caused by your recipe registrations. If you have a recipe like this: "SSS", "SSS", " " you should omit the 3rd String. Empty spaces should only be there if necessary. Another example: " S ", " S ", " S " should be "S", "S", "S" instead. Yeah i'm trying to figure out why the image won't show up. It is a solid block so all three spaces are filled for every line like so: "XXX" "XXX" "XXX" 'x', ModItems.superbiumIngot
theOriginalByte Posted January 8, 2015 Author Posted January 8, 2015 On 1/8/2015 at 8:52 PM, diesieben07 said: I was talking about your recipes in general. Examples: here and here and here. The new Object[] part is also unnecessary, please learn what varargs means. Oh I see what you were talking about. I'll have to fix that.
theOriginalByte Posted January 8, 2015 Author Posted January 8, 2015 https://api.monosnap.com/rpc/file/download?id=aNHR0116kLWi6BUiS7Otfh66gU8wyh[/img]
theOriginalByte Posted January 8, 2015 Author Posted January 8, 2015 On 1/8/2015 at 9:34 PM, diesieben07 said: Did you fix the recipes and it still occurs? yeah
theOriginalByte Posted January 12, 2015 Author Posted January 12, 2015 On 1/8/2015 at 10:00 PM, diesieben07 said: You call ModBlocks.init before you call ModItems.init, therefor here ModItems.superbiumIngot is still null. Also: your repository is a pain in the ass to clone because your .gitignore is missing like... everything. I had to download your entire test world to clone your repository. Things like that should not be there! Trust me I've been trying to fix the .gitignore file without erasing the entire repo and starting from scratch. When I change around how it calls the items and blocks it crashes because of the way the blocks are being registered.
theOriginalByte Posted January 12, 2015 Author Posted January 12, 2015 Gah! Okay i'll see if that does anything. for reference... is there a specific way to register things... like an order they should go in(ie. Blocks, items, fluids, etc.)?
theOriginalByte Posted January 12, 2015 Author Posted January 12, 2015 On 1/12/2015 at 6:36 PM, diesieben07 said: Then you need to split up recipes and registration into two methods. First create and register all Blocks & Items, then register recipes (both in preInit). Here are the latest versions of what I've done. I changed it and now the retaw bucket shows up in the output https://github.com/Cyb3rWarri0r8/CommuMod/tree/release/V.-1.5/src/main/java/io/cyb3rwarri0r8/commumod
theOriginalByte Posted January 12, 2015 Author Posted January 12, 2015 On 1/12/2015 at 8:15 PM, diesieben07 said: This recipe is broken. X is not the same as x. Thank you so much for the help! Its working now!
Recommended Posts