Jump to content

I don't know why my server crash


pablusky23

Recommended Posts

It's my first time hosting servers, and sometimes it randomly crash
Here is the report


---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.

Time: 13/02/23 16:36
Description: Watching Server

java.lang.Error: ServerHangWatchdog detected that a single server tick took 60,00 seconds (should be max 0.05)
    at sun.misc.Unsafe.park(Native Method) ~[?:1.8.0_361] {}
    at java.util.concurrent.locks.LockSupport.park(Unknown Source) ~[?:1.8.0_361] {}
    at java.util.concurrent.CompletableFuture$Signaller.block(Unknown Source) ~[?:1.8.0_361] {}
    at java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source) ~[?:1.8.0_361] {}
    at java.util.concurrent.CompletableFuture.waitingGet(Unknown Source) ~[?:1.8.0_361] {}
    at java.util.concurrent.CompletableFuture.join(Unknown Source) ~[?:1.8.0_361] {}
    at net.minecraft.world.chunk.storage.IOWorker.func_227090_a_(SourceFile:95) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_223138_c(SourceFile:109) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_219107_b(SourceFile:103) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_219113_d(SourceFile:79) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_235995_e_(SourceFile:93) ~[?:?] {re:classloading}
    at net.minecraft.village.PointOfInterestManager.func_219135_a(SourceFile:49) ~[?:?] {re:classloading,re:mixin}
    at net.minecraft.world.server.ServerWorld.func_242103_b(ServerWorld.java:1250) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:forge-mca.mixin.json:MixinServerWorld,pl:mixin:APP:tombstone.mixins.json:ServerWorldMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.world.server.ServerWorld$$Lambda$13254/1394991059.run(Unknown Source) ~[?:?] {}
    at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] {re:mixin,re:computing_frames,re:classloading}
    at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:734) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:159) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:717) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:711) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:696) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:646) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer$$Lambda$11165/1413786269.run(Unknown Source) ~[?:?] {}
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_361] {}


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

-- Head --
Thread: Server Watchdog
Stacktrace:
    at sun.misc.Unsafe.park(Native Method) ~[?:1.8.0_361] {}
    at java.util.concurrent.locks.LockSupport.park(Unknown Source) ~[?:1.8.0_361] {}
    at java.util.concurrent.CompletableFuture$Signaller.block(Unknown Source) ~[?:1.8.0_361] {}
    at java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source) ~[?:1.8.0_361] {}
    at java.util.concurrent.CompletableFuture.waitingGet(Unknown Source) ~[?:1.8.0_361] {}
    at java.util.concurrent.CompletableFuture.join(Unknown Source) ~[?:1.8.0_361] {}
    at net.minecraft.world.chunk.storage.IOWorker.func_227090_a_(SourceFile:95) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_223138_c(SourceFile:109) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_219107_b(SourceFile:103) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_219113_d(SourceFile:79) ~[?:?] {re:classloading}
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_235995_e_(SourceFile:93) ~[?:?] {re:classloading}
    at net.minecraft.village.PointOfInterestManager.func_219135_a(SourceFile:49) ~[?:?] {re:classloading,re:mixin}
    at net.minecraft.world.server.ServerWorld.func_242103_b(ServerWorld.java:1250) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:forge-mca.mixin.json:MixinServerWorld,pl:mixin:APP:tombstone.mixins.json:ServerWorldMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.world.server.ServerWorld$$Lambda$13254/1394991059.run(Unknown Source) ~[?:?] {}
    at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] {re:classloading}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(SourceFile:144) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] {re:mixin,re:computing_frames,re:classloading}
    at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:734) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:159) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(SourceFile:118) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:717) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:711) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(SourceFile:103) ~[?:?] {re:mixin,pl:accesstransformer:B,re:computing_frames,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:696) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:646) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.func_240783_a_(MinecraftServer.java:232) ~[?:?] {re:mixin,pl:accesstransformer:B,pl:runtimedistcleaner:A,re:classloading,pl:accesstransformer:B,pl:mixin:APP:structure_gel.mixins.json:MinecraftServerMixin,pl:mixin:A,pl:runtimedistcleaner:A}
-- Thread Dump --
Details:
    Threads: "Tombstone Backup Thread" Id=227 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@3d5d5358
    at sun.misc.Unsafe.park(Native Method)
    -  waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@3d5d5358
    at java.util.concurrent.locks.LockSupport.park(Unknown Source)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
    at java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


"IO-Worker-144" Id=226 RUNNABLE
    at sun.nio.fs.WindowsNativeDispatcher.CreateFile0(Native Method)
    at sun.nio.fs.WindowsNativeDispatcher.CreateFile(Unknown Source)
    at sun.nio.fs.WindowsChannelFactory.open(Unknown Source)
    at sun.nio.fs.WindowsChannelFactory.newFileChannel(Unknown Source)
    at sun.nio.fs.WindowsFileSystemProvider.newFileChannel(Unknown Source)
    at java.nio.channels.FileChannel.open(Unknown Source)
    at java.nio.channels.FileChannel.open(Unknown Source)
    at net.minecraft.world.chunk.storage.RegionFile.<init>(SourceFile:126)
    ...

    Number of locked synchronizers = 1
    - java.util.concurrent.ThreadPoolExecutor$Worker@272533d7


"Ice and Fire Pathfinding Worker #0" Id=221 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@339aaa83
    at sun.misc.Unsafe.park(Native Method)
    -  waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@339aaa83
    at java.util.concurrent.locks.LockSupport.park(Unknown Source)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
    at java.util.concurrent.LinkedBlockingDeque.takeFirst(Unknown Source)
    at java.util.concurrent.LinkedBlockingDeque.take(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    ...


"Netty Server IO #7" Id=191 RUNNABLE
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@37a53828
    -  locked java.util.Collections$UnmodifiableSet@72a7a0b8
    -  locked sun.nio.ch.WindowsSelectorImpl@25b7ea27
    at sun.nio.ch.SelectorImpl.select(Unknown Source)
    at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)
    ...


"Netty Server IO #6" Id=166 RUNNABLE
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@431f92a0
    -  locked java.util.Collections$UnmodifiableSet@5de58693
    -  locked sun.nio.ch.WindowsSelectorImpl@12885ff7
    at sun.nio.ch.SelectorImpl.select(Unknown Source)
    at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)
    ...


"Netty Server IO #5" Id=136 RUNNABLE
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@8f46953
    -  locked java.util.Collections$UnmodifiableSet@37c1607f
    -  locked sun.nio.ch.WindowsSelectorImpl@46e1a90a
    at sun.nio.ch.SelectorImpl.select(Unknown Source)
    at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)
    ...


"Netty Server IO #4" Id=112 RUNNABLE (in native)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@16c621c6
    -  locked java.util.Collections$UnmodifiableSet@3d537cbc
    -  locked sun.nio.ch.WindowsSelectorImpl@1ad31f1
    at sun.nio.ch.SelectorImpl.select(Unknown Source)
    at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)
    ...


"Netty Server IO #3" Id=90 RUNNABLE (in native)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@4acf7137
    -  locked java.util.Collections$UnmodifiableSet@6da0a1b9
    -  locked sun.nio.ch.WindowsSelectorImpl@4b30962d
    at sun.nio.ch.SelectorImpl.select(Unknown Source)
    at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)
    ...


"Netty Server IO #2" Id=79 RUNNABLE (in native)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@23fa1403
    -  locked java.util.Collections$UnmodifiableSet@128d9f82
    -  locked sun.nio.ch.WindowsSelectorImpl@7ac85903
    at sun.nio.ch.SelectorImpl.select(Unknown Source)
    at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)
    ...


"Netty Server IO #1" Id=78 RUNNABLE
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@35063989
    -  locked java.util.Collections$UnmodifiableSet@46af7926
    -  locked sun.nio.ch.WindowsSelectorImpl@38a08ffe
    at sun.nio.ch.SelectorImpl.select(Unknown Source)
    at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)
    ...


"WorldCacheIOThread" Id=69 TIMED_WAITING on java.util.TaskQueue@18c9a8
    at java.lang.Object.wait(Native Method)
    -  waiting on java.util.TaskQueue@18c9a8
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)


"ResearchIOThread" Id=68 TIMED_WAITING on java.util.TaskQueue@4566253
    at java.lang.Object.wait(Native Method)
    -  waiting on java.util.TaskQueue@4566253
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)


"Server Watchdog" Id=63 RUNNABLE
    at sun.management.ThreadImpl.dumpThreads0(Native Method)
    at sun.management.ThreadImpl.dumpAllThreads(Unknown Source)
    at net.minecraft.server.dedicated.ServerHangWatchdog.run(ServerHangWatchdog.java:41)
    at java.lang.Thread.run(Unknown Source)


"Thread-10" Id=53 RUNNABLE (in native)
    at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)
    at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)
    at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


"Netty Server IO #0" Id=52 RUNNABLE (in native)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll0(Native Method)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.poll(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl$SubSelector.access$400(Unknown Source)
    at sun.nio.ch.WindowsSelectorImpl.doSelect(Unknown Source)
    at sun.nio.ch.SelectorImpl.lockAndDoSelect(Unknown Source)
    -  locked io.netty.channel.nio.SelectedSelectionKeySet@390d4db6
    -  locked java.util.Collections$UnmodifiableSet@5eeea16
    -  locked sun.nio.ch.WindowsSelectorImpl@43fd368a
    at sun.nio.ch.SelectorImpl.select(Unknown Source)
    at io.netty.channel.nio.SelectedSelectionKeySetSelector.select(SelectedSelectionKeySetSelector.java:62)
    at io.netty.channel.nio.NioEventLoop.select(NioEventLoop.java:756)
    ...


"ObjectCleanerThread" Id=51 TIMED_WAITING on java.lang.ref.ReferenceQueue$Lock@740e805c
    at java.lang.Object.wait(Native Method)
    -  waiting on java.lang.ref.ReferenceQueue$Lock@740e805c
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at io.netty.util.internal.ObjectCleaner$1.run(ObjectCleaner.java:54)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    at java.lang.Thread.run(Unknown Source)


"Server console handler" Id=49 RUNNABLE (in native)
    at java.io.FileInputStream.readBytes(Native Method)
    at java.io.FileInputStream.read(Unknown Source)
    at java.io.BufferedInputStream.read1(Unknown Source)
    at java.io.BufferedInputStream.read(Unknown Source)
    -  locked java.io.BufferedInputStream@273d0396
    at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)
    at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
    at sun.nio.cs.StreamDecoder.read(Unknown Source)
    -  locked java.io.InputStreamReader@55f1f33d
    at java.io.InputStreamReader.read(Unknown Source)
    ...


"DestroyJavaVM" Id=50 RUNNABLE


"Server thread" Id=46 WAITING on java.util.concurrent.CompletableFuture$Signaller@7f12c66f
    at sun.misc.Unsafe.park(Native Method)
    -  waiting on java.util.concurrent.CompletableFuture$Signaller@7f12c66f
    at java.util.concurrent.locks.LockSupport.park(Unknown Source)
    at java.util.concurrent.CompletableFuture$Signaller.block(Unknown Source)
    at java.util.concurrent.ForkJoinPool.managedBlock(Unknown Source)
    at java.util.concurrent.CompletableFuture.waitingGet(Unknown Source)
    at java.util.concurrent.CompletableFuture.join(Unknown Source)
    at net.minecraft.world.chunk.storage.IOWorker.func_227090_a_(SourceFile:95)
    at net.minecraft.world.chunk.storage.RegionSectionCache.func_223138_c(SourceFile:109)
    ...


"Snooper Timer" Id=47 WAITING on java.util.TaskQueue@7f9ea5b1
    at java.lang.Object.wait(Native Method)
    -  waiting on java.util.TaskQueue@7f9ea5b1
    at java.lang.Object.wait(Unknown Source)
    at java.util.TimerThread.mainLoop(Unknown Source)
    at java.util.TimerThread.run(Unknown Source)


"Keep-Alive-SocketCleaner" Id=42 WAITING on java.util.concurrent.locks.ReentrantLock$NonfairSync@30acfd6 owned by "Finalizer" Id=3
    at sun.misc.Unsafe.park(Native Method)
    -  waiting on java.util.concurrent.locks.ReentrantLock$NonfairSync@30acfd6
    at java.util.concurrent.locks.LockSupport.park(Unknown Source)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(Unknown Source)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(Unknown Source)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(Unknown Source)
    at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(Unknown Source)
    at java.util.concurrent.locks.ReentrantLock.lock(Unknown Source)
    at sun.security.ssl.SSLSocketImpl$AppInputStream.read(Unknown Source)
    ...


"Thread-5" Id=29 RUNNABLE (in native)
    at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)
    at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)
    at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


"Thread-4" Id=28 RUNNABLE (in native)
    at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)
    at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)
    at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


"Thread-3" Id=27 WAITING on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@9b3512b
    at sun.misc.Unsafe.park(Native Method)
    -  waiting on java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject@9b3512b
    at java.util.concurrent.locks.LockSupport.park(Unknown Source)
    at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
    at java.util.concurrent.LinkedBlockingDeque.takeFirst(Unknown Source)
    at java.util.concurrent.LinkedBlockingDeque.take(Unknown Source)
    at sun.nio.fs.AbstractWatchService.take(Unknown Source)
    at net.torocraft.torohealth.config.loader.FileWatcher.pollEvents(FileWatcher.java:54)
    at net.torocraft.torohealth.config.loader.FileWatcher.run(FileWatcher.java:46)
    ...


"Timer hack thread" Id=22 TIMED_WAITING
    at java.lang.Thread.sleep(Native Method)
    at net.minecraft.util.Util$6.run(Util.java:505)


"Thread-2" Id=17 RUNNABLE (in native)
    at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)
    at sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)
    at sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


"Thread-1" Id=16 TIMED_WAITING
    at sun.misc.Unsafe.park(Native Method)
    at java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
    at com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:190)


"Attach Listener" Id=5 RUNNABLE


"Signal Dispatcher" Id=4 RUNNABLE


"Finalizer" Id=3 WAITING on java.lang.ref.ReferenceQueue$Lock@1540fa23
    at java.lang.Object.wait(Native Method)
    -  waiting on java.lang.ref.ReferenceQueue$Lock@1540fa23
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at java.lang.ref.ReferenceQueue.remove(Unknown Source)
    at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

    Number of locked synchronizers = 3
    - java.util.concurrent.locks.ReentrantLock$NonfairSync@3831f36a
    - java.util.concurrent.locks.ReentrantLock$NonfairSync@30acfd6
    - java.util.concurrent.locks.ReentrantLock$NonfairSync@4061e986


"Reference Handler" Id=2 WAITING on java.lang.ref.Reference$Lock@6e9dba9
    at java.lang.Object.wait(Native Method)
    -  waiting on java.lang.ref.Reference$Lock@6e9dba9
    at java.lang.Object.wait(Unknown Source)
    at java.lang.ref.Reference.tryHandlePending(Unknown Source)
    at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)

Stacktrace:
    at net.minecraft.server.dedicated.ServerHangWatchdog.run(ServerHangWatchdog.java:56) [?:?] {re:classloading}
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_361] {}


-- Performance stats --
Details:
    Random tick rate: 3
    Level stats: ResourceKey[minecraft:dimension / minecraft:overworld]: players: 3, entities: 1228 [minecraft:item:143,minecraft:chest_minecart:84,iceandfire:multipart:83,minecraft:sheep:73,minecraft:skeleton:70], block_entities: 488 [minecraft:chest:272,minecraft:mob_spawner:158,iceandfire:pixie_house:23,minecraft:beehive:9,indreb:copper_cable:4], block_ticks: 3393, fluid_ticks: 76, chunk_source: ServerChunkCache: 7333,
ResourceKey[minecraft:dimension / minecraft:the_nether]: players: 0, entities: 0 [], block_entities: 0 [], block_ticks: 0, fluid_ticks: 0, chunk_source: ServerChunkCache: 0,
ResourceKey[minecraft:dimension / minecraft:the_end]: players: 0, entities: 0 [], block_entities: 0 [], block_ticks: 0, fluid_ticks: 0, chunk_source: ServerChunkCache: 0

-- 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_361, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 1985462088 bytes (1893 MB) / 5225054208 bytes (4983 MB) up to 5225054208 bytes (4983 MB)
    CPUs: 4
    JVM Flags: 2 total; -Xmx5G -Xms5G
    ModLauncher: 8.1.3+8.1.3+main-8.1.x.c94d18ec
    ModLauncher launch target: fmlserver
    ModLauncher naming: srg
    ModLauncher services: 
        /mixin-0.8.4.jar mixin PLUGINSERVICE 
        /eventbus-4.0.0.jar eventbus PLUGINSERVICE 
        /forgeserver.jar object_holder_definalize PLUGINSERVICE 
        /forgeserver.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-3.0.1.jar accesstransformer PLUGINSERVICE 
        /forgeserver.jar capability_inject_definalize PLUGINSERVICE 
        /forgeserver.jar runtimedistcleaner PLUGINSERVICE 
        /mixin-0.8.4.jar mixin TRANSFORMATIONSERVICE 
        /forgeserver.jar fml TRANSFORMATIONSERVICE 
    FML: 36.2
    Forge: net.minecraftforge:36.2.39
    FML Language Providers: 
        [email protected]
        minecraft@1
    Mod List: 
        forge-1.16.5-36.2.39-server.jar                   |Minecraft                     |minecraft                     |1.16.5              |DONE      |Manifest: NOSIGNATURE
        TConstruct-1.16.5-3.3.4.335.jar                   |Tinkers' Construct            |tconstruct                    |3.3.4.335           |DONE      |Manifest: NOSIGNATURE
        CyclopsCore-1.16.5-1.12.4.jar                     |Cyclops Core                  |cyclopscore                   |1.12.4              |DONE      |Manifest: NOSIGNATURE
        mowziesmobs-1.5.27.jar                            |Mowzie's Mobs                 |mowziesmobs                   |1.5.27              |DONE      |Manifest: NOSIGNATURE
        astralsorcery-1.16.4-1.13.3.jar                   |Astral Sorcery                |astralsorcery                 |1.16.4-1.13.3       |DONE      |Manifest: NOSIGNATURE
        EasierSleeping-1.16.5-1.2.0.jar                   |Easier Sleeping               |easier_sleeping               |1.2.0               |DONE      |Manifest: NOSIGNATURE
        pamhc2trees-1.16.3-1.0.1.jar                      |Pam's HarvestCraft 2 Fruit Tre|pamhc2trees                   |1.0.1               |DONE      |Manifest: NOSIGNATURE
        BiomesOPlenty-1.16.5-13.1.0.488-universal.jar     |Biomes O' Plenty              |biomesoplenty                 |1.16.5-13.1.0.488   |DONE      |Manifest: NOSIGNATURE
        pamhc2crops-1.16.3-1.0.2.jar                      |Pam's HarvestCraft 2 Crops    |pamhc2crops                   |version             |DONE      |Manifest: NOSIGNATURE
        dungeons_plus-1.16.5-1.1.5.jar                    |Dungeons Plus                 |dungeons_plus                 |1.1.5               |DONE      |Manifest: NOSIGNATURE
        jei-1.16.5-7.7.1.152.jar                          |Just Enough Items             |jei                           |7.7.1.152           |DONE      |Manifest: NOSIGNATURE
        SlashBlade-1.16-0.0.12.jar                        |Slash Blade                   |slashblade                    |0.0.12              |DONE      |Manifest: NOSIGNATURE
        connectivity-2.4-1.16.5.jar                       |Connectivity Mod              |connectivity                  |2.4-1.16.5          |DONE      |Manifest: NOSIGNATURE
        pamhc2foodextended-1.16.3-1.0.4.jar               |Pam's HarvestCraft 2 Food Exte|pamhc2foodextended            |version             |DONE      |Manifest: NOSIGNATURE
        torohealth-1.16.4-forge-4.jar                     |ToroHealth                    |torohealth                    |NONE                |DONE      |Manifest: NOSIGNATURE
        Guide-API-VP-1.16.5-2.2.2.jar                     |Guide-API VP                  |guideapi-vp                   |2.2.2               |DONE      |Manifest: NOSIGNATURE
        curios-forge-1.16.5-4.0.8.0.jar                   |Curios API                    |curios                        |1.16.5-4.0.8.0      |DONE      |Manifest: NOSIGNATURE
        Mantle-1.16.5-1.6.157.jar                         |Mantle                        |mantle                        |1.6.157             |DONE      |Manifest: NOSIGNATURE
        pamhc2foodcore-1.16.3-1.0.2.jar                   |Pam's HarvestCraft 2 Food Core|pamhc2foodcore                |version             |DONE      |Manifest: NOSIGNATURE
        citadel-1.8.1-1.16.5.jar                          |Citadel                       |citadel                       |1.8.1               |DONE      |Manifest: NOSIGNATURE
        TravelersBackpack-1.16.5-5.4.28.jar               |Traveler's Backpack           |travelersbackpack             |5.4.28              |DONE      |Manifest: NOSIGNATURE
        StorageDrawers-1.16.3-8.5.1.jar                   |Storage Drawers               |storagedrawers                |8.5.1               |DONE      |Manifest: NOSIGNATURE
        EvilCraft-1.16.5-1.1.17.jar                       |EvilCraft                     |evilcraft                     |1.1.17              |DONE      |Manifest: NOSIGNATURE
        quickteleports-1.16.5-1.2.0-forge.jar             |QuickTeleports                |quickteleports                |1.16.5-1.2.0        |DONE      |Manifest: NOSIGNATURE
        tombstone-6.8.7-1.16.5.jar                        |Corail Tombstone              |tombstone                     |6.8.7               |DONE      |Manifest: NOSIGNATURE
        betteranimalsplus-1.16.5-11.0.3-forge.jar         |Better Animals Plus           |betteranimalsplus             |1.16.5-11.0.3       |DONE      |Manifest: NOSIGNATURE
        mcw-doors-1.0.8forge-mc1.16.5.jar                 |Macaw's Doors                 |mcwdoors                      |1.0.8               |DONE      |Manifest: NOSIGNATURE
        architectury-1.32.66.jar                          |Architectury                  |architectury                  |1.32.66             |DONE      |Manifest: NOSIGNATURE
        minecraft-comes-alive-7.3.23+1.16.5-universal.jar |Minecraft Comes Alive         |mca                           |7.3.23+1.16.5       |DONE      |Manifest: NOSIGNATURE
        observerlib-1.16.5-1.5.3.jar                      |ObserverLib                   |observerlib                   |1.16.5-1.5.3        |DONE      |Manifest: NOSIGNATURE
        iceandfire-2.1.11-1.16.5.jar                      |Ice and Fire                  |iceandfire                    |2.1.11-1.16.5       |DONE      |Manifest: NOSIGNATURE
        inventorypets-1.16.5-2.0.15.jar                   |Inventory Pets                |inventorypets                 |2.0.15              |DONE      |Manifest: NOSIGNATURE
        FallingTree-1.16.5-2.11.6.jar                     |FallingTree                   |fallingtree                   |2.11.5              |DONE      |Manifest: 3c:8e:df:6c:df:a6:2a:9f:af:64:ea:04:9a:cf:65:92:3b:54:93:0e:96:50:b4:52:e1:13:42:18:2b:ae:40:29
        forge-1.16.5-36.2.39-universal.jar                |Forge                         |forge                         |36.2.39             |DONE      |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
        BloodMagic-1.16.3-3.0.2-7.jar                     |Blood Magic                   |bloodmagic                    |1.16.3-3.0.2-7      |DONE      |Manifest: NOSIGNATURE
        Disenchanting-forge-1.16.5-1.7.2.jar              |Disenchanting                 |disenchanting                 |1.6.0               |DONE      |Manifest: NOSIGNATURE
        Industrial-Reborn-1.16.3-0.9.1.jar                |Industrial Reborn             |indreb                        |1.16.3-0.9.1        |DONE      |Manifest: NOSIGNATURE
        geckolib-forge-1.16.5-3.0.106.jar                 |GeckoLib                      |geckolib3                     |3.0.106             |DONE      |Manifest: NOSIGNATURE
        PrettyPipes-1.9.6.jar                             |Pretty Pipes                  |prettypipes                   |1.9.6               |DONE      |Manifest: NOSIGNATURE
        structure_gel-1.16.5-1.7.7.jar                    |Structure Gel API             |structure_gel                 |1.7.7               |DONE      |Manifest: NOSIGNATURE
        quickhomes-1.16.5-1.3.0-forge.jar                 |QuickHomes                    |quickhomes                    |1.16.5-1.3.0        |DONE      |Manifest: NOSIGNATURE
        extra-utilities-reborn-1.7.3-1.16.5.jar           |Extra Utilities Rebirth       |extrautilitiesrebirth         |1.7.3               |DONE      |Manifest: NOSIGNATURE
        decocraft-3.0.0.4-alpha.jar                       |Decocraft                     |decocraft                     |3.0.0.4-alpha       |DONE      |Manifest: NOSIGNATURE
        xptome-1.16.5-v2.1.5.jar                          |XP Tome                       |xpbook                        |v2.1.5              |DONE      |Manifest: NOSIGNATURE
    Crash Report UUID: d7c04756-fca9-4a42-8bd2-2b27629ce526
    Player Count: 3 / 20; [ServerPlayerEntity['Pablusky23'/465, l='ServerLevel[world]', x=89.93, y=11.00, z=-107.42], ServerPlayerEntity['Lady_Shiro'/2373, l='ServerLevel[world]', x=289.34, y=65.17, z=-2285.85], ServerPlayerEntity['FermaximusOP'/4541, l='ServerLevel[world]', x=-820.01, y=78.00, z=-252.16]]
    Data Packs: vanilla, mod:tconstruct, mod:mowziesmobs, mod:astralsorcery, mod:pamhc2trees (incompatible), mod:biomesoplenty, mod:pamhc2crops (incompatible), mod:dungeons_plus, mod:jei, mod:slashblade (incompatible), mod:pamhc2foodextended (incompatible), mod:guideapi-vp, mod:curios, mod:mantle (incompatible), mod:pamhc2foodcore (incompatible), mod:citadel (incompatible), mod:travelersbackpack (incompatible), mod:storagedrawers (incompatible), mod:tombstone, mod:betteranimalsplus, mod:mcwdoors, mod:architectury, mod:mca, mod:observerlib, mod:iceandfire, mod:inventorypets (incompatible), mod:fallingtree, mod:forge, mod:bloodmagic, mod:disenchanting (incompatible), mod:indreb (incompatible), mod:geckolib3 (incompatible), mod:structure_gel, mod:extrautilitiesrebirth, mod:decocraft, mod:xpbook, mod:cyclopscore, mod:torohealth, mod:evilcraft, mod:prettypipes (incompatible), mod:easier_sleeping, mod:quickteleports, mod:quickhomes, mod:connectivity
    Is Modded: Definitely; Server brand changed to 'forge'
    Type: Dedicated Server (map_server.txt)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

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.