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

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.

  • Author

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

  • Author

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.

  • Author

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.

  • Author

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.)?

  • Author

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

Guest
This topic is now closed to further replies.

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.