Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

I have a problem I can't load minecraft it keeps crashing


Recommended Posts

My minecraft forge keeps crashing and I don't know why here is the whole report

---- Minecraft Crash Report ----
// Don't do that.

Time: 1.9.21 23:38
Description: Unexpected error

org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:223) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.MixinTransformationHandler.processClass(MixinTransformationHandler.java:121) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.launch.MixinLaunchPlugin.processClass(MixinLaunchPlugin.java:131) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) ~[modlauncher-8.0.9.jar:8.0.9+86+master.3cf110c] {}
    at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) ~[modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) ~[modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) ~[modlauncher-8.0.9.jar:?] {re:classloading}
    at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) ~[modlauncher-8.0.9.jar:?] {re:classloading}
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_51] {}
    at java.lang.Class.getDeclaredMethods0(Native Method) ~[?:1.8.0_51] {}
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[?:1.8.0_51] {}
    at java.lang.Class.getDeclaredMethod(Class.java:2128) ~[?:1.8.0_51] {}
    at com.qouteall.immersive_portals.optifine_compatibility.OFBuiltChunkNeighborFix.lambda$init$0(OFBuiltChunkNeighborFix.java:18) ~[?:0.9] {re:classloading}
    at com.qouteall.immersive_portals.optifine_compatibility.OFBuiltChunkNeighborFix$$Lambda$6680/298003227.call(Unknown Source) ~[?:?] {}
    at com.qouteall.immersive_portals.Helper.noError(Helper.java:468) ~[?:0.9] {re:classloading,re:mixin}
    at com.qouteall.immersive_portals.optifine_compatibility.OFBuiltChunkNeighborFix.init(OFBuiltChunkNeighborFix.java:16) ~[?:0.9] {re:classloading}
    at com.qouteall.immersive_portals.ModMainClient.init(ModMainClient.java:105) ~[?:0.9] {re:mixin,re:classloading}
    at com.qouteall.hiding_in_the_bushes.ModMainForge.lambda$doClientStuff$2(ModMainForge.java:143) ~[?:0.9] {re:classloading,re:mixin}
    at com.qouteall.hiding_in_the_bushes.ModMainForge$$Lambda$6574/357327000.run(Unknown Source) ~[?:?] {}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(ThreadTaskExecutor.java:172) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,xf:OptiFine:default,re:classloading,pl:accesstransformer:B,xf:OptiFine:default}
    at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] {re:mixin,re:computing_frames,re:classloading}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(ThreadTaskExecutor.java:134) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,xf:OptiFine:default,re:classloading,pl:accesstransformer:B,xf:OptiFine:default}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(ThreadTaskExecutor.java:115) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,xf:OptiFine:default,re:classloading,pl:accesstransformer:B,xf:OptiFine:default}
    at net.minecraft.client.Minecraft.func_195542_b(Minecraft.java:947) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:imm_ptl_mixins.json:client.MixinMinecraftClient,pl:mixin:APP:imm_ptl_mixins.json:client.block_manipulation.MixinMinecraftClient_B,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:607) [?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:computing_frames,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:imm_ptl_mixins.json:client.MixinMinecraftClient,pl:mixin:APP:imm_ptl_mixins.json:client.block_manipulation.MixinMinecraftClient_B,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.client.main.Main.main(Main.java:184) [?:?] {re:classloading,pl:runtimedistcleaner:A}
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] {}
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] {}
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] {}
    at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [forge-1.16.5-36.2.4.jar:36.2] {}
    at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$497/817944369.call(Unknown Source) [forge-1.16.5-36.2.4.jar:36.2] {}
    at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [modlauncher-8.0.9.jar:?] {}
    at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [modlauncher-8.0.9.jar:?] {}
Caused by: org.spongepowered.asm.mixin.injection.throwables.InjectionError: LVT in net/minecraft/client/renderer/chunk/ChunkRenderDispatcher$ChunkRender$RebuildTask::func_228940_a_(FFFLnet/minecraft/client/renderer/chunk/ChunkRenderDispatcher$CompiledChunk;Lnet/minecraft/client/renderer/RegionRenderCacheBuilder;)Ljava/util/Set; has incompatible changes at opcode 103 in callback net/minecraft/client/renderer/chunk/ChunkRenderDispatcher$ChunkRender$RebuildTask::onStartBlockRender.
Expected: [I, Lnet/minecraft/util/math/BlockPos;, Lnet/minecraft/util/math/BlockPos;, Lnet/minecraft/client/renderer/chunk/VisGraph;, Ljava/util/Set;, Lcom/mojang/blaze3d/matrix/MatrixStack;, Lnet/minecraft/world/IBlockDisplayReader;, [Lnet/minecraft/client/renderer/RenderType;, Z, Z, Ljava/util/Random;, Lnet/minecraft/client/renderer/BlockRendererDispatcher;, Ljava/util/Iterator;, Lnet/minecraft/util/math/BlockPos;]
   Found: [I, Lnet/minecraft/util/math/BlockPos;, Lnet/minecraft/util/math/BlockPos;, Lnet/minecraft/client/renderer/chunk/VisGraph;, Ljava/util/Set;, Lcom/mojang/blaze3d/matrix/MatrixStack;, Lnet/optifine/override/ChunkCacheOF;, [Lnet/minecraft/client/renderer/RenderType;, Ljava/util/Random;, Lnet/minecraft/client/renderer/BlockRendererDispatcher;, Ljava/util/Iterator;, Lnet/optifine/BlockPosM;]
    at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.inject(CallbackInjector.java:487) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.inject(CallbackInjector.java:437) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.injection.code.Injector.inject(Injector.java:264) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.inject(InjectionInfo.java:385) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.MixinTargetContext.applyInjections(MixinTargetContext.java:1284) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyInjections(MixinApplicatorStandard.java:1042) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:395) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:320) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:345) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:569) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:351) ~[mixin-0.8.2.jar:0.8.2+unknown-b0.git-unknown] {}
    ... 38 more


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

-- System Details --
Details:
    Minecraft Version: 1.16.5
    Minecraft Version ID: 1.16.5
    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: 1305402224 bytes (1244 MB) / 2147483648 bytes (2048 MB) up to 2147483648 bytes (2048 MB)
    CPUs: 12
    JVM Flags: 10 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -XX:+IgnoreUnrecognizedVMOptions -Xmx2G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M
    ModLauncher: 8.0.9+86+master.3cf110c
    ModLauncher launch target: fmlclient
    ModLauncher naming: srg
    ModLauncher services: 
        /mixin-0.8.2.jar mixin PLUGINSERVICE 
        /eventbus-4.0.0.jar eventbus PLUGINSERVICE 
        /forge-1.16.5-36.2.4.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.16.5-36.2.4.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE 
        /forge-1.16.5-36.2.4.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.16.5-36.2.4.jar runtimedistcleaner PLUGINSERVICE 
        /mixin-0.8.2.jar mixin TRANSFORMATIONSERVICE 
        /OptiFine_1.16.5_HD_U_G6.jar OptiFine TRANSFORMATIONSERVICE 
        /forge-1.16.5-36.2.4.jar fml TRANSFORMATIONSERVICE 
    FML: 36.2
    Forge: net.minecraftforge:36.2.4
    FML Language Providers: 
        javafml@36.2
        minecraft@1
        kotlinforforge@1.14.0
    Mod List: 
        forge-1.16.5-36.2.4-client.jar                    |Minecraft                     |minecraft                     |1.16.5              |ENQUEUE_IM|Manifest: NOSIGNATURE
        repurposed_structures-1.16.5-2.6.6-forge.jar      |Repurposed Structures         |repurposed_structures         |1.16.5-2.6.6-forge  |ENQUEUE_IM|Manifest: NOSIGNATURE
        DungeonsMod-1.16.3-1.3.20.jar                     |Dungeons Mod                  |dungeonsmod                   |1.16.3-1.3.20       |ENQUEUE_IM|Manifest: NOSIGNATURE
        Nether-Portal-Spread-Mod-1.16.5.jar               |Nether Portal Spread          |netherportalspread            |4.4                 |ENQUEUE_IM|Manifest: NOSIGNATURE
        torchslabmod-1.16.4_v1.6.19.jar                   |Torch Slab Mod                |torchslabmod                  |1.6.18              |ENQUEUE_IM|Manifest: NOSIGNATURE
        BiomesOPlenty-1.16.5-13.1.0.465-universal.jar     |Biomes O' Plenty              |biomesoplenty                 |1.16.5-13.1.0.463   |ENQUEUE_IM|Manifest: NOSIGNATURE
        Spiders-2-Mod-1.16.5.jar                          |Spiders 2.0                   |spiderstpo                    |1.0.4               |ENQUEUE_IM|Manifest: NOSIGNATURE
        dungeons_plus-1.16.5-1.1.4.jar                    |Dungeons Plus                 |dungeons_plus                 |1.1.4               |ENQUEUE_IM|Manifest: NOSIGNATURE
        jei-1.16.5-7.7.0.98.jar                           |Just Enough Items             |jei                           |7.7.0.98            |ENQUEUE_IM|Manifest: NOSIGNATURE
        BetterDefaultBiomes-1.16.4+-Alpha+2.5.3.jar       |Better Default Biomes         |betterdefaultbiomes           |Alpha 2.5.3         |ENQUEUE_IM|Manifest: NOSIGNATURE
        towers_of_the_wild-1.16.4-2.0.1.jar               |Towers Of The Wild            |towers_of_the_wild            |1.16.4-2.0.1        |ENQUEUE_IM|Manifest: NOSIGNATURE
        the-conjurer-1.16.4-1.0.13.jar                    |The Conjurer                  |conjurer_illager              |1.0.13              |ENQUEUE_IM|Manifest: NOSIGNATURE
        EyesInTheDarkness-1.16.5-1.0.2.jar                |Eyes in the Darkness          |eyesinthedarkness             |1.0.2               |ENQUEUE_IM|Manifest: NOSIGNATURE
        whisperwoods-1.16.4-2.0.0.jar                     |Whisperwoods                  |whisperwoods                  |2.0.0               |ENQUEUE_IM|Manifest: NOSIGNATURE
        BetterCaves-Forge-1.16.4-1.1.2.jar                |YUNG's Better Caves           |bettercaves                   |1.16.4-1.1.2        |ENQUEUE_IM|Manifest: NOSIGNATURE
        Waystones_1.16.5-7.5.1.jar                        |Waystones                     |waystones                     |7.5.1               |ENQUEUE_IM|Manifest: NOSIGNATURE
        totaldarkness-1.3-1.16.5.jar                      |Total Darkness                |totaldarkness                 |1.3-1.16.5          |ENQUEUE_IM|Manifest: NOSIGNATURE
        Collective-Library-1.16.5.jar                     |Collective                    |collective                    |2.24                |ENQUEUE_IM|Manifest: NOSIGNATURE
        lava-monster-1.16.4-1.0.9.jar                     |Lava Monster                  |lava_monster                  |1.0.9               |ENQUEUE_IM|Manifest: NOSIGNATURE
        AutoRegLib-1.6-49.jar                             |AutoRegLib                    |autoreglib                    |1.6-49              |ENQUEUE_IM|Manifest: NOSIGNATURE
        YungsApi-1.16.4-Forge-6.jar                       |YUNG's API                    |yungsapi                      |1.16.4-Forge-6      |ENQUEUE_IM|Manifest: NOSIGNATURE
        DoubleSlabs-1.16-3.7.0.jar                        |Double Slabs                  |doubleslabs                   |3.7.0               |ENQUEUE_IM|Manifest: NOSIGNATURE
        DungeonCrawl-1.16.3-2.2.4.jar                     |Dungeon Crawl                 |dungeoncrawl                  |2.2.4               |ENQUEUE_IM|Manifest: NOSIGNATURE
        worldedit-mod-7.2.5-dist.jar                      |WorldEdit                     |worldedit                     |7.2.5+57d5ac9       |ENQUEUE_IM|Manifest: NOSIGNATURE
        RealisticTorches-1.16.5-3.1.2.jar                 |Realistic Torches             |realistictorches              |1.16.5-3.1.2        |ENQUEUE_IM|Manifest: NOSIGNATURE
        HunterIllager-1.16.5-1.1.0.jar                    |Hunter Illager                |hunterillager                 |1.16.5-1.1.0        |ENQUEUE_IM|Manifest: NOSIGNATURE
        architectury-1.14.157-forge.jar                   |Architectury                  |architectury                  |1.14.157            |ENQUEUE_IM|Manifest: NOSIGNATURE
        FTB-GUI-Library-Mod-1.16.5.jar                    |FTB GUI Library               |ftbguilibrary                 |1604.2.0.29         |ENQUEUE_IM|Manifest: NOSIGNATURE
        outvoted-1.16.5-1.2.4.jar                         |Outvoted                      |outvoted                      |1.2.4               |ENQUEUE_IM|Manifest: NOSIGNATURE
        byg-1.2.7.jar                                     |Oh The Biomes You'll Go       |byg                           |1.2.7               |ENQUEUE_IM|Manifest: NOSIGNATURE
        Immersive-Portals-Mod-1.16.4.jar                  |Immersive Portals             |immersive_portals             |0.7                 |ENQUEUE_IM|Manifest: NOSIGNATURE
        forge-1.16.5-36.2.4-universal.jar                 |Forge                         |forge                         |36.2.4              |ENQUEUE_IM|Manifest: 22:af:21:d8:19:82:7f:93:94:fe:2b:ac:b7:e4:41:57:68:39:87:b1:a7:5c:c6:44:f9:25:74:21:14:f5:0d:90
        Quark-r2.4-316.jar                                |Quark                         |quark                         |r2.4-316            |SIDED_SETU|Manifest: NOSIGNATURE
        valhelsia_core-16.0.8.jar                         |Valhelsia Core                |valhelsia_core                |16.0.8              |ENQUEUE_IM|Manifest: NOSIGNATURE
        valhelsia_structures-1.16.5-0.1.1.jar             |Valhelsia Structures          |valhelsia_structures          |1.16.5-0.1.1        |ENQUEUE_IM|Manifest: NOSIGNATURE
        SoundFilters-0.14_for_1.16.2.jar                  |Sound Filters                 |soundfilters                  |0.14_for_1.16.2     |ENQUEUE_IM|Manifest: NOSIGNATURE
        DynamicTrees-1.16.5-0.10.0-Beta24.jar             |Dynamic Trees                 |dynamictrees                  |1.16.5-0.10.0-Beta24|ENQUEUE_IM|Manifest: NOSIGNATURE
        BetterMineshafts-Forge-1.16.4-2.0.3.jar           |YUNG's Better Mineshafts      |bettermineshafts              |1.16.4-2.0.3        |ENQUEUE_IM|Manifest: NOSIGNATURE
        geckolib-forge-1.16.5-3.0.35.jar                  |GeckoLib                      |geckolib3                     |3.0.35              |ENQUEUE_IM|Manifest: NOSIGNATURE
        BetterFoliage-2.7.1-Forge-1.16.5.jar              |Better Foliage                |betterfoliage                 |2.7.1               |ENQUEUE_IM|Manifest: NOSIGNATURE
        structure_gel-1.16.5-1.7.7.jar                    |Structure Gel API             |structure_gel                 |1.7.7               |ENQUEUE_IM|Manifest: NOSIGNATURE
        farlanders-1.16.4-1.3.9.jar                       |The Farlanders                |farlanders                    |1.3.9               |SIDED_SETU|Manifest: NOSIGNATURE
    Crash Report UUID: 96260632-5602-4683-99bd-b0c54c93657a
    Launched Version: 1.16.5-forge-36.2.4
    Backend library: LWJGL version 3.2.2 build 10
    Backend API: GeForce GTX 1660 SUPER/PCIe/SSE2 GL version 4.6.0 NVIDIA 461.09, NVIDIA Corporation
    GL Caps: Using framebuffer using OpenGL 3.0
    Using VBOs: Yes
    Is Modded: Definitely; Client brand changed to 'forge'
    Type: Client (map_client.txt)
    Graphics mode: fancy
    Resource Packs: vanilla, file/hollow-craft-1-15-1-16-e2411.zip (incompatible), file/hollow-mc-beta-1-2.zip (incompatible), file/Nails of Hallownest (incompatible)
    Current Language: English (US)
    CPU: 12x Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz
    OptiFine Version: OptiFine_1.16.5_HD_U_G6
    OptiFine Build: 20210117-013236
    Render Distance Chunks: 16
    Mipmaps: 4
    Anisotropic Filtering: 1
    Antialiasing: 0
    Multitexture: false
    Shaders: null
    OpenGlVersion: 4.6.0 NVIDIA 461.09
    OpenGlRenderer: GeForce GTX 1660 SUPER/PCIe/SSE2
    OpenGlVendor: NVIDIA Corporation
    CpuCount: 12

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
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.

 Share



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • These are my particle effect classes, they are all copied from a tutorial.   public class Juan1ParticalType extends ParticleType { public Juan1ParticalType() { super(false, Juan1ParticalData.DESERIALIZER); } @Override public Codec<Juan1ParticalData> func_230522_e_() { return Codec.unit(new Juan1ParticalData(new Vector3d(0, 0, 0), new Color(0xF63900), 0)); } }   public class Juan1ParticalData implements IParticleData { private final Vector3d speed; private final Color color; private final float diameter; public static final IDeserializer<Juan1ParticalData> DESERIALIZER = new IDeserializer<Juan1ParticalData>() { @Override public Juan1ParticalData deserialize(ParticleType<Juan1ParticalData> particleTypeIn, StringReader reader) throws CommandSyntaxException { final int MIN_COLOUR = 0; final int MAX_COLOUR = 255;reader.expect(' '); double speedX = reader.readDouble(); reader.expect(' '); double speedY = reader.readDouble(); reader.expect(' '); double speedZ = reader.readDouble(); reader.expect(' '); int red = MathHelper.clamp(reader.readInt(), MIN_COLOUR, MAX_COLOUR); reader.expect(' '); int green = MathHelper.clamp(reader.readInt(), MIN_COLOUR, MAX_COLOUR); reader.expect(' '); int blue = MathHelper.clamp(reader.readInt(), MIN_COLOUR, MAX_COLOUR);reader.expect(' ');  int alpha = MathHelper.clamp(reader.readInt(), 1, MAX_COLOUR);reader.expect(' '); float diameter = reader.readFloat();  return new Juan1ParticalData(new Vector3d(speedX, speedY, speedZ), new Color(red, green, blue, alpha), diameter); } @Override public Juan1ParticalData read(ParticleType<Juan1ParticalData> particleTypeIn, PacketBuffer buffer) { final int MIN_COLOUR = 0; final int MAX_COLOUR = 255; double speedX = buffer.readDouble(); double speedY = buffer.readDouble(); double speedZ = buffer.readDouble(); int red = MathHelper.clamp(buffer.readInt(), MIN_COLOUR, MAX_COLOUR); int green = MathHelper.clamp(buffer.readInt(), MIN_COLOUR, MAX_COLOUR); int blue = MathHelper.clamp(buffer.readInt(), MIN_COLOUR, MAX_COLOUR); int alpha = MathHelper.clamp(buffer.readInt(), 1, MAX_COLOUR); float diameter = buffer.readFloat(); return new Juan1ParticalData(new Vector3d(speedX, speedY, speedZ), new Color(red, green, blue, alpha), diameter); } }; public Juan1ParticalData(Vector3d speed, Color color, float diameter) { this.speed = speed; this.color = color; this.diameter = diameter; } @Override public ParticleType<?> getType() { return Utils.ParticleRegistry.JUAN_1_PARTICLE.get(); } @Override public void write(PacketBuffer buffer) { buffer.writeDouble(this.speed.x); buffer.writeDouble(this.speed.y); buffer.writeDouble(this.speed.z); buffer.writeInt(this.color.getRed()); buffer.writeInt(this.color.getGreen()); buffer.writeInt(this.color.getBlue()); buffer.writeInt(this.color.getAlpha()); buffer.writeFloat(this.diameter); } @Override public String getParameters() { return String.format(Locale.ROOT, "%s %.2f %i %i %i %i %.2d %.2d %.2d", this.getType().getRegistryName(), diameter, color.getRed(), color.getGreen(), color.getBlue(), color.getAlpha(), speed.getX(), speed.getY(), speed.getZ()); } public Vector3d getSpeed() { return speed; } public Color getColor() { return color; } public float getDiameter() { return diameter; } }   public class Juan1Particle extends SpriteTexturedParticle { public Juan1Particle(ClientWorld world, double x, double y, double z, Vector3d speed, Color color, float diameter) { super(world, x, y, z, speed.x, speed.y, speed.z); maxAge = 100; setColor(color.getRed() / 255F,color.getGreen() / 255F,color.getBlue() / 255); this.setAlphaF(color.getAlpha()); final float PARTICLE_SCALE_FOR_ONE_METER = 0.1F; particleScale = PARTICLE_SCALE_FOR_ONE_METER * diameter; this.canCollide = true; } @Override public IParticleRenderType getRenderType(){ return IParticleRenderType.PARTICLE_SHEET_TRANSLUCENT; } }   public class Juan1ParticleFactory implements IParticleFactory<Juan1ParticalData> { private final IAnimatedSprite sprites; public Juan1ParticleFactory(IAnimatedSprite sprite) { this.sprites = sprite; } @Override public Particle makeParticle(Juan1ParticalData typeIn, ClientWorld worldIn, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed) { Juan1Particle particle = new Juan1Particle(worldIn, x, y, z, typeIn.getSpeed(), typeIn.getColor(), typeIn.getDiameter()); particle.selectSpriteWithAge(sprites); return particle; } }
    • This is where I want to call the addParticle() method, it is in the livingTick() in an entity. But it shows no particle effect. @Override public void livingTick() { double x = rand.nextGaussian() * 0.02D; double y = rand.nextGaussian() * 0.02D; double z = rand.nextGaussian() * 0.02D; double px = this.getPosX() + 4.0D * rand.nextDouble() - 2.0D; double py = this.getPosY() + rand.nextDouble() - 0.5D; double pz = this.getPosZ() + 4.0D * rand.nextDouble() - 2.0D; world.addParticle(new Juan1ParticalData(new Vector3d(x, y, z), new Color(0xae6be2), 0), px, py, pz, x, y, z);  } When I change "new Juan1ParticalData(new Vector3d(x, y, z), new Color(0xae6be2), 0)" to "ParticleTypes.DRAGON_BREATH" , the particle effects appeared.
    • can you get any useful info from your crash reports?
    • I made a particle effect of my own, and I can only display the particle effect in the game through the command : /particle mymod:juan1particle 0 0 0 0 0 255 100 3.   When I want add the particle through World.addParticle(IParticleData particleData, double x, double y, double z, double xSpeed, double ySpeed, double zSpeed), it does not show at all.   But when I change the particleData Parameter from my particledata's instance to those in the ParticleTypes in the vanilla, It works without problem. So it seems that only my particle effect can't be added into the game, but those in the vanilla can be added.
    • Ok, so, that's really helpful. I guess i need to learn how to make a custom sound instance for my sound.
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.