Jump to content

Recommended Posts

Posted

This is the error message that I am receiving but I am not quite sure how to pin point the problem of my game. Is one of my mods messing with my world generation?  I see that a lot of them say (Incompatible) below. Thank you for any help you can provide!

 

---- Minecraft Crash Report ----
// Surprise! Haha. Well, this is awkward.

Time: 6/29/20 1:04 PM
Description: Exception generating new chunk

java.lang.NullPointerException: Exception generating new chunk
    at net.minecraft.world.gen.ChunkGenerator.func_222528_a(ChunkGenerator.java:186) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.chunk.ChunkStatus.lambda$static$3(ChunkStatus.java:52) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.chunk.ChunkStatus$$Lambda$1571/807125353.doWork(Unknown Source) ~[?:?] {}
    at net.minecraft.world.chunk.ChunkStatus$ISelectiveWorker.doWork(ChunkStatus.java:237) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.ChunkStatus.func_223198_a(ChunkStatus.java:195) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:518) ~[?:?] {re:classloading}
    at net.minecraft.world.server.ChunkManager$$Lambda$6629/14002123.apply(Unknown Source) ~[?:?] {}
    at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-2.0.24.jar:?] {}
    at net.minecraft.world.server.ChunkManager.lambda$func_223156_b$20(ChunkManager.java:516) ~[?:?] {re:classloading}
    at net.minecraft.world.server.ChunkManager$$Lambda$6626/1703831772.apply(Unknown Source) ~[?:?] {}
    at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952) ~[?:1.8.0_51] {}
    at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926) ~[?:1.8.0_51] {}
    at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442) ~[?:1.8.0_51] {}
    at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter.func_219083_b(SourceFile:58) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter$$Lambda$6570/234132235.run(Unknown Source) ~[?:?] {}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:83) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:123) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:91) ~[?:?] {re:classloading}
    at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) ~[?:1.8.0_51] {}
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_51] {}
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_51] {}
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1689) ~[?:1.8.0_51] {}
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_51] {}


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.gen.ChunkGenerator.func_222528_a(ChunkGenerator.java:186)
    at net.minecraft.world.chunk.ChunkStatus.lambda$static$3(ChunkStatus.java:52)
    at net.minecraft.world.chunk.ChunkStatus$$Lambda$1571/807125353.doWork(Unknown Source)
    at net.minecraft.world.chunk.ChunkStatus$ISelectiveWorker.doWork(ChunkStatus.java:237)
    at net.minecraft.world.chunk.ChunkStatus.func_223198_a(ChunkStatus.java:195)

-- Chunk to be generated --
Details:
    Location: -22,-44
    Position hash: -184683593750
    Generator: net.minecraft.world.gen.OverworldChunkGenerator@19b91fa2
Stacktrace:
    at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:518)
    at net.minecraft.world.server.ChunkManager$$Lambda$6629/14002123.apply(Unknown Source)
    at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
    at net.minecraft.world.server.ChunkManager.lambda$func_223156_b$20(ChunkManager.java:516)
    at net.minecraft.world.server.ChunkManager$$Lambda$6626/1703831772.apply(Unknown Source)
    at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
    at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
    at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
    at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter.func_219083_b(SourceFile:58)
    at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter$$Lambda$6570/234132235.run(Unknown Source)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:83)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:123)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:91)

-- Affected level --
Details:
    All players: 1 total; [ServerPlayerEntity['Azteca09'/104, l='Mundo de Cabron', x=-448.33, y=64.00, z=-593.91]]
    Chunk stats: ServerChunkCache: 3411
    Level dimension: DimensionType{minecraft:overworld}
    Level name: Mundo de Cabron
    Level seed: 1884151853366724329
    Level generator: ID 00 - default, ver 1. Features enabled: true
    Level generator options: {}
    Level spawn location: World: (224,64,-256), Chunk: (at 0,4,0 in 14,-16; contains blocks 224,0,-256 to 239,255,-241), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1)
    Level time: 1472296 game time, 1803757 day time
    Known server brands: forge
    Level was modded: true
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 70100 (now: false), thunder time: 10748 (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:852)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:784)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:114)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:637)
    at java.lang.Thread.run(Thread.java:745)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.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: 1028049768 bytes (980 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)
    CPUs: 4
    JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 5.1.0+69+master.79f13f7
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /eventbus-2.2.0-service.jar eventbus PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-2.1.1-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar runtimedistcleaner PLUGINSERVICE 
        /forge-1.15.2-31.2.0.jar fml TRANSFORMATIONSERVICE 
    FML: 31.2
    Forge: net.minecraftforge:31.2.0
    FML Language Providers: 
        javafml@31.2
        minecraft@1
        kotlinfml@1.5.2
    Mod List: 
        forge-1.15.2-31.2.0-client.jar Minecraft {minecraft@1.15.2 DONE}
        decorative_blocks-6d.jar Decorative Blocks {decorative_blocks@1.6 DONE}
        champions-FORGE-1.15.2-2.0-beta3.jar Champions {champions@FORGE-1.15.2-2.0-beta3 DONE}
        AmbientSounds_v3.0.20_mc1.15.2.jar Ambient Sounds {ambientsounds@3.0.3 DONE}
        roughmobsrevamped-1.15.2-4.1.2.jar Rough Mobs Revamped {roughmobsrevamped@version DONE}
        guardvillagers-1.15.2-1.0.7.jar Guard Villagers {guardvillagers@1.0.7 DONE}
        Hwyla-forge-1.10.8-B72_1.15.2.jar Waila {waila@version DONE}
        jei-1.15.2-6.0.0.4.jar Just Enough Items {jei@6.0.0.4 DONE}
        CevlsMagics-1.0.jar Cevl's Magics {cevls_magics@1.0 DONE}
        leveluphp-mc1.15.2-forge-5.1.2 (1).jar Level Up HP {leveluphp@5.1.2 DONE}
        Abnormals-Core-1.15.2-1.0.6.jar Abnormals Core {abnormals_core@1.0.6 DONE}
        xercamod-1.15.2-2.5.jar Xerca Mod {xercamod@1.15.2-2.5 DONE}
        forge-1.15.2-31.2.0-universal.jar Forge {forge@31.2.0 DONE}
        Upgrade-Aquatic-1.15.2-v1.6.1.jar Upgrade Aquatic {upgrade_aquatic@1.6.1 DONE}
        Savage-and-Ravage-1.15.2-1.1.3.jar Savage & Ravage {savageandravage@1.1.3 DONE}
        create-mc1.15.2_v0.2.4d.jar Create {create@mc1.15.2_v0.2.4d DONE}
        BetterCaves-1.15.2-1.0.jar YUNG's Better Caves {bettercaves@1.15.2-1.0 DONE}
        Waystones_1.15.2-6.0.1.jar Waystones {waystones@6.0.1 DONE}
        enchantedwolves-1.4.2.jar Enchanted Wolves {enchantedwolves@1.4.2 DONE}
        infernalmobs-1.15.2.1.jar Infernal Mobs {infernalmobs@1.15.2.1 DONE}
        SullysMod-V0.7FIX.jar Sully's Mod {sullys_mod@V0.7 DONE}
        RottenCreatures-1.15.2-0.9.7.jar Rotten Creatures {rotten_creatures@0.9.7 DONE}
    Player Count: 1 / 8; [ServerPlayerEntity['Azteca09'/104, l='Mundo de Cabron', x=-448.33, y=64.00, z=-593.91]]
    Data Packs: mod:waystones (incompatible), mod:waila (incompatible), mod:leveluphp, mod:cevls_magics (incompatible), mod:infernalmobs (incompatible), mod:champions, mod:xercamod (incompatible), mod:sullys_mod, mod:enchantedwolves, mod:ambientsounds (incompatible), mod:upgrade_aquatic (incompatible), mod:jei (incompatible), vanilla, mod:decorative_blocks, mod:roughmobsrevamped (incompatible), mod:guardvillagers (incompatible), mod:abnormals_core, mod:forge (incompatible), mod:savageandravage, mod:create, mod:bettercaves (incompatible), mod:rotten_creatures
    Type: Integrated Server (map_client.txt)

    Is Modded: Definitely; Client brand changed to 'forge'

Posted
  On 6/29/2020 at 8:13 PM, GranAzteca said:

   Data Packs: mod:waystones (incompatible), mod:waila (incompatible), mod:leveluphp, mod:cevls_magics (incompatible), mod:infernalmobs (incompatible), mod:champions, mod:xercamod (incompatible), mod:sullys_mod, mod:enchantedwolves, mod:ambientsounds (incompatible), mod:upgrade_aquatic (incompatible), mod:jei (incompatible), vanilla, mod:decorative_blocks, mod:roughmobsrevamped (incompatible), mod:guardvillagers (incompatible), mod:abnormals_core, mod:forge (incompatible), mod:savageandravage, mod:create, mod:bettercaves (incompatible), mod:rotten_creatures

Expand  

Correct me if I'm wrong, but based off this. It appears that the data packs build into the mods/ones that you installed are incompatible with your Minecraft and/or Forge version. Please check to make sure that mods and Forge use the same version. If not, try 

  1. Making a new world
  2. Disabling one mod at a to see if that mod is the problem,  you can disable mods by added(.disabled) to the end of the mods name

 

  • Like 1
  • 1 year later...
Posted

how do you fix this problem 

---- Minecraft Crash Report ----
// Hey, that tickles! Hehehe!

Time: 1/31/22 1:35 PM
Description: Exception generating new chunk

java.lang.NullPointerException: Exception generating new chunk
    at net.minecraft.world.gen.ChunkGenerator.func_222528_a(ChunkGenerator.java:186) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.ChunkStatus.lambda$static$3(ChunkStatus.java:52) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.chunk.ChunkStatus$ISelectiveWorker.doWork(ChunkStatus.java:237) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.ChunkStatus.func_223198_a(ChunkStatus.java:195) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:518) ~[?:?] {re:classloading}
    at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-2.0.24.jar:?] {re:classloading,re:classloading}
    at net.minecraft.world.server.ChunkManager.lambda$func_223156_b$20(ChunkManager.java:516) ~[?:?] {re:classloading}
    at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952) ~[?:1.8.0_74] {}
    at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926) ~[?:1.8.0_74] {}
    at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442) ~[?:1.8.0_74] {}
    at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter.func_219083_b(SourceFile:58) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:83) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:123) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:91) ~[?:?] {re:classloading}
    at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402) ~[?:1.8.0_74] {}
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[?:1.8.0_74] {}
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[?:1.8.0_74] {}
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[?:1.8.0_74] {}
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[?:1.8.0_74] {}


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.gen.ChunkGenerator.func_222528_a(ChunkGenerator.java:186)
    at net.minecraft.world.chunk.ChunkStatus.lambda$static$3(ChunkStatus.java:52)
    at net.minecraft.world.chunk.ChunkStatus$ISelectiveWorker.doWork(ChunkStatus.java:237)
    at net.minecraft.world.chunk.ChunkStatus.func_223198_a(ChunkStatus.java:195)

-- Chunk to be generated --
Details:
    Location: 0,-54
    Position hash: -231928233984
    Generator: net.minecraft.world.gen.OverworldChunkGenerator@4b4eceeb
Stacktrace:
    at net.minecraft.world.server.ChunkManager.lambda$null$18(ChunkManager.java:518)
    at com.mojang.datafixers.util.Either$Left.map(Either.java:38)
    at net.minecraft.world.server.ChunkManager.lambda$func_223156_b$20(ChunkManager.java:516)
    at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:952)
    at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
    at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:442)
    at net.minecraft.world.chunk.ChunkTaskPriorityQueueSorter.func_219083_b(SourceFile:58)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213148_e(SourceFile:83)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.func_213145_a(SourceFile:123)
    at net.minecraft.util.concurrent.DelegatedTaskExecutor.run(SourceFile:91)

-- Affected level --
Details:
    All players: 1 total; [ServerPlayerEntity['Jordan_0'/109, l='777', x=-181.30, y=74.00, z=-692.87]]
    Chunk stats: ServerChunkCache: 3388
    Level dimension: DimensionType{minecraft:overworld}
    Level name: 777
    Level seed: 2548979297328099264
    Level generator: ID 00 - default, ver 1. Features enabled: true
    Level generator options: {}
    Level spawn location: World: (-224,68,-240), Chunk: (at 0,4,0 in -14,-15; contains blocks -224,0,-240 to -209,255,-225), Region: (-1,-1; contains chunks -32,-32 to -1,-1, blocks -512,0,-512 to -1,255,-1)
    Level time: 293972 game time, 306179 day time
    Known server brands: forge
    Level was modded: true
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 59936 (now: false), thunder time: 51762 (now: false)
    Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:852)
    at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:784)
    at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:114)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:637)
    at java.lang.Thread.run(Thread.java:745)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Mac OS X (x86_64) version 10.15.5
    Java Version: 1.8.0_74, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1081478840 bytes (1031 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)
    CPUs: 8
    JVM Flags: 8 total; -Xss1M -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 5.1.2+70+master.2845bb9
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /mixin-0.8.2.jar mixin PLUGINSERVICE 
        /eventbus-2.2.1-service.jar eventbus PLUGINSERVICE 
        /forge-1.15.2-31.2.57.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.57.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-2.1.3-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.15.2-31.2.57.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.57.jar runtimedistcleaner PLUGINSERVICE 
        /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE 
        /forge-1.15.2-31.2.57.jar fml TRANSFORMATIONSERVICE 
    FML: 31.2
    Forge: net.minecraftforge:31.2.57
    FML Language Providers: 
        javafml@31.2
        minecraft@1
    Mod List: 
        forge-1.15.2-31.2.57-client.jar Minecraft {minecraft@1.15.2 DONE}
        mowziesmobs-1.5.15.jar Mowzie's Mobs {mowziesmobs@1.5.15 DONE}
        forge-1.15.2-31.2.57-universal.jar Forge {forge@31.2.57 DONE}
        torohealth-1.15.2-forge-1.jar ToroHealth {torohealth@NONE DONE}
        Reliquary-1.15.2-1.3.4.1018.jar Reliquary {xreliquary@1.15.2-1.3.4.1018 DONE}
        mine-mine-no-mi-1.15.2-0.7.2.jar Mine Mine no Mi {mineminenomi@0.7.2 DONE}
        curios-FORGE-1.15.2-2.0.2.7.jar Curios API {curios@FORGE-1.15.2-2.0.2.7 DONE}
        Bountiful+Baubles-1.15.2-0.0.1.jar Bountiful Baubles {bountifulbaubles@NONE DONE}
        jei-1.15.2-6.0.3.16.jar Just Enough Items {jei@6.0.3.16 DONE}
        Artifacts-1.15.2-2.5.3.jar Artifacts {artifacts@1.15.2-2.5.3 DONE}
    Player Count: 1 / 8; [ServerPlayerEntity['Jordan_0'/109, l='777', x=-181.30, y=74.00, z=-692.87]]
    Data Packs: mod:bountifulbaubles (incompatible), mod:mowziesmobs (incompatible), vanilla, mod:forge (incompatible), mod:torohealth, mod:xreliquary (incompatible), mod:mineminenomi (incompatible), mod:curios (incompatible), mod:jei (incompatible), mod:artifacts
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Hi! I'm trying to add my custom models/textures renderer like this: public class PonyPlayerWrapperRenderer extends EntityRenderer<Player> { // wrapper class under my LivingEntityRenderer class implementation private final PonyPlayerRenderer innerRenderer; private final PonyPlayerRenderer innerSlimRenderer; public PonyPlayerWrapperRenderer(final EntityRendererProvider.Context context) { super(context); System.out.println("creating new PonyPlayerWrapperRenderer"); this.innerRenderer = new PonyPlayerRenderer(context, false); this.innerSlimRenderer = new PonyPlayerRenderer(context, true); } @Override public void render(final Player entity, final float yaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource bufferSource, final int packedLight) { System.out.println("PonyPlayerWrapperRenderer render: " + entity.toString()); if (entity instanceof AbstractClientPlayer clientPlayer) { if (clientPlayer.getModelName().contains("slim")) { innerSlimRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } else { innerRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } } } @Override public ResourceLocation getTextureLocation(final Player player) { System.out.println("PonyPlayerWrapperRenderer getTextureLocation"); if (player instanceof AbstractClientPlayer clientPlayer) { return clientPlayer.getSkinTextureLocation(); } System.out.println("player instanceof AbstractClientPlayer is false"); return getDefaultSkin(player.getUUID()); } } public class PonyPlayerRenderer extends LivingEntityRenderer<AbstractClientPlayer, PlayerModel<AbstractClientPlayer>> { private final PlayerModel<AbstractClientPlayer> earthModel; private final PlayerModel<AbstractClientPlayer> pegasusModel; private final PlayerModel<AbstractClientPlayer> unicornModel; public PonyPlayerRenderer(final EntityRendererProvider.Context context, final boolean slim) { super( context, slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)), 0.5f ); System.out.println("creating new PonyPlayerRenderer"); this.earthModel = slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); this.pegasusModel = new PegasusModel(context.bakeLayer(PegasusModel.LAYER_LOCATION)); this.unicornModel = new UnicornModel(context.bakeLayer(UnicornModel.LAYER_LOCATION)); } @Override public void render(final AbstractClientPlayer player, final float entityYaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource buffer, final int packedLight) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); this.model = switch (race) { case PEGASUS -> pegasusModel; case UNICORN -> unicornModel; case EARTH -> earthModel; }; super.render(player, entityYaw, partialTicks, poseStack, buffer, packedLight); } @Override public ResourceLocation getTextureLocation(final AbstractClientPlayer player) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); return switch (race) { case EARTH -> fromNamespaceAndPath(MODID, "textures/entity/earth_pony.png"); case PEGASUS -> fromNamespaceAndPath(MODID, "textures/entity/pegasus.png"); case UNICORN -> fromNamespaceAndPath(MODID, "textures/entity/unicorn.png"); }; } } @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { // mod bus render registration config @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onRegisterRenderers(final EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(EntityType.PLAYER, PonyPlayerWrapperRenderer::new); System.out.println("onRegisterRenderers end"); } } Method onRegisterRenderers() is called and I can see it being logged. But when I enter the world, my PonyWrapperRenderer render() method doesn't ever seem to be called. I also tried to put my renderer to EntityRenderDispatcher's playerRenderers via reflection: @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onClientSetup(final FMLClientSetupEvent event) { event.enqueueWork(() -> { try { final EntityRenderDispatcher dispatcher = Minecraft.getInstance().getEntityRenderDispatcher(); final Field renderersField = getEntityRenderDispatcherField("playerRenderers"); final Field itemInHandRenderer = getEntityRenderDispatcherField("itemInHandRenderer"); @SuppressWarnings("unchecked") final Map<String, EntityRenderer<? extends Player>> playerRenderers = (Map<String, EntityRenderer<? extends Player>>)renderersField.get(dispatcher); final PonyPlayerWrapperRenderer renderer = new PonyPlayerWrapperRenderer( new EntityRendererProvider.Context( dispatcher, Minecraft.getInstance().getItemRenderer(), Minecraft.getInstance().getBlockRenderer(), (ItemInHandRenderer)itemInHandRenderer.get(dispatcher), Minecraft.getInstance().getResourceManager(), Minecraft.getInstance().getEntityModels(), Minecraft.getInstance().font ) ); playerRenderers.put("default", renderer); playerRenderers.put("slim", renderer); System.out.println("Player renderers replaced"); } catch (final Exception e) { throw new RuntimeException("Failed to replace player renderers", e); } }); } private static Field getEntityRenderDispatcherField(final String fieldName) throws NoSuchFieldException { final Field field = EntityRenderDispatcher.class.getDeclaredField(fieldName); field.setAccessible(true); return field; } } But I receive the error before Minecraft Client appears (RuntimeException: Failed to replace player renderers - from ClientRenderers onClientSetup() method - and its cause below): java.lang.IllegalArgumentException: No model for layer anotherlittlepony:earth_pony#main at net.minecraft.client.model.geom.EntityModelSet.bakeLayer(EntityModelSet.java:18) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.EntityRendererProvider$Context.bakeLayer(EntityRendererProvider.java:69) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerRenderer.<init>(PonyPlayerRenderer.java:32) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerWrapperRenderer.<init>(PonyPlayerWrapperRenderer.java:24) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.ClientRenderers.lambda$onClientSetup$0(ClientRenderers.java:79) ~[main/:?] {re:classloading} ... 33 more Problem appears when EntityRendererProvider context tries to bakeLayer with my model layer location: new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); // PonyPlayerRenderer.java:32 public class PonyModel extends PlayerModel<AbstractClientPlayer> { // the model class itself public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation( ResourceLocation.fromNamespaceAndPath(MODID, "earth_pony"), "main" ); public PonyModel(final ModelPart root) { super(root, false); } public static LayerDefinition createBodyLayer() { // some CubeListBuilder stuff for model appearance } } Textures PNGs are placed at: resources/assets/[my mod id]/textures/entity. My forge version is 1.20.1. Would appreciate any help.
    • Well, a bit more information about what you're trying to do would be helpful. e.g. why you're trying to use "INVOKE_ASSIGN" instead of "INVOKE". "INVOKE_ASSIGN" calls your code after the "target" is called and its value is stored, if applicable. "INVOKE" calls your code before the target is called. "target" expects a fully qualified name, as per the SpongePowered docs, if that name is going to be remapped (which it will be if your injecting into Minecraft itself and not another mod). For more information on fully qualified names versus canonical names, see the Java specifications. Here's an example of a working "@At" from my own code that targets the "getClosestsVulnerablePlayerToEntity" call inside a mob's logic: @At(value = "INVOKE_ASSIGN", target = "net.minecraft.world.World.getClosestVulnerablePlayerToEntity(Lnet/minecraft/entity/Entity;D)Lnet/minecraft/entity/player/EntityPlayer;") Hope this helps!
    • Ran it one more time just to check, and there's no errors this time on the log??? Log : https://mclo.gs/LnuaAiu I tried allocating more memory to the modpack, around 8000MB and it's still the same; stopping at "LOAD_REGISTRIES". Are some of the mods clashing, maybe? I have no clue what to do LOL
    • Tried removing some biome generation mods and test ran it again, but it's still the same; still not responding as soon as it gets to "LOAD_REGISTRIES". This time with more errors though. Log : https://mclo.gs/uygZzD8 Is there too little memory allocated to the modpack maybe? Can someone help please.    (T.T)💔
    • This is sad. Over 3300 people have checked the thread and no one is able to help or give any ideas :(.
  • Topics

×
×
  • Create New...

Important Information

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