Game Crashes When Mob Attacks Player

Started by MemerTeamerYT on

Topic category: Help with MCreator software

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Game Crashes When Mob Attacks Player

I've been working on a mod with a bunch of mobs, most of which have Techne models. When they attack the player, the player is effected in some way with damage or a potion effect. Then I decided to give Blockbench a try, and made a mob with a model made with it. When the mob attacks the player, the game crashes. A few days ago, I asked for a team to help with my mod, and an expert Blockbench modeler helped me with the mod and made a model for another mob in the mod. Sure enough, when it attacked me, the game crashed. I'm sure it was because the model was from Blockbench, and I'm also sure that it wasn't my modeler's fault as I know he make models for his own mods and they work. I just don't know if I'm missing something when implementing the models.

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please provide logs, as…
Fri, 08/28/2020 - 19:50

Please provide logs, as these are essential in figuring out these things.

To find grade client logs: Go to mcreator workspaces folder, open your mod folder, and then open the run folder. Double click on the latest logs to open, then copy/paste them onto a paste sharing website and provide a link.

To find mcreator logs: Go to the .mcreator folder, open to the logs folder, then double click on the latest logs to open, then copy/paste them onto a paste sharing website and provide a link.

To find minecraft logs: Go to library/application support/minecraft/logs. Double click on the latest logs to open, then copy/paste them onto a paste sharing website and provide a link.

To find minecraft crash reports: Go to library/application support/minecraft/crash reports. Double click on the latest logs to open, then copy/paste them onto a paste sharing website and provide a link.

 

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[26Aug2020 13:23:22.154] …
Fri, 08/28/2020 - 20:51

[26Aug2020 13:23:22.154] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: Encountered an unexpected exception
net.minecraft.crash.ReportedException: Ticking entity
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:890) ~[?:?]
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821) ~[?:?]
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120) ~[?:?]
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:662) [?:?]
    at java.lang.Thread.run(Thread.java:748) [?:1.8.0_252]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 4
    at java.util.Arrays$ArrayList.get(Arrays.java:3841) ~[?:1.8.0_252]
    at net.minecraft.util.NonNullList.get(NonNullList.java:45) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?]
    at net.mcreator.gloryofthejourney.procedures.CactusArmorCauseIrritationProcedureProcedure.executeProcedure(CactusArmorCauseIrritationProcedureProcedure.java:45) ~[main/:?]
    at net.mcreator.gloryofthejourney.procedures.CactusArmorCauseIrritationProcedureProcedure.onEntityAttacked(CactusArmorCauseIrritationProcedureProcedure.java:71) ~[main/:?]
    at net.minecraftforge.eventbus.ASMEventHandler_17_CactusArmorCauseIrritationProcedureProcedure_onEntityAttacked_LivingAttackEvent.invoke(.dynamic) ~[?:?]
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.0-service.jar:?]
    at net.minecraftforge.common.ForgeHooks.onPlayerAttack(ForgeHooks.java:325) ~[?:?]
    at net.minecraft.entity.player.PlayerEntity.attackEntityFrom(PlayerEntity.java:897) ~[?:?]
    at net.minecraft.entity.player.ServerPlayerEntity.attackEntityFrom(ServerPlayerEntity.java:565) ~[?:?]
    at net.minecraft.entity.MobEntity.attackEntityAsMob(MobEntity.java:1291) ~[?:?]
    at net.minecraft.entity.ai.goal.MeleeAttackGoal.checkAndPerformAttack(MeleeAttackGoal.java:154) ~[?:?]
    at net.minecraft.entity.ai.goal.MeleeAttackGoal.tick(MeleeAttackGoal.java:146) ~[?:?]
    at net.minecraft.entity.ai.goal.PrioritizedGoal.tick(PrioritizedGoal.java:63) ~[?:?]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:1.8.0_252]
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_252]
    at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_252]
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_252]
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_252]
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_252]
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:1.8.0_252]
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:1.8.0_252]
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_252]
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) ~[?:1.8.0_252]
    at net.minecraft.entity.ai.goal.GoalSelector.tick(GoalSelector.java:89) ~[?:?]
    at net.minecraft.entity.MobEntity.updateEntityActionState(MobEntity.java:652) ~[?:?]
    at net.minecraft.entity.LivingEntity.livingTick(LivingEntity.java:2426) ~[?:?]
    at net.minecraft.entity.MobEntity.livingTick(MobEntity.java:512) ~[?:?]
    at net.minecraft.entity.monster.MonsterEntity.livingTick(MonsterEntity.java:41) ~[?:?]
    at net.minecraft.entity.LivingEntity.tick(LivingEntity.java:2264) ~[?:?]
    at net.minecraft.entity.MobEntity.tick(MobEntity.java:311) ~[?:?]
    at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:615) ~[?:?]
    at net.minecraft.world.World.guardEntityTick(World.java:586) ~[?:?]
    at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:404) ~[?:?]
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:886) ~[?:?]
    ... 4 more
[26Aug2020 13:23:22.167] [Server thread/ERROR] [net.minecraft.server.MinecraftServer/]: This crash report has been saved to: C:\Users\sboll\MCreatorWorkspaces\glory_of_the_journey\run\.\crash-reports\crash-2020-08-26_13.23.22-server.txt
[26Aug2020 13:23:22.167] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Stopping server
[26Aug2020 13:23:22.167] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Saving players
[26Aug2020 13:23:22.172] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:printToSYSOUT:110]: ---- Minecraft Crash Report ----
// My bad.

Time: 8/26/20 1:23 PM
Description: Ticking entity

java.lang.ArrayIndexOutOfBoundsException: 4
    at java.util.Arrays$ArrayList.get(Arrays.java:3841) ~[?:1.8.0_252] {}
    at net.minecraft.util.NonNullList.get(NonNullList.java:45) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {re:classloading}
    at net.mcreator.gloryofthejourney.procedures.CactusArmorCauseIrritationProcedureProcedure.executeProcedure(CactusArmorCauseIrritationProcedureProcedure.java:45) ~[main/:?] {re:classloading}
    at net.mcreator.gloryofthejourney.procedures.CactusArmorCauseIrritationProcedureProcedure.onEntityAttacked(CactusArmorCauseIrritationProcedureProcedure.java:71) ~[main/:?] {re:classloading}
    at net.minecraftforge.eventbus.ASMEventHandler_17_CactusArmorCauseIrritationProcedureProcedure_onEntityAttacked_LivingAttackEvent.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-2.2.0-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-2.2.0-service.jar:?] {}
    at net.minecraftforge.common.ForgeHooks.onPlayerAttack(ForgeHooks.java:325) ~[?:?] {re:classloading}
    at net.minecraft.entity.player.PlayerEntity.attackEntityFrom(PlayerEntity.java:897) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.entity.player.ServerPlayerEntity.attackEntityFrom(ServerPlayerEntity.java:565) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.entity.MobEntity.attackEntityAsMob(MobEntity.java:1291) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.entity.ai.goal.MeleeAttackGoal.checkAndPerformAttack(MeleeAttackGoal.java:154) ~[?:?] {re:classloading}
    at net.minecraft.entity.ai.goal.MeleeAttackGoal.tick(MeleeAttackGoal.java:146) ~[?:?] {re:classloading}
    at net.minecraft.entity.ai.goal.PrioritizedGoal.tick(PrioritizedGoal.java:63) ~[?:?] {re:classloading}
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:1.8.0_252] {}
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175) ~[?:1.8.0_252] {}
    at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[?:1.8.0_252] {}
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[?:1.8.0_252] {}
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_252] {}
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_252] {}
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:1.8.0_252] {}
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:1.8.0_252] {}
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_252] {}
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485) ~[?:1.8.0_252] {}
    at net.minecraft.entity.ai.goal.GoalSelector.tick(GoalSelector.java:89) ~[?:?] {re:classloading}
    at net.minecraft.entity.MobEntity.updateEntityActionState(MobEntity.java:652) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.entity.LivingEntity.livingTick(LivingEntity.java:2426) ~[?:?] {re:classloading}
    at net.minecraft.entity.MobEntity.livingTick(MobEntity.java:512) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.entity.monster.MonsterEntity.livingTick(MonsterEntity.java:41) ~[?:?] {re:classloading}
    at net.minecraft.entity.LivingEntity.tick(LivingEntity.java:2264) ~[?:?] {re:classloading}
    at net.minecraft.entity.MobEntity.tick(MobEntity.java:311) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:615) ~[?:?] {re:classloading}
    at net.minecraft.world.World.guardEntityTick(World.java:586) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:404) ~[?:?] {re:classloading}
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:886) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120) ~[?:?] {re:classloading,pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:662) ~[?:?] {re:classloading,pl:accesstransformer:B}
    at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_252] {}

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

-- Head --
Thread: Render thread
Stacktrace:
    at java.util.Arrays$ArrayList.get(Arrays.java:3841)
    at net.minecraft.util.NonNullList.get(NonNullList.java:45)
    at net.mcreator.gloryofthejourney.procedures.CactusArmorCauseIrritationProcedureProcedure.executeProcedure(CactusArmorCauseIrritationProcedureProcedure.java:45)
    at net.mcreator.gloryofthejourney.procedures.CactusArmorCauseIrritationProcedureProcedure.onEntityAttacked(CactusArmorCauseIrritationProcedureProcedure.java:71)
    at net.minecraftforge.eventbus.ASMEventHandler_17_CactusArmorCauseIrritationProcedureProcedure_onEntityAttacked_LivingAttackEvent.invoke(.dynamic)
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
    at net.minecraftforge.common.ForgeHooks.onPlayerAttack(ForgeHooks.java:325)
    at net.minecraft.entity.player.PlayerEntity.attackEntityFrom(PlayerEntity.java:897)
    at net.minecraft.entity.player.ServerPlayerEntity.attackEntityFrom(ServerPlayerEntity.java:565)
    at net.minecraft.entity.MobEntity.attackEntityAsMob(MobEntity.java:1291)
    at net.minecraft.entity.ai.goal.MeleeAttackGoal.checkAndPerformAttack(MeleeAttackGoal.java:154)
    at net.minecraft.entity.ai.goal.MeleeAttackGoal.tick(MeleeAttackGoal.java:146)
    at net.minecraft.entity.ai.goal.PrioritizedGoal.tick(PrioritizedGoal.java:63)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
    at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
    at java.util.Iterator.forEachRemaining(Iterator.java:116)
    at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
    at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
    at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
    at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
    at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
    at net.minecraft.entity.ai.goal.GoalSelector.tick(GoalSelector.java:89)
    at net.minecraft.entity.MobEntity.updateEntityActionState(MobEntity.java:652)
    at net.minecraft.entity.LivingEntity.livingTick(LivingEntity.java:2426)
    at net.minecraft.entity.MobEntity.livingTick(MobEntity.java:512)
    at net.minecraft.entity.monster.MonsterEntity.livingTick(MonsterEntity.java:41)
    at net.minecraft.entity.LivingEntity.tick(LivingEntity.java:2264)
    at net.minecraft.entity.MobEntity.tick(MobEntity.java:311)
    at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:615)

-- Entity being ticked --
Details:
    Entity Type: glory_of_the_journey:sobek (net.mcreator.gloryofthejourney.entity.SobekEntity.CustomEntity)
    Entity ID: 971
    Entity Name: Sobek
    Entity's Exact location: 64.99, 64.00, 233.93
    Entity's Block location: World: (64,64,233), Chunk: (at 0,4,9 in 4,14; contains blocks 64,0,224 to 79,255,239), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Entity's Momentum: 0.14, -0.08, -0.04
    Entity's Passengers: []
    Entity's Vehicle: ~~ERROR~~ NullPointerException: null
Stacktrace:
    at net.minecraft.world.World.guardEntityTick(World.java:586)
    at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:404)

-- Affected level --
Details:
    All players: 1 total; [ServerPlayerEntity['Dev'/138, l='New World', x=66.05, y=64.00, z=232.13]]
    Chunk stats: ServerChunkCache: 2899
    Level dimension: DimensionType{minecraft:overworld}
    Level name: New World
    Level seed: 8581074187381641636
    Level generator: ID 00 - default, ver 1. Features enabled: true
    Level generator options: {}
    Level spawn location: World: (160,64,240), Chunk: (at 0,4,0 in 10,15; contains blocks 160,0,240 to 175,255,255), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 1540 game time, 1540 day time
    Known server brands: forge
    Level was modded: true
    Level storage version: 0x04ABD - Anvil
    Level weather: Rain time: 131595 (now: false), thunder time: 169536 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: true
Stacktrace:
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:886)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:120)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:662)
    at java.lang.Thread.run(Thread.java:748)

-- System Details --
Details:
    Minecraft Version: 1.15.2
    Minecraft Version ID: 1.15.2
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_252, BellSoft
    Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), BellSoft
    Memory: 859180096 bytes (819 MB) / 2545942528 bytes (2428 MB) up to 3803185152 bytes (3627 MB)
    CPUs: 16
    JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
    ModLauncher: 5.1.2+70+master.2845bb9
    ModLauncher launch target: fmluserdevclient
    ModLauncher naming: mcp
    ModLauncher services: 
        /eventbus-2.2.0-service.jar eventbus PLUGINSERVICE 
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-2.1.1-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar runtimedistcleaner PLUGINSERVICE 
        /forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-launcher.jar fml TRANSFORMATIONSERVICE 
    FML: 31.2
    Forge: net.minecraftforge:31.2.0
    FML Language Providers: 
        javafml@31.2
        minecraft@1
    Mod List: 
        client-extra.jar Minecraft {minecraft@1.15.2 DONE}
        main Glory Of The Journey {glory_of_the_journey@1.0.0 DONE}
        forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar Forge {forge@31.2.0 DONE}
    Player Count: 1 / 8; [ServerPlayerEntity['Dev'/138, l='New World', x=66.05, y=64.00, z=232.13]]
    Data Packs: vanilla, mod:glory_of_the_journey, mod:forge (incompatible)
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'
[26Aug2020 13:23:22.173] [Render thread/INFO] [STDOUT/]: [net.minecraft.util.registry.Bootstrap:printToSYSOUT:110]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2020-08-26_13.23.22-server.txt

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please paste your logs onto…
Sun, 08/30/2020 - 03:17

Please paste your logs onto a paste website like pastebin.com then provide a link. 

Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2020-08-26_13.23.22-server.txt

Also, these aren't the right logs.

Joined Feb 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nvm i was able to find the…
Fri, 09/11/2020 - 18:16

nvm i was able to find the problem

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well thats always a good…
Fri, 09/11/2020 - 19:09

Well thats always a good thing