Jump to content

Recommended Posts

Posted

how do you add them? i can find no tutorials or help online, so im hoping someone here will know, i tried looking at the Block.pumkin class but i could isolate the helmet overlay.

Use examples, i have aspergers.

Examples make sense to me.

Posted

If you want to see how it's implemented, take a look there:

net.minecraft.client.gui.GuiIngame.java, line 85

 

It's hard coded and there's no rendering handles around for you to use. The only option I see is to make your own TickHandler, which should receive the RENDER TickType. Put your rendering methods in the tickEnd(...) method and monitor the client if he's wearing your helmet.

 

Edit: I forgot that it will overlay the current HUD elements. That might be bit of a problem indeed ... Ah well.

Posted

example code maybe if you figure it out?

Anyone else got any ideas?

thanks for the help anyway i will look at that gui code :0

Use examples, i have aspergers.

Examples make sense to me.

Posted

Well there's no other option. You either render it with in your TickHandler class ( but your helmet overlay will be rendered over existing HUD elements, like experience bar, hearts and stuff ) or you modify the stock Minecraft GUI classes which handle this. If you're going to modify the method rendering the HUD, just add another condition and copy the method that renders the pumpkin overlay changing the name of the texture. I don't think the TickHandler will be of use in this case, because just like I've said it would cover all of your existing HUD elements.

Posted

i think i can live without the overlay im not an advanced modder and this sounds very complicated :) also i dont want to extend the base classes :)

Use examples, i have aspergers.

Examples make sense to me.

Posted

It's not really that complicated. The reason why I didn't explain a thing on how to implement a TickHandler is because I didn't know if you want to use them :) It's just a copy-paste job, I'm sure you'd handle that ;) I'm sorry to hear you're eventually dumping the idea though.

 

Cheers!

Posted

ok so i am slightly confused, probably because i am so tired. Thanks for all your help so far.

Is is possible without editing the base minecraft files to add a custom overlay to my self created helmet?

if yes how? example code or suggestions?

if no thanks for your help so far :)

 

Use examples, i have aspergers.

Examples make sense to me.

Posted

Alrighty then ... with this code you will get the following result ( in my case when wearing a golden helmet - just change it ):

 

spzcK3Hl.png

 

Bear in mind though, that it will cover all of the existing HUD elements ( just as in the image ). Also the helmet overlay is not drawn when a menu is opened, because that would cover the entire menu :) Here's the code for the renderer:

 

http://paste.minecraftforge.net/view/6cff4e04

 

Also, add the following line in your mod init method:

 

TickRegistry.registerTickHandler(new RenderHUD(), Side.CLIENT);

 

That should do the trick. Let me know if that's what were you looking for :)

Posted

WOW!

you must be very advanced at this if you came up with that!

is it possible to change the overlay? to say a see through circle in the middle and  black area around the outside?

i also notice that the item bar is behind the overlay? and when you put on a pumkin head the item bar is infront of the overlay?

dont misunderstand me i am immensly gratefull :D i was just wondering if it is possible to change the black squidy areas?

Use examples, i have aspergers.

Examples make sense to me.

Posted

It's just a matter of a custom texture file. Make your new overlay with transparency ( in GIMP for instance, but could be pretty much anything ), save it in PNG format and paste it into jars/bin/minecraft.jar/... Then in my paste change this part:

 

%blur%/misc/pumpkinblur.png

 

... into:

 

%blur%/<your path to the new texture inside the minecraft.jar>

 

i also notice that the item bar is behind the overlay? and when you put on a pumkin head the item bar is infront of the overlay?

 

That's what I was rambling all about all this time :D This method has one big disadvantage: you will have all of these HUD elements like: experience bar, handy inventory at the bottom of the screen, health and hunger levels covered by the overlay texture. There's no way around it unfortunately. Unless you modify the Minecraft. Or a miracle happens and the Forge team puts some render handlers in there to have some control over layering the overlays but I don't think it's gonna happen any time soon :)

 

Cheers

Posted

Its ok thats great! i will just cover them completely and call it a feature! thats what mojang does anyways!

What is the size of the image?

Use examples, i have aspergers.

Examples make sense to me.

Posted

where should i put my overlay and how do i link it in?

i tried to do this part myself but im not doing it right :/

Use examples, i have aspergers.

Examples make sense to me.

Posted

But I've told you that already:

 

It's just a matter of a custom texture file. Make your new overlay with transparency ( in GIMP for instance, but could be pretty much anything ), save it in PNG format and paste it into jars/bin/minecraft.jar/... Then in my paste change this part:

 

%blur%/misc/pumpkinblur.png

 

... into:

 

%blur%/<your path to the new texture inside the minecraft.jar>

 

You need to put your texture file inside of the minecraft.jar file. Open it up with any archiver like WinZIP, 7-Zip and paste your texture in there.

Posted

When i have the helmet with the overlay on and look in third person/ someone else looks at me, i look like i am not wearing a helmet?

Use examples, i have aspergers.

Examples make sense to me.

Posted

I am using a custom helmet

 

package ashtonsmod.common;

import net.minecraft.item.EnumArmorMaterial;
import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.IArmorTextureProvider;

public class MinersHelmet extends ItemArmor implements IArmorTextureProvider{

        public MinersHelmet(int par1,EnumArmorMaterial par2EnumArmorMaterial, int par3, int par4) {
                super(par1, par2EnumArmorMaterial, par3, par4);
        }

	@Override
    	public String getTextureFile(){
    		return CommonProxy.items_png;
         }

        public String getArmorTextureFile(ItemStack par1){
                if ( par1.itemID==ashtonsmod.ObsidianHelmet.shiftedIndex){
                        return "/armor/AbsorbingArmor_1.png";
                }return "/armor/AbsorbingArmor_2.png";
        }
}

 

however it worked before i used the overlays? i have provided code anyway in case i have made some stupid error.

 

Overlay code

package ashtonsmod.common;

import java.util.EnumSet;

import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiChat;
import net.minecraft.client.gui.ScaledResolution;
import net.minecraft.client.renderer.Tessellator;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;

import org.lwjgl.opengl.GL11;

import cpw.mods.fml.common.ITickHandler;
import cpw.mods.fml.common.TickType;

public class MiningHelmetOverlay implements ITickHandler
{
        @Override
        public void tickStart(EnumSet<TickType> type, Object... tickData)
        {
               
        }

        @Override
        public void tickEnd(EnumSet<TickType> type, Object... tickData)
        {
                if(Minecraft.getMinecraft().thePlayer == null || Minecraft.getMinecraft().currentScreen != null)
                        return;
               
                ItemStack helmet = Minecraft.getMinecraft().thePlayer.inventory.armorItemInSlot(3);
                if(Minecraft.getMinecraft().gameSettings.thirdPersonView == 0 && helmet != null && helmet.itemID == ashtonsmod.MinersHelmet.shiftedIndex)
                {
                        GL11.glPushAttrib(GL11.GL_ALL_ATTRIB_BITS);
                       
                        Tessellator t = Tessellator.instance;
                       
                        ScaledResolution scale = new ScaledResolution(Minecraft.getMinecraft().gameSettings, Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight);
                        int width = scale.getScaledWidth();
                        int height = scale.getScaledHeight();
                       
                        GL11.glDisable(GL11.GL_DEPTH_TEST);
                        GL11.glDepthMask(false);
                        GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
                        GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
                        GL11.glDisable(GL11.GL_ALPHA_TEST);
                        GL11.glBindTexture(GL11.GL_TEXTURE_2D, Minecraft.getMinecraft().renderEngine.getTexture("%blur%/armor/MiningHelmetblur.png"));
                       
                        t.startDrawingQuads();
                        t.addVertexWithUV(0.0D, (double)height, 90.0D, 0.0D, 1.0D);
                        t.addVertexWithUV((double)width, (double)height, 90.0D, 1.0D, 1.0D);
                        t.addVertexWithUV((double)width, 0.0D, 90.0D, 1.0D, 0.0D);
                        t.addVertexWithUV(0.0D, 0.0D, 90.0D, 0.0D, 0.0D);
                        t.draw();
                       
                        GL11.glPopAttrib();
                }
        }

        @Override
        public EnumSet<TickType> ticks()
        {
                return EnumSet.of(TickType.RENDER);
        }

        @Override
        public String getLabel()
        {
                return "render hud tick handler";
        }

}

 

Use examples, i have aspergers.

Examples make sense to me.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • The mods below are required for Iron's Spells 'n Spellbooks to work so... Mods(forgot to add earlier Sorry): CuriosAPI, geckolibAPI, CaelusAPI, playernanimtor and Iron's Spells 'n Spellbooks. Logs: https://pastebin.com/TP5EUApx Only  CuriosAPI, geckolibAPI and CaelusAPI were said to be extra... Image even if you don't need it: https://imgur.com/a/7E0fE9d
    • I keep getting this error and i dont know how to fix it. Can anyone help?       Prism Launcher version: 9.1 (official) Launched instance in offline mode Minecraft folder is: C:/Users/reece/AppData/Roaming/PrismLauncher/instances/Cobblemon Official Modpack [Fabric]/minecraft Java path is: C:/Users/reece/AppData/Roaming/PrismLauncher/java/eclipse_temurin_jre21.0.5+11/eclipse_temurin_jre21.0.5+11/bin/javaw.exe Java is version 21.0.5, using 64 (amd64) architecture, from Eclipse Adoptium. Main Class:   net.fabricmc.loader.impl.launch.knot.KnotClient Native path:   C:/Users/reece/AppData/Roaming/PrismLauncher/instances/Cobblemon Official Modpack [Fabric]/natives Traits: traits FirstThreadOnMacOS traits XR:Initial traits feature:is_quick_play_multiplayer traits feature:is_quick_play_singleplayer Libraries:   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype-natives-windows-arm64/3.3.3/lwjgl-freetype-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype-natives-windows-x86/3.3.3/lwjgl-freetype-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype-natives-windows/3.3.3/lwjgl-freetype-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-freetype/3.3.3/lwjgl-freetype-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw-natives-windows-arm64/3.3.3/lwjgl-glfw-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw-natives-windows-x86/3.3.3/lwjgl-glfw-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw-natives-windows/3.3.3/lwjgl-glfw-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-glfw/3.3.3/lwjgl-glfw-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-arm64/3.3.3/lwjgl-jemalloc-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows-x86/3.3.3/lwjgl-jemalloc-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc-natives-windows/3.3.3/lwjgl-jemalloc-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-jemalloc/3.3.3/lwjgl-jemalloc-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-natives-windows-arm64/3.3.3/lwjgl-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-natives-windows-x86/3.3.3/lwjgl-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-natives-windows/3.3.3/lwjgl-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-openal-natives-windows-arm64/3.3.3/lwjgl-openal-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-openal-natives-windows-x86/3.3.3/lwjgl-openal-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-openal-natives-windows/3.3.3/lwjgl-openal-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-openal/3.3.3/lwjgl-openal-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl-natives-windows-arm64/3.3.3/lwjgl-opengl-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl-natives-windows-x86/3.3.3/lwjgl-opengl-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl-natives-windows/3.3.3/lwjgl-opengl-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-opengl/3.3.3/lwjgl-opengl-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-stb-natives-windows-arm64/3.3.3/lwjgl-stb-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-stb-natives-windows-x86/3.3.3/lwjgl-stb-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-stb-natives-windows/3.3.3/lwjgl-stb-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-stb/3.3.3/lwjgl-stb-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-arm64/3.3.3/lwjgl-tinyfd-natives-windows-arm64-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows-x86/3.3.3/lwjgl-tinyfd-natives-windows-x86-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd-natives-windows/3.3.3/lwjgl-tinyfd-natives-windows-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl-tinyfd/3.3.3/lwjgl-tinyfd-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lwjgl/lwjgl/3.3.3/lwjgl-3.3.3.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/github/oshi/oshi-core/6.4.10/oshi-core-6.4.10.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/google/code/gson/gson/2.10.1/gson-2.10.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/google/guava/guava/32.1.2-jre/guava-32.1.2-jre.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/ibm/icu/icu4j/73.2/icu4j-73.2.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/authlib/6.0.54/authlib-6.0.54.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/blocklist/1.0.10/blocklist-1.0.10.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/brigadier/1.3.10/brigadier-1.3.10.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/datafixerupper/8.0.16/datafixerupper-8.0.16.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/logging/1.2.7/logging-1.2.7.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/patchy/2.2.10/patchy-2.2.10.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/text2speech/1.17.9/text2speech-1.17.9.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/commons-codec/commons-codec/1.16.0/commons-codec-1.16.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/commons-io/commons-io/2.15.1/commons-io-2.15.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/commons-logging/commons-logging/1.2/commons-logging-1.2.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-buffer/4.1.97.Final/netty-buffer-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-codec/4.1.97.Final/netty-codec-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-common/4.1.97.Final/netty-common-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-handler/4.1.97.Final/netty-handler-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-resolver/4.1.97.Final/netty-resolver-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-transport-classes-epoll/4.1.97.Final/netty-transport-classes-epoll-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-transport-native-unix-common/4.1.97.Final/netty-transport-native-unix-common-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/io/netty/netty-transport/4.1.97.Final/netty-transport-4.1.97.Final.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/it/unimi/dsi/fastutil/8.5.12/fastutil-8.5.12.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/java/dev/jna/jna-platform/5.14.0/jna-platform-5.14.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/java/dev/jna/jna/5.14.0/jna-5.14.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/commons/commons-compress/1.26.0/commons-compress-1.26.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/commons/commons-lang3/3.14.0/commons-lang3-3.14.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/logging/log4j/log4j-api/2.22.1/log4j-api-2.22.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/logging/log4j/log4j-core/2.22.1/log4j-core-2.22.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/apache/logging/log4j/log4j-slf4j2-impl/2.22.1/log4j-slf4j2-impl-2.22.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/jcraft/jorbis/0.0.17/jorbis-0.0.17.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/joml/joml/1.10.5/joml-1.10.5.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/lz4/lz4-java/1.8.0/lz4-java-1.8.0.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/slf4j/slf4j-api/2.0.9/slf4j-api-2.0.9.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/fabricmc/intermediary/1.21.1/intermediary-1.21.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm/9.7.1/asm-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm-analysis/9.7.1/asm-analysis-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm-commons/9.7.1/asm-commons-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm-tree/9.7.1/asm-tree-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/org/ow2/asm/asm-util/9.7.1/asm-util-9.7.1.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/fabricmc/sponge-mixin/0.15.4+mixin.0.8.7/sponge-mixin-0.15.4+mixin.0.8.7.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/net/fabricmc/fabric-loader/0.16.9/fabric-loader-0.16.9.jar (missing)   C:/Users/reece/AppData/Roaming/PrismLauncher/libraries/com/mojang/minecraft/1.21.1/minecraft-1.21.1-client.jar (missing) Native libraries: Mods:   [✔] almanac-1.21.x-fabric-1.0.2   [✔] AmbientEnvironment-fabric-1.21.1-18.0.0.2   [✔] appleskin-fabric-mc1.21-3.0.6   [✔] architectury-13.0.8-fabric   [✔] balm-fabric-1.21.1-21.0.22   [✔] bedrockify-1.10.1+mc1.21   [✔] BetterAdvancements-Fabric-1.21.1-0.4.3.21   [✔] BetterPingDisplay-Fabric-1.21.1-1.1.1   [✔] BetterThirdPerson-Fabric-1.21-1.9.0   [✔] BHMenu-Fabric-1.21-2.5.1   [✔] bookshelf-fabric-1.21.1-21.1.26   [✔] bwncr-fabric-1.21.1-3.20.2   [✔] cherishedworlds-fabric-10.1.0+1.21.1   [✔] cicada-lib-0.10.2+1.21-1.21.1   [✔] cloth-config-15.0.140-fabric   [✔] Clumps-fabric-1.21.1-19.0.0.1   [✔] Cobblemon-fabric-1.6.0+1.21.1   [✔] collective-1.21.1-7.87   [✔] continuity-3.0.0+1.21   [✔] craftingtweaks-fabric-1.21.1-21.1.5   [✔] CraftPresence-2.5.2+1.21.1-fabric   [✔] dismountentity-1.21.1-3.5   [✔] dynamiccrosshair-9.3+1.21.1-fabric   [✔] dynamic-fps-3.7.7+minecraft-1.21.0-fabric   [✔] enchdesc-fabric-1.21.1-21.1.5   [✔] enhanced_attack_indicator-1.1.0+1.21   [✔] entityculling-fabric-1.7.2-mc1.21   [✔] fabric-api-0.110.0+1.21.1   [✔] fallingleaves-1.16.4+1.21.1   [✔] fancymenu_fabric_3.3.2_MC_1.21.1   [✔] ferritecore-7.0.2-hotfix-fabric   [✔] FeyTweaks-1.21-1.2.8   [✔] Highlighter-1.21-fabric-1.1.11   [✔] highlight-fabric-1.21-3.0.0   [✔] Iceberg-1.21-fabric-1.2.7   [✔] ImmediatelyFast-Fabric-1.3.3+1.21.1   [✔] InvMove-1.21-0.8.8-Fabric   [✔] InvMoveCompats-1.20-0.3.2-Fabric   [✔] iris-fabric-1.8.1+mc1.21.1   [✔] konkrete_fabric_1.9.9_MC_1.21   [✔] krypton-0.2.8   [✔] lambdynamiclights-3.1.4+1.21.1   [✔] language-reload-1.7.2+1.21.1   [✔] letmedespawn-1.21.x-fabric-1.4.4   [✔] lithium-fabric-0.14.3-snapshot+mc1.21.1-build.92   [✔] LongerChatHistory-fabric-1.6   [✔] make_bubbles_pop-0.3.0-fabric-mc1.19.4-1.21   [✔] melody_fabric_1.0.10_MC_1.21   [✔] modmenu-11.0.3   [✔] monsters-in-the-closet-1.0.3+1.21   [✔] netherportalfix-fabric-1.21.1-21.1.1   [✔] notenoughanimations-fabric-1.9.0-mc1.21   [✔] owo-lib-0.12.15+1.21   [✔] particle-rain-3.0.5   [✔] particular-1.1.1+1.21   [✔] PresenceFootsteps-1.10.2+1.21   [✔] prickle-fabric-1.21.1-21.1.6   [✔] reeses-sodium-options-fabric-1.8.0+mc1.21.3   [✔] RoughlyEnoughItems-16.0.788-fabric   [✔] RoughlyEnoughProfessions-fabric-1.21.1-4.0.3   [✔] show-me-your-skin-1.11.3+1.21   [✔] shulkerboxtooltip-fabric-5.1.2+1.21.1   [✔] slimyfloor-1.21-1.3.2   [✔] sodium-extra-fabric-0.6.0+mc1.21.1   [✔] sodiumextras-fabric-1.0.6-1.21.1   [✔] sodium-fabric-0.6.5+mc1.21.1   [✔] sodiumleafculling-fabric-1.0.0-1.21.1   [✔] sodiumoptionsapi-fabric-1.0.8-1.21.1   [✔] sodiumoptionsmodcompat-fabric-1.0.0-1.21.1   [✔] sodium-shadowy-path-blocks-fabric-4.0.0   [✔] stendhal-1.4.1-1.21   [✔] superflatworldnoslimes-1.21.1-3.4   [✔] swingthrough-1.0.5+1.21   [✔] titlefixer-1.0+1.21   [✔] tooltipfix-1.1.1-1.20   [✔] txnilib-fabric-1.0.21-1.21.1   [✔] UniLib-1.0.4+1.21.1-fabric   [✔] visuality-0.7.7+1.21   [✔] wakes-0.2.2-1.21   [✔] Xaeros_Minimap_24.7.1_Fabric_1.21   [✔] XaerosWorldMap_1.39.2_Fabric_1.21   [✔] YetAnotherConfigLib-3.6.2+1.21-fabric   [✔] yosbr-0.1.2 Params:   --username  --version 1.21.1 --gameDir C:/Users/reece/AppData/Roaming/PrismLauncher/instances/Cobblemon Official Modpack [Fabric]/minecraft --assetsDir C:/Users/reece/AppData/Roaming/PrismLauncher/assets --assetIndex 17 --uuid  --accessToken  --userType  --versionType release Window size: 854 x 480 Launcher: standard Failed to reconstruct Minecraft assets. Java Arguments: [-XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump, -Xms512m, -Xmx5632m, -Duser.language=en] Minecraft process ID: 74920 Exception caught from launcher java.lang.ClassNotFoundException: net.fabricmc.loader.impl.launch.knot.KnotClient     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)     at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)     at java.base/java.lang.ClassLoader.loadClass(Unknown Source)     at org.prismlauncher.utils.ReflectionUtils.findMainMethod(ReflectionUtils.java:88)     at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:104)     at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)     at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) Exiting with ERROR Process exited with code 2. Log upload triggered at: 02 Jan 2025 22:41:36 -0800 Log uploaded to: https://mclo.gs/thSD0Is Clipboard copy at: 02 Jan 2025 22:41:43 -0800  
    • I solved this already, but basically I was getting java.io.EOFException while installing Forge. From the (scarce) other forum postings on this, I needed to either clear the temp directory or delete some folder in `.minecraft/libraries`.  The other forum posts were for Windows, so I have no idea what temp folder they mean exactly, I doubt it is `/tmp`.  If someone can clarify where the download cache is for the Forge installer on Linux, that would be really nice.   Solution: In terminal, `cd` to your `.minecraft` folder, likely this command is what you want: `cd ~/.minecraft`. Run `find -name '*1.20.1*'`, or replace 1.20.1 with the version you're installing.  This shows where the damaged files might be which cause this error. Very carefully, determine which folders are safe to delete with `rm -rf`.  The commands I ran were: rm -rf ./versions/1.20.1* rm -rf ./libraries/de/oceanlabs/mcp/mcp_config/1.20.1* rm -rf ./libraries/net/minecraftforge/fmlcore/1.20.1-47.3.22 rm -rf ./libraries/net/minecraftforge/forge/1.20.1-47.3.22 rm -rf ./libraries/net/minecraftforge/mclanguage/1.20.1-47.3.22 After this I reran the install and it worked fine.
    • Hi everyone, I’m working on creating a UI similar to the one shown in the picture below. Most of the functionality is working perfectly, but I’m struggling to achieve a smooth blur effect for the background. Currently, I’m rendering the black transparent box using: "Gui.drawRect();" While the rest of the elements work as intended, the blur effect either drastically impacts performance or doesn’t look smooth at all. I’ve tried implementing the classes from Github, but I can’t seem to achieve the desired results.   I’d greatly appreciate your guidance or tips! Thanks in advance for your help! (This is on the hud no opened gui or something)
    • Please read the FAQ, and post logs as directed in your own new post in the support forum.
  • Topics

×
×
  • Create New...

Important Information

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