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.

xkorot

Members
  • Joined

  • Last visited

Everything posted by xkorot

  1. I'm trying to render an item in GUI, and upon hover, I want to display an image above it. However, this image is rendered beneath the item. Is this even possible? final PoseStack poseStack2 = RenderSystem.getModelViewStack(); poseStack2.pushPose(); poseStack2.mulPoseMatrix(poseStack.last().pose()); poseStack2.translate(x, y, 0f); poseStack2.scale(scale, scale, scale); Minecraft.getInstance().getItemRenderer().renderAndDecorateFakeItem(itemStack, 0, 0); RenderSystem.disableBlend(); poseStack2.popPose(); RenderSystem.applyModelViewMatrix(); // Reset to the current pose stack if (isHovered) { poseStack.pushPose(); RenderSystem.enableBlend(); RenderSystem.setShaderColor(1f, 1f, 1f, 1f); RenderSystem.setShaderTexture(0, BG); Screen.blit(poseStack, x, y, 0, 0, SIZE, SIZE, SIZE, SIZE); RenderSystem.disableBlend(); poseStack.popPose(); }
  2. Hello. How to patch vanilla server classes? I cloned the forge repository. Edited the class. Executed the command genPatches, then build. Found a ready-made file with ready-made classes (projects/forge/build/libs/forge-1.18.2-0.0.0.jar). Where do I put these classes so that they are on the server? I'm try to put into libraries/net/minecraft/server/1.18.2-20220404.173914/server-1.18.2-20220404.173914-srg.jar Or libraries/net/minecraftforge/forge/1.18.2-40.2.0/forge-1.18.2-40.2.0-server.jar But get exception Caused by: java.lang.NoSuchMethodError: 'net.minecraft.network.chat.FormattedText net.minecraft.network.chat.FormattedText.m_130775_(java.lang.String)'
  3. I'm trying to make a block with gui, where save and load some NBT data. I put my data in method. But if quit and join to world, data is empty. How to update nbt? @Override protected void saveAdditional(CompoundTag nbt) { nbt.put("mykey", myvalue); }
  4. I want to make a gui based on the CEF mod (chromium browser) and display item icons there
  5. I want to save the result of ItemRenderer#renderGuiItem to a png file. How to do it? Is it even possible?
  6. Hi! How to get server response, when I send custom packet from client? In old version 1.12.2 I just return my response in IMessageHandler public IMessage onMessage(MyPacket message, MessageContext ctx) { //some code... return response; } is it possible in 1.18.2?

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.