Jump to content

Does anyone know how to solve this?


Kittzuya

Recommended Posts

hi, a few days ago, try changing the version of my minecraft from 1.12.1 to 1.12.2 of course with forge, all right, the game opens and everything is perfect but when entering any world it is one that had already created or one that I just created, just when the first frame appears, the game closes. I leave the crash report that comes out after the game closes, if you know how to fix it, tell me

 

Crash report: 

---- Minecraft Crash Report ----

WARNING: coremods are present:
Contact their authors BEFORE contacting forge

// Hey, that tickles! Hehehe!

Time: 2/7/19 3:00 AM
Description: Exception ticking world

java.lang.NoSuchMethodError: net.minecraft.entity.EntityLiving$SpawnPlacementType.canSpawnAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    at net.minecraft.world.WorldEntitySpawner.func_180267_a(WorldEntitySpawner.java:226)
    at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:135)
    at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:745)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
    at net.minecraft.world.WorldEntitySpawner.func_180267_a(WorldEntitySpawner.java:226)
    at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:135)
    at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)

-- Affected level --
Details:
    Level name: test
    All players: 1 total; [EntityPlayerMP['Kittzuya'/31, l='test', x=1565.50, y=4.00, z=582.50]]
    Chunk stats: ServerChunkCache: 1349 Drop: 0
    Level seed: -8843168077153167825
    Level generator: ID 01 - flat, ver 0. Features enabled: true
    Level generator options: 
    Level spawn location: World: (1561,4,586), Chunk: (at 9,0,10 in 97,36; contains blocks 1552,0,576 to 1567,255,591), Region: (3,1; contains chunks 96,32 to 127,63, blocks 1536,0,512 to 2047,255,1023)
    Level time: 33 game time, 33 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 112289 (now: false), thunder time: 107458 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:745)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1064399592 bytes (1015 MB) / 2013265920 bytes (1920 MB) up to 3221225472 bytes (3072 MB)
    JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx3G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
    FML: MCP 9.42 Powered by Forge 14.23.5.2811 Optifine OptiFine_1.12.1_HD_U_C5 30 mods loaded, 30 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State  | ID                   | Version       | Source                                            | Signature                                |
    |:------ |:-------------------- |:------------- |:------------------------------------------------- |:---------------------------------------- |
    | LCHIJA | minecraft            | 1.12.2        | minecraft.jar                                     | None                                     |
    | LCHIJA | mcp                  | 9.42          | minecraft.jar                                     | None                                     |
    | LCHIJA | FML                  | 8.0.99.99     | forge-1.12.2-14.23.5.2811.jar                     | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCHIJA | forge                | 14.23.5.2811  | forge-1.12.2-14.23.5.2811.jar                     | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCHIJA | movillages           | 1.5.4         | [1.12]MoVillages-1.5.4.jar                        | None                                     |
    | LCHIJA | jei                  | 4.7.11.102    | jei_1.12.2-4.7.11.102 (1).jar                     | None                                     |
    | LCHIJA | abyssalcraft         | 1.9.4-pre-4   | AbyssalCraft-1.12-1.9.4-pre-4.jar                 | None                                     |
    | LCHIJA | appleskin            | 1.0.9         | AppleSkin-mc1.12-1.0.9.jar                        | None                                     |
    | LCHIJA | appliedenergistics2  | rv5-alpha-7   | appliedenergistics2-rv5-alpha-7.jar               | None                                     |
    | LCHIJA | bibliocraft          | 2.4.4         | BiblioCraft[v2.4.4][MC1.12.2].jar                 | None                                     |
    | LCHIJA | biomesoplenty        | 7.0.0.2291    | BiomesOPlenty-1.12-7.0.0.2291-universal.jar       | None                                     |
    | LCHIJA | redstoneflux         | 2.0.2         | RedstoneFlux-1.12-2.0.2.3-universal.jar           | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | LCHIJA | cofhcore             | 4.3.6         | CoFHCore-1.12-4.3.6.14-universal (1).jar          | None                                     |
    | LCHIJA | cofhworld            | 1.0.1         | CoFHWorld-1.12-1.0.1.8-universal.jar              | None                                     |
    | LCHIJA | dldungeonsjbg        | 1.12.2        | DoomlikeDungeons-1.12.2-MC1.12.2.jar              | None                                     |
    | LCHIJA | mocreatures          | 12.0.5        | DrZharks+MoCreatures+Mod-12.0.5.jar               | None                                     |
    | LCHIJA | waila                | 1.8.25        | Hwyla-1.8.25-B40_1.12.jar                         | None                                     |
    | LCHIJA | journeymap           | 1.12.1-5.5.2  | journeymap-1.12.1-5.5.2 (1).jar                   | None                                     |
    | LCHIJA | mantle               | 1.12-1.3.1.18 | Mantle-1.12-1.3.1.18.jar                          | None                                     |
    | LCHIJA | mobends              | 0.24          | mobends-0.24_for_MC-1.12.jar                      | None                                     |
    | LCHIJA | natura               | 1.12-4.3.0.23 | natura-1.12-4.3.0.23.jar                          | None                                     |
    | LCHIJA | nex                  | 2.1.14.15     | NetherEx-1.12-2.1.14.15.jar                       | None                                     |
    | LCHIJA | oreexcavation        | 1.4.105       | OreExcavation-1.4.105.jar                         | None                                     |
    | LCHIJA | additionalstructures | 2.0.1         | Rex's-Additional-Structures-1.12.x+-(v.2.1.0).jar | None                                     |
    | LCHIJA | ruins                | 16.9          | Ruins-1.12.1.jar                                  | None                                     |
    | LCHIJA | sparkshammers        | 1.6.6.2       | sparkshammers-1.12-1.6.6.2.jar                    | None                                     |
    | LCHIJA | spectrite            | 1.6.3         | spectrite-1.6.3.jar                               | 00119cfc089819bbcd2f9166a50c7f3df88ded78 |
    | LCHIJA | tconstruct           | 1.12-2.8.1.49 | TConstruct-1.12-2.8.1.49.jar                      | None                                     |
    | LCHIJA | torohealthmod        | 1.12.1-11     | torohealth-1.12.1-11.jar                          | None                                     |
    | LCHIJA | waystones            | 4.0.15        | Waystones_1.12.1-4.0.15.jar                       | None                                     |

    Loaded coremods (and transformers): 
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    AE2 Version: alpha rv5-alpha-7 for Forge 14.22.1.2478
    Pulsar/natura loaded Pulses: 
        - NaturaCommons (Enabled/Forced)
        - NaturaOverworld (Enabled/Not Forced)
        - NaturaNether (Enabled/Not Forced)
        - NaturaDecorative (Enabled/Not Forced)
        - NaturaTools (Enabled/Not Forced)
        - NaturaEntities (Enabled/Not Forced)
        - NaturaOredict (Enabled/Forced)
        - NaturaWorld (Enabled/Not Forced)

    Pulsar/tconstruct loaded Pulses: 
        - TinkerCommons (Enabled/Forced)
        - TinkerWorld (Enabled/Not Forced)
        - TinkerTools (Enabled/Not Forced)
        - TinkerHarvestTools (Enabled/Forced)
        - TinkerMeleeWeapons (Enabled/Forced)
        - TinkerRangedWeapons (Enabled/Forced)
        - TinkerModifiers (Enabled/Forced)
        - TinkerSmeltery (Enabled/Not Forced)
        - TinkerGadgets (Enabled/Not Forced)
        - TinkerOredict (Enabled/Forced)
        - TinkerIntegration (Enabled/Forced)
        - TinkerFluids (Enabled/Forced)
        - TinkerMaterials (Enabled/Forced)
        - TinkerModelRegister (Enabled/Forced)
        - wailaIntegration (Enabled/Not Forced)

    AE2 Integration: IC2:OFF, RC:OFF, MFR:OFF, Waila:ON, InvTweaks:OFF, JEI:ON, Mekanism:OFF, OpenComputers:OFF, THE_ONE_PROBE:OFF, TESLA:OFF
    Profiler Position: N/A (disabled)
    Player Count: 1 / 8; [EntityPlayerMP['Kittzuya'/31, l='test', x=1565.50, y=4.00, z=582.50]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    OptiFine Version: OptiFine_1.12.1_HD_U_C5
    Render Distance Chunks: 6
    Mipmaps: 0
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.6.0 NVIDIA 398.82
    OpenGlRenderer: GeForce 920M/PCIe/SSE2
    OpenGlVendor: NVIDIA Corporation
    CpuCount: 2

Link to comment
Share on other sites

9 hours ago, diesieben07 said:

Optifine versions are only designed to work with a specific Forge version (stated in their changelog). You are even trying to use Optifine for a wrong Minecraft version, this is not going to work.

 

Hello, as I indicated change the optifine to the minecraft version but still presisting the error, I will leave the crash report that I get now to see if you can help me, thank you very much for answering

 

---- Minecraft Crash Report ----

WARNING: coremods are present:
Contact their authors BEFORE contacting forge

// There are four lights!

Time: 2/7/19 3:19 PM
Description: Exception ticking world

java.lang.NoSuchMethodError: net.minecraft.entity.EntityLiving$SpawnPlacementType.canSpawnAt(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    at net.minecraft.world.WorldEntitySpawner.func_180267_a(WorldEntitySpawner.java:226)
    at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:135)
    at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
    at WorldServerOF.func_72835_b(WorldServerOF.java:37)
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:239)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:745)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
    at net.minecraft.world.WorldEntitySpawner.func_180267_a(WorldEntitySpawner.java:226)
    at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:135)
    at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
    at WorldServerOF.func_72835_b(WorldServerOF.java:37)

-- Affected level --
Details:
    Level name: N World
    All players: 1 total; [EntityPlayerMP['Kittzuya'/227, l='N World', x=582.03, y=53.00, z=866.34]]
    Chunk stats: ServerChunkCache: 339 Drop: 0
    Level seed: 7723703591015341095
    Level generator: ID 00 - default, ver 1. Features enabled: true
    Level generator options: 
    Level spawn location: World: (76,64,256), Chunk: (at 12,4,0 in 4,16; contains blocks 64,0,256 to 79,255,271), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 1441694 game time, 1839197 day time
    Level dimension: 0
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 58625 (now: false), thunder time: 53667 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Stacktrace:
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:239)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
    at java.lang.Thread.run(Thread.java:745)

-- System Details --
Details:
    Minecraft Version: 1.12.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_51, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 661136408 bytes (630 MB) / 1811939328 bytes (1728 MB) up to 2147483648 bytes (2048 MB)
    JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94
    FML: MCP 9.42 Powered by Forge 14.23.5.2811 Optifine OptiFine_1.12.2_HD_U_C5 28 mods loaded, 28 mods active
    States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored

    | State  | ID                   | Version       | Source                                            | Signature                                |
    |:------ |:-------------------- |:------------- |:------------------------------------------------- |:---------------------------------------- |
    | LCHIJA | minecraft            | 1.12.2        | minecraft.jar                                     | None                                     |
    | LCHIJA | mcp                  | 9.42          | minecraft.jar                                     | None                                     |
    | LCHIJA | FML                  | 8.0.99.99     | forge-1.12.2-14.23.5.2811.jar                     | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCHIJA | forge                | 14.23.5.2811  | forge-1.12.2-14.23.5.2811.jar                     | e3c3d50c7c986df74c645c0ac54639741c90a557 |
    | LCHIJA | movillages           | 1.5.4         | [1.12]MoVillages-1.5.4.jar                        | None                                     |
    | LCHIJA | jei                  | 4.7.11.102    | jei_1.12.2-4.7.11.102 (1).jar                     | None                                     |
    | LCHIJA | abyssalcraft         | 1.9.4-pre-4   | AbyssalCraft-1.12-1.9.4-pre-4.jar                 | None                                     |
    | LCHIJA | appleskin            | 1.0.9         | AppleSkin-mc1.12-1.0.9.jar                        | None                                     |
    | LCHIJA | appliedenergistics2  | rv5-alpha-7   | appliedenergistics2-rv5-alpha-7.jar               | None                                     |
    | LCHIJA | bibliocraft          | 2.4.4         | BiblioCraft[v2.4.4][MC1.12.2].jar                 | None                                     |
    | LCHIJA | biomesoplenty        | 7.0.0.2291    | BiomesOPlenty-1.12-7.0.0.2291-universal.jar       | None                                     |
    | LCHIJA | redstoneflux         | 2.0.2         | RedstoneFlux-1.12-2.0.2.3-universal.jar           | 8a6abf2cb9e141b866580d369ba6548732eff25f |
    | LCHIJA | cofhcore             | 4.3.6         | CoFHCore-1.12-4.3.6.14-universal (1).jar          | None                                     |
    | LCHIJA | cofhworld            | 1.0.1         | CoFHWorld-1.12-1.0.1.8-universal.jar              | None                                     |
    | LCHIJA | dldungeonsjbg        | 1.12.2        | DoomlikeDungeons-1.12.2-MC1.12.2.jar              | None                                     |
    | LCHIJA | waila                | 1.8.25        | Hwyla-1.8.25-B40_1.12.jar                         | None                                     |
    | LCHIJA | journeymap           | 1.12.1-5.5.2  | journeymap-1.12.1-5.5.2 (1).jar                   | None                                     |
    | LCHIJA | mantle               | 1.12-1.3.1.18 | Mantle-1.12-1.3.1.18.jar                          | None                                     |
    | LCHIJA | natura               | 1.12-4.3.0.23 | natura-1.12-4.3.0.23.jar                          | None                                     |
    | LCHIJA | nex                  | 2.1.14.15     | NetherEx-1.12-2.1.14.15.jar                       | None                                     |
    | LCHIJA | oreexcavation        | 1.4.105       | OreExcavation-1.4.105.jar                         | None                                     |
    | LCHIJA | additionalstructures | 2.0.1         | Rex's-Additional-Structures-1.12.x+-(v.2.1.0).jar | None                                     |
    | LCHIJA | ruins                | 16.9          | Ruins-1.12.1.jar                                  | None                                     |
    | LCHIJA | sparkshammers        | 1.6.6.2       | sparkshammers-1.12-1.6.6.2.jar                    | None                                     |
    | LCHIJA | spectrite            | 1.6.3         | spectrite-1.6.3.jar                               | 00119cfc089819bbcd2f9166a50c7f3df88ded78 |
    | LCHIJA | tconstruct           | 1.12-2.8.1.49 | TConstruct-1.12-2.8.1.49.jar                      | None                                     |
    | LCHIJA | torohealthmod        | 1.12.1-11     | torohealth-1.12.1-11.jar                          | None                                     |
    | LCHIJA | waystones            | 4.0.15        | Waystones_1.12.1-4.0.15.jar                       | None                                     |

    Loaded coremods (and transformers): 
    GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
    AE2 Version: alpha rv5-alpha-7 for Forge 14.22.1.2478
    Pulsar/natura loaded Pulses: 
        - NaturaCommons (Enabled/Forced)
        - NaturaOverworld (Enabled/Not Forced)
        - NaturaNether (Enabled/Not Forced)
        - NaturaDecorative (Enabled/Not Forced)
        - NaturaTools (Enabled/Not Forced)
        - NaturaEntities (Enabled/Not Forced)
        - NaturaOredict (Enabled/Forced)
        - NaturaWorld (Enabled/Not Forced)

    Pulsar/tconstruct loaded Pulses: 
        - TinkerCommons (Enabled/Forced)
        - TinkerWorld (Enabled/Not Forced)
        - TinkerTools (Enabled/Not Forced)
        - TinkerHarvestTools (Enabled/Forced)
        - TinkerMeleeWeapons (Enabled/Forced)
        - TinkerRangedWeapons (Enabled/Forced)
        - TinkerModifiers (Enabled/Forced)
        - TinkerSmeltery (Enabled/Not Forced)
        - TinkerGadgets (Enabled/Not Forced)
        - TinkerOredict (Enabled/Forced)
        - TinkerIntegration (Enabled/Forced)
        - TinkerFluids (Enabled/Forced)
        - TinkerMaterials (Enabled/Forced)
        - TinkerModelRegister (Enabled/Forced)
        - wailaIntegration (Enabled/Not Forced)

    AE2 Integration: IC2:OFF, RC:OFF, MFR:OFF, Waila:ON, InvTweaks:OFF, JEI:ON, Mekanism:OFF, OpenComputers:OFF, THE_ONE_PROBE:OFF, TESLA:OFF
    Profiler Position: N/A (disabled)
    Player Count: 1 / 8; [EntityPlayerMP['Kittzuya'/227, l='N World', x=582.03, y=53.00, z=866.34]]
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'fml,forge'
    OptiFine Version: OptiFine_1.12.2_HD_U_C5
    Render Distance Chunks: 4
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.6.0 NVIDIA 418.81
    OpenGlRenderer: GeForce 920M/PCIe/SSE2
    OpenGlVendor: NVIDIA Corporation
    CpuCount: 2

Link to comment
Share on other sites

31 minutes ago, diesieben07 said:

Your version of Optifine is still very outdated and not compatible with your Forge version.

hello, I tried to play without optifine to see if that was the problem, but still not letting me play, so I doubt the problem is that

Link to comment
Share on other sites

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Wait guys, I still don't don't understand... I shall send my code -- Define the function to decrease hunger local function decreaseHunger(player)     local currentHunger = player.getHunger()          -- Check if hunger is not already zero     if currentHunger > 0 then         player.setHunger(currentHunger - 1)     end end -- Register event to decrease hunger over time script.registerEvent(EntityPlayer, function(player)     while true do         -- Decrease hunger every few seconds         decreaseHunger(player)         script.sleep(1000) -- Sleep for 1 second     end end)     Any help appriecated. It's been a while since I learnt Javascript or whatever Minecraft is made with... ... ... ... Nicknotname Hungerinpeaceful xx
    • good days  i get this error: java.lang.ClassCastException: class net.minecraft.client.player.LocalPlayer cannot be cast to class net.minecraftforge.common.extensions.IForgeServerPlayer (net.minecraft.client.player.LocalPlayer is in module minecraft@1.20.4 of loader 'TRANSFORMER' @3e8b3b79; net.minecraftforge.common.extensions.IForgeServerPlayer is in module forge@49.0.26 of loader 'TRANSFORMER' @3e8b3b79)     at mercmod.blocks.classes.panel_whit_entity_inside.use(panel_whit_entity_inside.java:576) ~[main/:?] {re:classloading}     at net.minecraft.world.level.block.state.BlockBehaviour$BlockStateBase.use(BlockBehaviour.java:826) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading}     at net.minecraft.client.multiplayer.MultiPlayerGameMode.performUseItemOn(MultiPlayerGameMode.java:324) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.multiplayer.MultiPlayerGameMode.lambda$useItemOn$4(MultiPlayerGameMode.java:292) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.multiplayer.MultiPlayerGameMode.startPrediction(MultiPlayerGameMode.java:251) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.multiplayer.MultiPlayerGameMode.useItemOn(MultiPlayerGameMode.java:291) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.startUseItem(Minecraft.java:1799) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.handleKeybinds(Minecraft.java:2083) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.tick(Minecraft.java:1902) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.runTick(Minecraft.java:1216) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.Minecraft.run(Minecraft.java:801) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A}     at net.minecraft.client.main.Main.main(Main.java:234) ~[forge-1.20.4-49.0.26_mapped_official_1.20.4-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} ------------------------------------------------------------------------------------------------------------------   context:  im updating the briefcase from mi mod an i need to make a gui whit this image that gonna be launched from a block and from a item soo im using kapenjoe tutorials  ---------------------------------------------------------------------------------------- The problem is that tutorial is for 1.20.1 and im using 1.20.4 and i really dont get how to call and open the gui from the block nor from the item i made this based on post i made short ago everything seems find but when right click the block to open the gui it crash the game  @Override public InteractionResult use(BlockState blkstate, Level warudo, BlockPos pos, Player pe, InteractionHand hand, BlockHitResult hitresult) {     if(warudo.isClientSide()){         BlockEntity blkentity = warudo.getBlockEntity(pos);         if(blkentity instanceof Panel_BlockEntity){             //   ↓↓↓  open the menu from the block              IForgeServerPlayer ifpe = (IForgeServerPlayer)pe; //<--- this is wrong  "class net.minecraft.client.player.LocalPlayer cannot be cast to class net.minecraftforge.common.extensions.IForgeServerPlayer"             ifpe.openMenu( (Panel_BlockEntity) blkentity, pos ); //<-- i need an example of how open a gui in 1.20.4         }     } return InteractionResult.sidedSuccess(warudo.isClientSide()); } Theres nothing highlighted in red in the code like everything where right an possible but dont works  ####################################################################################################### i need to see an example, just the piece of code for the use() method of the block whit the block entity for 1.20.4  and the same  but for the item     @Override     public @NotNull InteractionResultHolder<ItemStack> use(@NotNull Level warudo, @NotNull Player pe, @NotNull InteractionHand interactionHand)     {         if (!warudo.isClientSide())         {             ItemStack heldItem = pe.getItemInHand(interactionHand);                          if (heldItem.getCapability(ForgeCapabilities.ITEM_HANDLER).isPresent())             {                 //   ↓↓↓  open the menu from the item                 NetworkHooks.openScreen((ServerPlayer) pe, this);             }         }         return super.use(warudo, pe, interactionHand);     }   thanks for your attention           
    • It depends on the data you want to save, but generally speaking you should use some custom Player Capabilities, attach to the Player and use them to store/retrieve any kind of data you want. You can find how to make them work for 1.20.x in the documentation here: https://docs.minecraftforge.net/en/latest/datastorage/capabilities/
  • Topics

×
×
  • Create New...

Important Information

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