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.

MyNameIsJan

Members
  • Joined

  • Last visited

  1. Thanks a lot. And also for the little side note Just one question... why do they have to be in one class? I know that the block needs to be registered before the item so as long as I take care of that it should be fine, right? Or is this some best practice? If you got any further advice I'll take them Have a nice rest of the day
  2. Thanks for the reply. The Registration and all that stuff is working and I'm doing it like you said. I split it up into multiple classes and not all in one. I can see my items/blocks ingame. But the item got this purple/black texture.
  3. Hello, when I try to render an item for a block it complains that it can't find the texture. The block is rendered fine and working but the item seems to be unable to find the texture. If the texture is NOT in a subfolder it's working for the item too. Here some screenshot I think are helpful to get a clear view of what I have. Here is where the item of the block get its texture: Here is the folder structure of the textures. As I mentioned before, when I put "block/generator_front" into the "new ResourceLocation()" and put the png file directly under "/block" and not "block/generator" it works. This is where the block is rendered and is getting its texture: And of course the error that is been thrown: Thanks for any help.

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.