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.

menackni

Members
  • Joined

  • Last visited

Everything posted by menackni

  1. Thank you, that's works perfectly.
  2. protected static final DimensionType NETHER_TYPE = new DimensionType(OptionalLong.of(18000L), false, true, true, false, 8.0D, false, true, false, true, false, 128, FuzzedBiomeMagnifier.INSTANCE, BlockTags.INFINIBURN_NETHER.getName(), THE_NETHER_ID, 0.1F); This code in DimensionType class. I found that 8.0D its what i need but i dosent know how to change this or override nether_type. If mod with same functionality exist you can give me url (i need it for my mod pack).
  3. I try it before but seems i did something wrong, thanks you give this method second chance.
  4. Do you mean make like that? code bolowe render nothing @Override public void render(MatrixStack ms, int mouseX, int mouseY, float partialTicks) { this.renderBackground(ms); super.render(ms, mouseX, mouseY, partialTicks); this.renderHoveredTooltip(ms, mouseX, mouseY); Minecraft mc=Minecraft.getInstance(); ItemRenderer ir=mc.getItemRenderer(); ItemStack is=container.getInventory().get(0).copy(); if (!is.isEmpty()){ ms.push(); ms.translate(10, 10, 10); ms.rotate(Vector3f.YP.rotationDegrees(3 * (mc.world.getGameTime() % 360 +partialTicks))); ms.scale(100, -100, 100); IRenderTypeBuffer.Impl irtb = mc.getRenderTypeBuffers().getCrumblingBufferSource(); ir.renderItem(is, TransformType.GUI, 240, 0, ms, irtb); ms.pop(); } }
  5. I realise that items not icons, but result of renderItemAndEffectIntoGUI(ItemStack, mouseX, mouseY) "look like icon" they work perfectly but cant rotate or scale items with methots that i know. With renderItem(ItemStack, TransformType, x, y, matrixStack, IRenderTypeBuffer) i can transform items how i want, but for some reasons it color everything red except heads and crash game when i try to put enchanted items. My goal is to make gui where i can rotate and transform items.
  6. Also items with enchanted effect cause crash game. Also also this code work too but dosen draw shadows, enchantments and heads. ir.renderModel(ir.getItemModelWithOverrides(is, mc.world, mc.player), is, 240, 0, ms, irtb.getBuffer(RenderType.getCutout())); irtb.finish();
  7. I try draw items like models instead of icons, i already fix deephtest but items still red, i try dig vanilla code and doing like it but it dosent work @Override public void render(MatrixStack ms, int mouseX, int mouseY, float partialTicks) { this.renderBackground(ms); super.render(ms, mouseX, mouseY, partialTicks); this.renderHoveredTooltip(ms, mouseX, mouseY); Minecraft mc=Minecraft.getInstance(); ItemRenderer ir=mc.getItemRenderer(); ItemStack is=container.getInventory().get(0); if (!is.isEmpty()){ ms.push(); ms.translate(100, 100, 100); ms.rotate(Vector3f.YP.rotationDegrees(3 * (mc.world.getGameTime() % 360 +partialTicks))); ms.scale(100, -100, 100); IRenderTypeBuffer.Impl irtb = mc.getRenderTypeBuffers().getCrumblingBufferSource(); ir.renderItem(is, TransformType.FIXED, 240, 0, ms, irtb); irtb.finish(); ms.pop(); } }
  8. Hello. I am trying to render item in gui like i do it in tileEntityRenderer but it dosent work. I start digging and experementing, and find that this code work but every thing "excepting ender dragon head" colored red and deephtest only work on full blocks and ender dragon head. @Override public void render(MatrixStack ms, int mouseX, int mouseY, float partialTicks) { this.renderBackground(ms); super.render(ms, mouseX, mouseY, partialTicks); this.renderHoveredTooltip(ms, mouseX, mouseY); Minecraft mc=Minecraft.getInstance(); ItemRenderer ir=mc.getItemRenderer(); ItemStack is=container.getInventory().get(0); EntityRendererManager er=mc.getRenderManager(); if (!is.isEmpty()){ ms.push(); ms.translate(100, 100, 100); ms.rotate(Vector3f.YP.rotationDegrees(3 * (mc.world.getGameTime() % 360 +partialTicks))); ms.scale(100, 100, 100); IRenderTypeBuffer irtb = mc.getRenderTypeBuffers().getCrumblingBufferSource(); ir.renderItem(is, TransformType.GUI, 240, 0, ms, irtb); ir.renderModel(ir.getItemModelWithOverrides(is, mc.world, mc.player), is, 240, 0, ms, irtb.getBuffer(RenderType.getSolid())); ms.pop(); } } Here some examples:
  9. Hello, I am try to render some things(entity, item..) with tileentity, but when block goes offscreen these things stop rendering. So, question is how can i Expand render box for block or disable this *feature* Sorry if my englis not good, i rarely use this language. Example:

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.