Jump to content

Zuve

Members
  • Posts

    5
  • Joined

  • Last visited

Zuve's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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:
×
×
  • Create New...

Important Information

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