Jump to content

Recommended Posts

Posted (edited)

So I'm attempting to create a chess game in java that uses tileentities for each piece. I have one block that you place and when you right click it, it creates the board and chess pieces. However, I cannot find out how to bring the chess pieces I made into the world. I know you do worldln.setBlockState() but I can't find out how to access the block i created and set its properties as a tile entity. Any help would be appreciated. Also from a design perspective, one person told me to use the master slave pattern and have my block that creates the board hold all the blocks, but I don't know how to communicate a block back to the original board creator block. Thank you!

 

Edit: If anyone could give any advice on this it would be extremely helpful. Thank you!!!

Edited by sun-toast
Posted

urblock.getStateForPlacement or getDefualtState (you can still mess around with it) , and in your block class override hasTileEntity and return an instance of your custom te in createTileEntity.

You can save the position of the master, and use world.getTileEntity to get the master te.

Posted (edited)

This is nostalgic... Reminded me of that time back in middle school where we were asked to make a chess game in Java as a class assignment.

 

Back on topic. If you really want to reference the chess controller from every single chess piece, then I guess you could make a tile entity for each of them (or even make the chess pieces into entities, which is something I would do since you can create the animation of chess pieces sliding across the board). From that point on, just send all interactions on the chess pieces to the chess controller and let it handle the logic. Note that the chess piece should only store the BlockPos of the chess controller, and fetch the actual tile entity of it when it is actually needed.

 

On a side note, I think that with the new way block properties are handled after the flattening, it is possible to store the chess controller's BlockPos as a property instead of creating a tile entity for it. Not sure if that is a good idea from the design perspective though.

Edited by DavidM

Some tips:

Spoiler

Modder Support:

Spoiler

1. Do not follow tutorials on YouTube, especially TechnoVision (previously called Loremaster) and HarryTalks, due to their promotion of bad practice and usage of outdated code.

2. Always post your code.

3. Never copy and paste code. You won't learn anything from doing that.

4. 

Quote

Programming via Eclipse's hotfixes will get you nowhere

5. Learn to use your IDE, especially the debugger.

6.

Quote

The "picture that's worth 1000 words" only works if there's an obvious problem or a freehand red circle around it.

Support & Bug Reports:

Spoiler

1. Read the EAQ before asking for help. Remember to provide the appropriate log(s).

2. Versions below 1.11 are no longer supported due to their age. Update to a modern version of Minecraft to receive support.

 

 

Posted (edited)

Howdy

Quote

However, I cannot find out how to bring the chess pieces I made into the world. I know you do worldln.setBlockState() but I can't find out how to access the block i created and set its properties as a tile entity.

Your chess piece is a block with tileEntity?

Your master knows the location of each chess piece, so the basic algorithm is

1) Master places the chess piece at [x,y,z] using setBlockState

2) Master then retrieves the tileentity at [x,y,z] by asking the world for it (world.getTileEntity()) and casting it to the known entity type

3) Master sets the tileentity properties (I imagine - telling each slave what type of piece it is, as well as the [x,y,z] of the master) by calling the appropriate method in the tileentity.

 

Vanilla uses late initialisation for TileEntities anyway via read (from NBT) so constructing an empty TileEntity isn't a problem

 

-TGG

 

 

 

Edited by TheGreyGhost
Posted
3 hours ago, DavidM said:

On a side note, I think that with the new way block properties are handled after the flattening, it is possible to store the chess controller's BlockPos as a property instead of creating a tile entity for it. Not sure if that is a good idea from the design perspective though.

BTW block properties don't work like that; each block still has a blockstate for every possible combination of the properties that you attach to it, it just assigns a unique integer to each blockstate combination behind the scenes.

 

So for example - a block with a FACING (four directions), a POWERED (on or off), and a SPEED (slow, medium, fast, ludicrous) would have 4*2*4 = 32 different combinations.  If you tried to store a BlockPos it would try to make X * Y * Z combinations i.e. 2^32 * 256 * 2^32. 

 

But you could for sure make each space on the chess board into a chess piece using blockstates (no tileentities) and have the master control the blockstate at each chess board location.  If you don't need animated figures then that's quite a bit simpler than using TileEntity and TileEntityRenderer

 

 

  • Like 1

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.