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.

Zuve

Members
  • Joined

  • Last visited

Everything posted by Zuve

  1. I'm trying to add on to existing GUI's via the GuiContainerEvent.DrawForeground event. Previously, I was doing the following: mc.getTextureManager().bindTexture(searchBar); Gui.drawTexturedModalRect(79, 4, 0, 0, 90, 12); However, with 1.14, it seems the correct syntax would be: GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F); mc.getTextureManager().bindTexture(searchBar); event.getGuiContainer().blit(79, 4, 0, 0, 90, 12); The issue I'm encountering is that this new function does not seem to correctly render my texture. Linked is an imgur album with comparisons of what the texture is and what will be rendered. The texture is 90x12 pixels in all examples. I am confident the ResourceLocation is correct given that the texture clearly changes when the image is changed, but is still displayed incorrectly. Is it possible the parameter order has switched and I didn't realize it? Any advice is appreciated.
  2. I wasn't aware of this. Do you have links to any documentation for the system? Searching for forge custom container doesn't seem to show me anything.
  3. Thanks, this pointed me in the right direction. I was missing methods for the direction and render type.
  4. Fixed this, but the issue still persists. There are no errors in the log, but the block remains invisible.
  5. My custom block is visible in the inventory, but when placed it is invisible. The texture is registering on some level, as it functions in the inventory, and when the block is broken the particles match the texture. The following are my JSON files for the blocks. BlockState JSON: Block Model JSON: Item Model JSON:

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.