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

Damage player every second for 10sec


Niernen
 Share

Recommended Posts

For my mod I want a player receive drowning damage for 10sec, every second 1 heart of damage.

The damage part is no problem using

player.attackEntityFrom(DamageSource.drown, 2);

but how can I make this repeat every second for 10 seconds?

Link to comment
Share on other sites

I think you could try subscribing to onPlayerTick() using:

 

 @SubscribeEvent
public void onPlayerTick(PlayerTickEvent evt)

 

There are 20 ticks per second. Adding a tick counter is what I would do.

 

More reading on ticks subject can be found here.

 

Update - something like this could work:

private int tickCounter = 0;

@SubscribeEvent
public void onPlayerTick(PlayerTickEvent evt)
{
  
  if (tickCounter % 20 == 0 && tickCounter < 201)
  {
      player.attackEntityFrom(DamageSource.drown, 2);
  }

  tickCounter++;
}

Link to comment
Share on other sites

PlayerTickEvent is fired for each player on both sides, you need to:

 

1. Perform damaging on server - if (!event.player.worldObj.isRemote)

 

2. TickEvents have 2 phases - START and END - pick one (event.phase).

 

3.

private int tickCounter = 0;

@SubscribeEvent
public void onPlayerTick(PlayerTickEvent evt)
{
  
  if (tickCounter % 20 == 0 && tickCounter < 201)
  {
      player.attackEntityFrom(DamageSource.drown, 2);
  }

  tickCounter++;
}

 

While code itself if not bad in mean of ticks/timing, it is bad regarding design.

Held "tickCounter" will be shared between all players (on server side/thread), you can't do it this way.

 

What you need to do is:

* Use IEEP (1.8.9-) or @Capability (1.8.9+) to store counter per-player.

* Use stored counter in event.

* Capability CAN be server-only - unless you need other stuff, or need client to display counter, damaging happens server only, so counter can be too server sided.

 

Links:

http://mcforge.readthedocs.io/en/latest/datastorage/capabilities/

http://mcforge.readthedocs.io/en/latest/concepts/sides/

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Ernio:

Thank you for your input, I will have a look into materials you provided.

 

Just one more question to clarify exactly what you meant:

 

'While code itself if not bad in mean of ticks/timing, it is bad regarding design.'

Is there a typo in 'itself if not bad' or not? Like if you meant to say 'is not bad' implying that it is correct to subscribe to PlayerTickEvent, or you meant to say that I am questionably wrong with subscribing to that event?

 

Thanks in Advance. :-)

Link to comment
Share on other sites

I ment that this is the proper way (one of them as d7 suggested using potions) to perform tick operations on player.

BUT

It has flaw in design where you need to have player-specific counters.

@SubscribeEvent
public void onPlayerTick(PlayerTickEvent evt)
{
  // if server
  // if phase
  int counter = player#capability#counter
  if (counter > 0 && counter % 20 == 0)
  {
      player.attackEntityFrom(DamageSource.drown, 2);
  }

  --player#cpability#counter;
}

Where this is pseudocode assuming you are holding integer counter in player's capability. Whenever capability counter is bigger than 0, decrement it from tick event.

 

How to make such per-player data storage has been linked.

 

And yeah - this is good advice:

May I suggest using a PotionEffect? :D

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Couldn't you also make it player-specific by checking the player's ticksExisted in your tick counter? Like this:

 

if (event.player.ticksExisted % 20 == 0)

 

Only if you knew when to stop applying the damage.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.

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

    • There is latest.log tho   [25Oct2021 16:59:59.025] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, MarioBros__, --version, 1.16.5-forge-36.2.8, --gameDir, C:\Users\Jonny\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Jonny\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, 3fdef5666031477981d4e1e6076684ff, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.8, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550] [25Oct2021 16:59:59.029] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.0.9+86+master.3cf110c starting: java version 1.8.0_51 by Oracle Corporation [25Oct2021 16:59:59.046] [main/WARN] [cpw.mods.modlauncher.SecureJarHandler/]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED [25Oct2021 16:59:59.323] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust [25Oct2021 16:59:59.362] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.4 Source=file:/C:/Users/Jonny/AppData/Roaming/.minecraft/libraries/org/spongepowered/mixin/0.8.4/mixin-0.8.4.jar Service=ModLauncher Env=CLIENT [25Oct2021 17:00:00.221] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file Mod File: C:\Users\Jonny\AppData\Roaming\.minecraft\mods\immersive-portals-0.101-mc1.16.5-fabric.jar is missing mods.toml file [25Oct2021 17:00:00.222] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer/SCAN]: File C:\Users\Jonny\AppData\Roaming\.minecraft\mods\immersive-portals-0.101-mc1.16.5-fabric.jar has been ignored - it is invalid [25Oct2021 17:00:00.837] [main/INFO] [STDERR/]: [org.antlr.v4.runtime.ConsoleErrorListener:syntaxError:38]: line 1:0 token recognition error at: '~' [25Oct2021 17:00:01.473] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.qouteall.hiding_in_the_bushes.MyMixinConnector] [25Oct2021 17:00:01.488] [main/INFO] [Portal/]: Invoking Mixin Connector [25Oct2021 17:00:01.494] [main/ERROR] [mixin/]: Mixin config imm_ptl_mixins.json does not specify "minVersion" property [25Oct2021 17:00:01.496] [main/ERROR] [mixin/]: Mixin config imm_ptl_mixins_forge.json does not specify "minVersion" property [25Oct2021 17:00:01.497] [main/ERROR] [mixin/]: Mixin config imm_ptl_peripheral_mixins.json does not specify "minVersion" property [25Oct2021 17:00:01.500] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlclient' with arguments [--version, 1.16.5-forge-36.2.8, --gameDir, C:\Users\Jonny\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Jonny\AppData\Roaming\.minecraft\assets, --uuid, 3fdef5666031477981d4e1e6076684ff, --username, MarioBros__, --assetIndex, 1.16, --accessToken, ????????, --userType, msa, --versionType, release] [25Oct2021 17:00:01.510] [main/WARN] [mixin/]: Reference map 'createdeco.refmap.json' for createdeco.mixins.json could not be read. If this is a development environment you can ignore this message [25Oct2021 17:00:01.512] [main/WARN] [mixin/]: Reference map 'hackforge.refmap.json' for creategears.mixins.json could not be read. If this is a development environment you can ignore this message [25Oct2021 17:00:03.098] [pool-3-thread-1/FATAL] [mixin/]: Mixin apply failed imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> net.minecraft.world.chunk.ChunkStatus: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] at org.spongepowered.asm.mixin.injection.code.Injector.checkTargetModifiers(Injector.java:347) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.sanityCheck(CallbackInjector.java:387) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.code.Injector.find(Injector.java:237) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.prepare(InjectionInfo.java:421) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1319) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) ~[mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) [mixin-0.8.4.jar:0.8.4+Jenkins-b308.git-2accda5000f7602229606b39437565542cc6fba4] 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:?] at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [modlauncher-8.0.9.jar:?] at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [?:1.8.0_51] at net.minecraftforge.registries.GameData.init(GameData.java:177) [?:?] at net.minecraftforge.registries.GameData.<clinit>(GameData.java:132) [?:?] at net.minecraft.util.registry.Registry.forge(Registry.java:347) [?:?] at net.minecraft.util.registry.Registry.forge(Registry.java:331) [?:?] at net.minecraft.util.registry.Registry.<clinit>(Registry.java:140) [?:?] at net.minecraft.util.registry.Bootstrap.func_151354_b(Bootstrap.java:38) [?:?] at net.minecraft.client.main.Main.lambda$main$0(Main.java:123) [?:?] at net.minecraft.client.main.Main$$Lambda$596/639542871.run(Unknown Source) [?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_51] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_51] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] [25Oct2021 17:00:03.119] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:39) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:54) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:72) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.run(Launcher.java:82) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1052]: at cpw.mods.modlauncher.Launcher.main(Launcher.java:66) [25Oct2021 17:00:03.120] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: Caused by: java.lang.reflect.InvocationTargetException [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at java.lang.reflect.Method.invoke(Method.java:497) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.loading.FMLClientLaunchProvider.lambda$launchService$0(FMLClientLaunchProvider.java:51) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at net.minecraftforge.fml.loading.FMLClientLaunchProvider$$Lambda$493/1232703108.call(Unknown Source) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:37) [25Oct2021 17:00:03.121] [main/INFO] [STDERR/]: [java.lang.ThreadGroup:uncaughtException:1061]: ... 4 more [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: Caused by: java.lang.RuntimeException: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraftforge.fml.loading.BackgroundWaiter.runAndTick(BackgroundWaiter.java:43) [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: at net.minecraft.client.main.Main.main(Main.java:123) [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:643]: ... 11 more [25Oct2021 17:00:03.122] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: Caused by: org.spongepowered.asm.mixin.transformer.throwables.MixinTransformerError: An unexpected critical error was encountered [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:392) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:154) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) [25Oct2021 17:00:03.123] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.lang.ClassLoader.loadClass(ClassLoader.java:357) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraftforge.registries.GameData.init(GameData.java:177) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraftforge.registries.GameData.<clinit>(GameData.java:132) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.forge(Registry.java:347) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.forge(Registry.java:331) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Registry.<clinit>(Registry.java:140) [25Oct2021 17:00:03.124] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.util.registry.Bootstrap.func_151354_b(Bootstrap.java:38) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.client.main.Main.lambda$main$0(Main.java:123) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at net.minecraft.client.main.Main$$Lambda$596/639542871.run(Unknown Source) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.FutureTask.run(FutureTask.java:266) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printStackTrace:667]: at java.lang.Thread.run(Thread.java:745) [25Oct2021 17:00:03.125] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: Caused by: org.spongepowered.asm.mixin.throwables.MixinApplyError: Mixin [imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus] from phase [DEFAULT] in config [imm_ptl_peripheral_mixins.json] FAILED during APPLY [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinError(MixinProcessor.java:636) [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.handleMixinApplyError(MixinProcessor.java:588) [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:379) [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: ... 23 more [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: Caused by: org.spongepowered.asm.mixin.injection.throwables.InvalidInjectionException: 'static' modifier of handler method does not match target in net/minecraft/world/chunk/ChunkStatus::redirectBuildSurface [PREINJECT Applicator Phase -> imm_ptl_peripheral_mixins.json:common.altius_world.MixinChunkStatus -> Prepare Injections -> -> handler$zia000$redirectBuildSurface(Lnet/minecraft/world/server/ServerWorld;Lnet/minecraft/world/gen/ChunkGenerator;Ljava/util/List;Lnet/minecraft/world/chunk/IChunk;Lorg/spongepowered/asm/mixin/injection/callback/CallbackInfo;)V -> Prepare] [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.code.Injector.checkTargetModifiers(Injector.java:347) [25Oct2021 17:00:03.126] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.callback.CallbackInjector.sanityCheck(CallbackInjector.java:387) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.code.Injector.find(Injector.java:237) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.injection.struct.InjectionInfo.prepare(InjectionInfo.java:421) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinTargetContext.prepareInjections(MixinTargetContext.java:1319) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.prepareInjections(MixinApplicatorStandard.java:1042) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.applyMixin(MixinApplicatorStandard.java:393) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinApplicatorStandard.apply(MixinApplicatorStandard.java:325) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.TargetClassContext.apply(TargetClassContext.java:383) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.TargetClassContext.applyMixins(TargetClassContext.java:365) [25Oct2021 17:00:03.127] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: at org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:363) [25Oct2021 17:00:03.128] [main/INFO] [STDERR/]: [java.lang.Throwable:printEnclosedStackTrace:709]: ... 23 more  
    • There is always a log. Post the debug.log from the logs folder.
    • At first, I had thought a mod was causing the crash, but after testing each mod individually, every one seemed to make forge crash, forge only loaded with no mods in the mod folder. Forge crashes when it's finished finding modfiles to load.   Minecraft isn't even creating a log for it
    • I fixed it.. or actually found another way of joining the server. I actually downloaded the version Forge 1.16.5 36.2.0 onto my minecraft folder directly and placed all my mods into the mods file of .minecraft. Thanks for your help and I'm sorry I made you lose your time on me. Have a nice day!
  • Topics

  • Who's Online (See full list)

×
×
  • Create New...

Important Information

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