Jump to content

[1.7.10][Solved]Block from mod showing up in crafting grid


theOriginalByte

Recommended Posts

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: aNHR0116kLWi6BUiS7Otfh66gU8wyh.png

 

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

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