Jump to content

[1.7.2][Solved] Sending text from onBlockActivated sends message twice


Recommended Posts

Posted

So i want it to be so that when you right click the block with a item, it prints the fluid inside the tank to the chat.

I have got it so that it prints it to the chat, but it prints it twice.

}else if(heldtItem.isItemEqual(new ItemStack(CompactTanks.meter))){ //checks if it's the right item
Debug.consoleln("Fluid Meter found"); //Everything prefixed with Debug just prints to the console
if(tileSmallTank.isTankEmpty()){ 
	ChatHandler.sendToPlayer("The tank is empty", par5EntityPlayer);//the text that gets printed twice
}else{
	ChatHandler.sendToPlayer("Current fluid in tank: " + tileSmallTank.getFluidName(), par5EntityPlayer);//the text that gets printed twice
	ChatHandler.sendToPlayer("Amount of fluid in tank: " + tileSmallTank.getFluidAmount(), par5EntityPlayer);//the text that gets printed twice
	return true;
}
}

 

The code in the ChatHandler looks like this:

public class ChatHandler {

public static void sendToPlayer(String par1Message, EntityPlayer par2Player){
	if(par1Message.length() > 0){
		par2Player.addChatMessage(new ChatComponentTranslation(par1Message));
	}
}

}

 

and the isTankEmpty code looks lige this:

public boolean isTankEmpty(){
	if(tank.getFluid() == null){
		return true;
	}else{
		return false;
	}
}

 

 

All the code can be found here: https://github.com/simwir/Compact-Tanks/tree/Tank

and the files in question are:

ChatHandler - https://github.com/simwir/Compact-Tanks/blob/Tank/main/java/simwir/ct/handler/ChatHandler.java

BlockSmallTank - https://github.com/simwir/Compact-Tanks/blob/Tank/main/java/simwir/ct/blocks/BlockSmallTank.java

TileSmallTank - https://github.com/simwir/Compact-Tanks/blob/Tank/main/java/simwir/ct/tile/TileSmallTank.java

 

Posted

The method gets called twice, once for client and once for server. You should only send the message on the server (

world.isRemote == false

).

 

Thanks that worked :D

Posted

diesieben, I know this is solved, but was looking around the forum, and notice you used == false. You can just do

if(!world.isRemote)

. Just though I would point it out, I generally use that method because its faster.

 

Happy coding!

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

    • 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.
    • Hello, i Play Modded Minecraft on the Version 1.20.1. About half of the time my Minecraft crashes while starting the Game with the following Crash log. Any help would be appreciated.    Crashlog: https://mclo.gs/nB6kdBb  
  • Topics

×
×
  • Create New...

Important Information

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