Jump to content

Kokkie

Forge Modder
  • Posts

    796
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Kokkie

  1. Bump Also, there is a really tiny white dot in the middle of the mirror, I think it could be the entity but I don't know, and I still don't know how to fix the clipping texture, and I don't know how to make it render players
  2. world.isRemote()
  3. Ooh, now it works, thanks!
  4. Oh sorry, didn't update github yet
  5. put in world.getBlockState(pos)
  6. What does it say
  7. Use you IDE to see what you need to put inside of it
  8. It only draws normal cheeses, it doesn't matter what the level of it is... Again, look at github for code
  9. still nothing
  10. Because I tried it outside it first, didn't work, tried inside, also didn't, just didn't put it back
  11. Wait, it works, only... half It only renders it when it is half there, instead of when it is there...
  12. When I change it to ALL it doesn't render them either
  13. Look at my github for code, I did FOOD
  14. That's not the problem, because without the bindTexture method it does render the normal food icons
  15. I now have this: public void renderCheese(int width, int height) { mc.mcProfiler.startSection("cheese"); EntityPlayer player = (EntityPlayer) mc.getRenderViewEntity(); GlStateManager.enableBlend(); int left = width / 2 + 91; int top = height - right_height; right_height += 10; ICheese cheese = player.getCapability(CheeseProvider.CHEESE_CAP, null); int level = cheese.get(); int y = top; int icon = 16; byte background = 0; for (int i = 0; i < 10; ++i) { mc.renderEngine.bindTexture(new ResourceLocation(Reference.MODID + ":textures/cheese.png")); int idx = i * 2 + 1; int x = left - i * 8 - 9; background = 0; drawTexturedModalRect(x, y, 16 + background * 9, 27, 9, 9); if (idx < level) drawTexturedModalRect(x, y, icon + 36, 27, 9, 9); else if (idx == level) drawTexturedModalRect(x, y, icon + 45, 27, 9, 9); } GlStateManager.disableBlend(); mc.mcProfiler.endSection(); } But it doesn't render anything
  16. Then, how should I change the drawTexturedModalRect(...) to display my texture?
  17. It works now, but how do I change the icon?
  18. Okay, thanks
  19. Where are the normal ones located, so I can basicly copy that but change textures etc.?
  20. And make it?
  21. But how do I add it?
  22. I want to make a custom HUD part (like health and hunger), but I don't know how
  23. Ah thanks, it works again
  24. So basicly, the button isn't registered right, because when I print all the button ids in the console
  25. Now it is ran.?
×
×
  • Create New...

Important Information

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