
Zuve
Members-
Content Count
5 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Zuve
-
Rank
Tree Puncher
-
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.
-
Block texture works in inventory, invisible when placed
Zuve replied to Zuve's topic in Modder Support
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. -
Block texture works in inventory, invisible when placed
Zuve replied to Zuve's topic in Modder Support
Thanks, this pointed me in the right direction. I was missing methods for the direction and render type. -
Block texture works in inventory, invisible when placed
Zuve replied to Zuve's topic in Modder Support
Fixed this, but the issue still persists. There are no errors in the log, but the block remains invisible. -
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: