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.

Kokkie

Forge Modder
  • Joined

  • Last visited

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. Use you IDE to see what you need to put inside of it
  7. It only draws normal cheeses, it doesn't matter what the level of it is... Again, look at github for code
  8. still nothing
  9. Because I tried it outside it first, didn't work, tried inside, also didn't, just didn't put it back
  10. Wait, it works, only... half It only renders it when it is half there, instead of when it is there...
  11. When I change it to ALL it doesn't render them either
  12. Look at my github for code, I did FOOD
  13. That's not the problem, because without the bindTexture method it does render the normal food icons
  14. 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
  15. Then, how should I change the drawTexturedModalRect(...) to display my texture?
  16. It works now, but how do I change the icon?
  17. Okay, thanks
  18. Where are the normal ones located, so I can basicly copy that but change textures etc.?
  19. And make it?
  20. But how do I add it?
  21. I want to make a custom HUD part (like health and hunger), but I don't know how
  22. Ah thanks, it works again
  23. So basicly, the button isn't registered right, because when I print all the button ids in the console
  24. Now it is ran.?

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.