Jump to content

Forge-1.12.2-14.23.1.2555 don't run


LukaDona

Recommended Posts

Hello, I apologize but I have a problem when I try to start Minecraft version Forge 1.12.2 tells me that he was arrested abnormally, this happens to me every time I try to start it, I do not know how to solve this problem, I would like to play with the mod of Instant Structures Mod 1.12.2 but there is no way to make it work ... I attach the minecraft report.

Spoiler


00:44:16 launcher Preparing to launch minecraft client for 1.12.2-forge1.12.2-14.23.1.2555
00:44:17 launcher Couldn't get hash for net/minecraftforge/forge/1.12.2-14.23.1.2555/forge-1.12.2-14.23.1.2555.jar from http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.12.2-14.23.1.2555/forge-1.12.2-14.23.1.2555.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\net/minecraftforge/forge/1.12.2-14.23.1.2555/forge-1.12.2-14.23.1.2555.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for jline/jline/2.13/jline-2.13.jar from http://files.minecraftforge.net/maven/jline/jline/2.13/jline-2.13.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\jline/jline/2.13/jline-2.13.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar from http://files.minecraftforge.net/maven/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for com/typesafe/config/1.2.1/config-1.2.1.jar from http://files.minecraftforge.net/maven/com/typesafe/config/1.2.1/config-1.2.1.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\com/typesafe/config/1.2.1/config-1.2.1.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar from http://files.minecraftforge.net/maven/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar from http://files.minecraftforge.net/maven/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:17 launcher Couldn't get hash for org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar.sha1: HTTP 404: Not Found
00:44:17 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\libraries\org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:18 launcher Couldn't get hash for 1.12.2 jar from https://s3.amazonaws.com/Minecraft.Download/versions/1.12.2/1.12.2.jar.sha1: HTTP 403: Forbidden
00:44:18 launcher Have local file C:/Users\User\AppData\Roaming\.minecraft\versions\1.12.2/1.12.2.jar but don't know what size or hash it should be. Have to assume it's good.
00:44:18 launcher Checking installations.
00:44:18 launcher Minecraft client 1.12.2-forge1.12.2-14.23.1.2555 is ready to start.
00:44:18 launcher Starting!
00:44:18 launcher Version does not support log configuration, will assume one plaintext entry per line
01:44:19 game 2018-02-05 00:44:19,691 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
01:44:19 game 2018-02-05 00:44:19,695 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
01:44:19 game [00:44:19] [main/INFO] [FML]: Forge Mod Loader version 14.23.1.2555 for Minecraft 1.12.2 loading
01:44:19 game [00:44:19] [main/INFO] [FML]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 7:amd64:6.1, installed at C:\Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_25
01:44:19 game [00:44:19] [main/INFO] [FML]: Loading tweaker shadersmodcore.loading.SMCTweaker from ShadersModCore-v2.3.12-mc1.7.2-f1040.jar
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Loading tweak class name shadersmodcore.loading.SMCTweaker
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
01:44:19 game [00:44:19] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
01:44:20 game 2018-02-05 00:44:20,906 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
01:44:20 game 2018-02-05 00:44:20,919 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
01:44:20 game 2018-02-05 00:44:20,921 main WARN Unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream
01:44:21 game [00:44:21] [main/INFO] [FML]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
01:44:21 game [00:44:21] [main/INFO] [FML]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
01:44:21 game [00:44:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
01:44:21 game [00:44:21] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
01:44:22 game [00:44:22] [main/INFO] [LaunchWrapper]: Calling tweak class shadersmodcore.loading.SMCTweaker
01:44:22 game [00:44:22] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
01:44:22 game [00:44:22] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
01:44:22 game [00:44:22] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}
01:44:22 game [SMC FNE]transforming bib net.minecraft.client.Minecraft
01:44:22 game [SMC FNE] 105662 (+59)
01:44:22 game [SMC FNE]transforming cds net.minecraft.client.renderer.texture.ITextureObject
01:44:22 game [SMC FNE] 407 (+63)
01:44:23 game [00:44:23] [main/INFO]: Setting user: LukaDona
01:44:23 game [SMC FNE]transforming aow net.minecraft.block.Block
01:44:23 game [SMC FNE] 94244 (+0)
01:44:25 game [SMC FNE]transforming ahb net.minecraft.item.ItemBlock
01:44:25 game [SMC FNE] 9435 (+0)
01:44:26 game [00:44:26] [main/WARN]: Skipping bad option: lastServer:
01:44:26 game [00:44:26] [main/INFO]: LWJGL Version: 2.9.4
01:44:26 game [SMC FNE]transforming cii net.minecraft.client.renderer.OpenGlHelper
01:44:26 game [SMC FNT] set activeTexUnit
01:44:26 game [SMC FNE] 22837 (+65)
01:44:27 game [SMC FNE]transforming cdg net.minecraft.client.renderer.texture.DynamicTexture
01:44:27 game [SMC FNE] 1682 (+234)
01:44:27 game [SMC FNE]transforming cdf net.minecraft.client.renderer.texture.AbstractTexture
01:44:27 game [SMC FNE] 1918 (+376)
01:44:27 game [SMC FNE]transforming cdp net.minecraft.client.renderer.texture.TextureMap
01:44:27 game [SMC FNE] 18024 (+218)
01:44:27 game [00:44:27] [main/WARN] [FML]: =============================================================
01:44:27 game [00:44:27] [main/WARN] [FML]: MOD HAS DIRECT REFERENCE System.exit() THIS IS NOT ALLOWED REROUTING TO FML!
01:44:27 game [00:44:27] [main/WARN] [FML]: Offender: shadersmodcore/client/Shaders.init()V
01:44:27 game [00:44:27] [main/WARN] [FML]: Use FMLCommonHandler.exitJava instead
01:44:27 game [00:44:27] [main/WARN] [FML]: =============================================================
01:44:27 game [00:44:27] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:553]: ---- Minecraft Crash Report ----
01:44:27 game  
01:44:27 game WARNING: coremods are present:
01:44:27 game Contact their authors BEFORE contacting forge
01:44:27 game  
01:44:27 game // Don't be sad, have a hug! <3
01:44:27 game  
01:44:27 game Time: 2/5/18 12:44 AM
01:44:27 game Description: Initializing game
01:44:27 game  
01:44:27 game java.lang.NoClassDefFoundError: net/minecraft/util/IChatComponent
01:44:27 game at shadersmodcore.client.ShadersTex.allocTexStorage(ShadersTex.java:242)
01:44:27 game at shadersmodcore.client.ShadersTex.initDynamicTexture(ShadersTex.java:266)
01:44:27 game at net.minecraft.client.renderer.texture.DynamicTexture.<init>(SourceFile:26)
01:44:27 game at net.minecraft.client.renderer.texture.TextureUtil.<clinit>(TextureUtil.java:26)
01:44:27 game at net.minecraft.client.shader.Framebuffer.func_147605_b(Framebuffer.java:105)
01:44:27 game at net.minecraft.client.shader.Framebuffer.func_147613_a(Framebuffer.java:57)
01:44:27 game at net.minecraft.client.shader.Framebuffer.<init>(Framebuffer.java:38)
01:44:27 game at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:459)
01:44:27 game at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377)
01:44:27 game at net.minecraft.client.main.Main.main(SourceFile:123)
01:44:27 game at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
01:44:27 game at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
01:44:27 game at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
01:44:27 game at java.lang.reflect.Method.invoke(Method.java:483)
01:44:27 game at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
01:44:27 game at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
01:44:27 game Caused by: java.lang.ClassNotFoundException: net.minecraft.util.IChatComponent
01:44:27 game at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:191)
01:44:27 game at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
01:44:27 game at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
01:44:27 game ... 16 more
01:44:27 game Caused by: java.lang.NullPointerException
01:44:27 game at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:182)
01:44:27 game ... 18 more
01:44:27 game  
01:44:27 game  
01:44:27 game A detailed walkthrough of the error, its code path and all known details is as follows:
01:44:27 game ---------------------------------------------------------------------------------------
01:44:27 game  
01:44:27 game -- Head --
01:44:27 game Thread: Client thread
01:44:27 game Stacktrace:
01:44:27 game at shadersmodcore.client.ShadersTex.allocTexStorage(ShadersTex.java:242)
01:44:27 game at shadersmodcore.client.ShadersTex.initDynamicTexture(ShadersTex.java:266)
01:44:27 game at net.minecraft.client.renderer.texture.DynamicTexture.<init>(SourceFile:26)
01:44:27 game at net.minecraft.client.renderer.texture.TextureUtil.<clinit>(TextureUtil.java:26)
01:44:27 game at net.minecraft.client.shader.Framebuffer.func_147605_b(Framebuffer.java:105)
01:44:27 game at net.minecraft.client.shader.Framebuffer.func_147613_a(Framebuffer.java:57)
01:44:27 game at net.minecraft.client.shader.Framebuffer.<init>(Framebuffer.java:38)
01:44:27 game at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:459)
01:44:27 game  
01:44:27 game -- Initialization --
01:44:27 game Details:
01:44:27 game Stacktrace:
01:44:27 game at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:377)
01:44:27 game at net.minecraft.client.main.Main.main(SourceFile:123)
01:44:27 game at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
01:44:27 game at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
01:44:27 game at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
01:44:27 game at java.lang.reflect.Method.invoke(Method.java:483)
01:44:27 game at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
01:44:27 game at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
01:44:27 game  
01:44:27 game -- System Details --
01:44:27 game Details:
01:44:27 game Minecraft Version: 1.12.2
01:44:27 game Operating System: Windows 7 (amd64) version 6.1
01:44:27 game Java Version: 1.8.0_25, Oracle Corporation
01:44:27 game Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
01:44:27 game Memory: 244172152 bytes (232 MB) / 536870912 bytes (512 MB) up to 1073741824 bytes (1024 MB)
01:44:27 game JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M
01:44:27 game IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
01:44:27 game FML:
01:44:27 game Loaded coremods (and transformers):
01:44:27 game Launched Version: 1.12.2-forge1.12.2-14.23.1.2555
01:44:27 game LWJGL: 2.9.4
01:44:27 game OpenGL: GeForce GTX 780/PCIe/SSE2 GL version 4.5.0 NVIDIA 372.90, NVIDIA Corporation
01:44:27 game GL Caps: Using GL 1.3 multitexturing.
01:44:27 game Using GL 1.3 texture combiners.
01:44:27 game Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
01:44:27 game Shaders are available because OpenGL 2.1 is supported.
01:44:27 game VBOs are available because OpenGL 1.5 is supported.
01:44:27 game  
01:44:27 game Using VBOs: Yes
01:44:27 game Is Modded: Definitely; Client brand changed to 'fml,forge'
01:44:27 game Type: Client (map_client.txt)
01:44:27 game Resource Packs: Faithful Full.zip (incompatible)
01:44:27 game Current Language: ~~ERROR~~ NullPointerException: null
01:44:27 game Profiler Position: N/A (disabled)
01:44:27 game CPU: 8x Intel(R) Core(TM) i7-4820K CPU @ 3.70GHz
01:44:27 game [00:44:27] [main/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:553]: #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\User\AppData\Roaming\.minecraft\crash-reports\crash-2018-02-05_00.44.27-client.txt

 

 

Edited by diesieben07
spoiler
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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • i keep getting these errors and im not sure how to fix them or if i can just leave them be :PS i know about the missing tags i just dont have the mods required to add those extra villages Here is the log  https://paste.ee/p/KpYoV
    • Minecraft: 1.18.2, Forge: 40.2.21 I created some code that renders a custom particle. The particle renders without depth test: `disableDepthTest()` and should be visible through other blocks. Locally, all works fine. When I install it on the server and client, it also works fine. But when the mod is removed from the server, it no longer works.   The particle is registered under the name "DEPTH_VISION", and if i check if it is present `ModParticles.DEPTH_VISION.isPresent()`, while the mod is not on the server, I get a `false` back.   So my question is: - Is it even possible to make a custom particle, while staying client side only? - What do I need to change to make it work?    ModParticles.java import net.minecraft.core.particles.SimpleParticleType; import net.minecraft.core.particles.ParticleType; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import net.minecraftforge.registries.RegistryObject; public class ModParticles { public static final DeferredRegister<ParticleType<?>> REGISTRY = DeferredRegister.create(ForgeRegistries.PARTICLE_TYPES, SomeNameMod.MODID); public static final RegistryObject<SimpleParticleType> DEPTH_VISION = REGISTRY.register("depth_vision", () -> new SimpleParticleType(true)); }    SomeNameMod.java import com.peet.somename.HighlightBlock; import com.peet.somename.DepthVisionParticle; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.texture.TextureAtlas; import net.minecraft.core.particles.ParticleType; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.level.Level; import net.minecraft.world.entity.player.Player; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.IEventBus; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import net.minecraftforge.client.event.ParticleFactoryRegisterEvent; import net.minecraftforge.client.event.TextureStitchEvent; @Mod(com.peet.somename.SomeNameMod.MODID) public class SomeNameMod { public static final String MODID = "somename"; private static int tickCounter = 0; // Counter to track ticks public SomeNameMod() { IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); modEventBus.addListener(this::onTextureStitch); modEventBus.addListener(this::registerParticleFactories); ModParticles.REGISTRY.register(modEventBus); MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public void registerParticleFactories(ParticleFactoryRegisterEvent event) { Minecraft.getInstance().particleEngine.register((ParticleType) ModParticles.DEPTH_VISION.get(), DepthVisionParticle.Factory::new); } @SubscribeEvent public void onWorldTick(TickEvent.WorldTickEvent event) { if (event.phase == TickEvent.Phase.END) { Level world = event.world; if (!world.isClientSide) return; if (tickCounter++ >= 20) { // 5 seconds = 100 ticks Player player = Minecraft.getInstance().player; if (player != null) { HighlightBlock.spawnParticles(world, player); } tickCounter = 0; // Reset the counter after spawning particles } } } @SubscribeEvent public void onClientTick(TickEvent.ClientTickEvent event) { } @SubscribeEvent public void onTextureStitch(TextureStitchEvent.Pre event) { if (event.getAtlas().location().equals(TextureAtlas.LOCATION_PARTICLES)) { event.addSprite(new ResourceLocation(MODID, "particles/depth_vision")); } } }    HighlightBlock.java import com.peet.somename.ModParticles; import net.minecraft.network.chat.TextComponent; import net.minecraft.world.entity.player.Player; import net.minecraft.world.level.Level; import net.minecraft.client.Minecraft; import net.minecraft.client.particle.ParticleEngine; public class HighlightBlock { public static <ExceptionType> void spawnParticles(Level world, Player player ) { ParticleEngine particleEngine = Minecraft.getInstance().particleEngine; if (!ModParticles.DEPTH_VISION.isPresent()) { Minecraft.getInstance().player.sendMessage(new TextComponent("DEPTH_VISION particle is not registered."), Minecraft.getInstance().player.getUUID()); return; } particleEngine.createParticle(ModParticles.DEPTH_VISION.get(), 0, 0, 0, 0.0, 0.0, 0.0); } }    DepthVisionParticle.java package com.peet.somename.particles; import net.minecraft.client.particle.Particle; import net.minecraft.core.particles.SimpleParticleType; import net.minecraft.client.particle.ParticleProvider; import com.mojang.blaze3d.vertex.Tesselator; import com.mojang.blaze3d.systems.RenderSystem; import net.minecraft.client.renderer.texture.TextureManager; import com.mojang.blaze3d.vertex.BufferBuilder; import net.minecraft.world.entity.player.Player; import net.minecraft.client.Minecraft; import net.minecraft.client.Camera; import com.mojang.blaze3d.vertex.VertexConsumer; import net.minecraft.client.particle.SpriteSet; import net.minecraft.client.multiplayer.ClientLevel; import net.minecraft.client.particle.ParticleRenderType; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; import net.minecraft.client.particle.SimpleAnimatedParticle; @OnlyIn(Dist.CLIENT) public class DepthVisionParticle extends SimpleAnimatedParticle { private static final ParticleRenderType DEPTH_PARTICLE_SHEET_TRANSLUCENT; private DepthVisionParticle(final ClientLevel world, final double x, final double y, final double z, final double motionX, final double motionY, final double motionZ, final SpriteSet spriteWithAge) { super(world, x, y, z, spriteWithAge, 0.0f); this.xd = motionX; this.yd = motionY; this.zd = motionZ; this.lifetime = 20; this.setSpriteFromAge(spriteWithAge); } public void render(final VertexConsumer buffer, final Camera renderInfo, final float partialTicks) { final Player player = Minecraft.getInstance().player; super.render(buffer, renderInfo, partialTicks); } public void tick() { super.tick(); this.setSprite(this.sprite); if (this.age++ >= this.lifetime) { this.remove(); } } public ParticleRenderType getRenderType() { return com.peet.somename.particles.DepthVisionParticle.DEPTH_PARTICLE_SHEET_TRANSLUCENT; } static { DEPTH_PARTICLE_SHEET_TRANSLUCENT = new ParticleRenderType() { public void begin(BufferBuilder buffer, TextureManager textureManager) { RenderSystem.disableDepthTest(); ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT.begin(buffer, textureManager); } public void end(Tesselator tessellator) { ParticleRenderType.PARTICLE_SHEET_TRANSLUCENT.end(tessellator); RenderSystem.enableDepthTest(); } }; } @OnlyIn(Dist.CLIENT) public static class Factory implements ParticleProvider<SimpleParticleType> { private final SpriteSet spriteSet; public Factory(final SpriteSet spriteSet) { this.spriteSet = spriteSet; } public Particle createParticle(final SimpleParticleType type, final ClientLevel world, final double x, final double y, final double z, final double xSpeed, final double ySpeed, final double zSpeed ) { final com.peet.somename.particles.DepthVisionParticle particle = new com.peet.somename.particles.DepthVisionParticle(world, x, y, z, 0.0, 0.0, 0.0, this.spriteSet); particle.setParticleSpeed((float) xSpeed, (float) ySpeed, (float) zSpeed); return particle; } } }  
    • no, but do you know  any alternatives that will give me access to shaders?
    • I used an alternative for this, this is a sheet template, which helped me simplify my task and I did not have to count, because every time I start counting again, I always get confused. In the same way, when I change something, in the template, I can edit everything and put it in the order I need.
  • Topics

×
×
  • Create New...

Important Information

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