Epic Fight

Epic Fight

13M Downloads

[Bug|Crash]: ender dragon causes crash when spawned in the overworld via commands

oliverrook opened this issue ยท 14 comments

commented

Have you checked if a similar issue is already reported by someone else?

  • I checked there are no similar issues have been reported.

Have you read the support policy?

  • I read it and I accept the policy.

Are you using the latest Epic Fight and recommended Forge version?

  • I checked I'm using latest Epic Fight and recommended Forge version.

Is this issue related to mod incompatibility?

  • This is a mod compatibility issue and I'm aware of the problem.

The mod

No response

Minecraft Version

1.18.2

What happened?

Attempted to spawn the ender dragon in a creative flat world on the tunneler's dream preset in the overworld, using commands in the chat.
Upon spawning the game crashed instantly and the world can no longer be loaded into without crashing immediately upon exiting pause.

From the log file:

Description: Ticking entity

java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.dimension.end.EndDragonFight.m_64098_()" because the return value of "net.minecraft.world.entity.boss.enderdragon.EnderDragon.m_31158_()" is null
at yesman.epicfight.world.capabilities.entitypatch.boss.enderdragon.DragonFlyingPhase.findNewTarget(DragonFlyingPhase.java:60) ~[EpicFight-18.3.7.jar%23201!/:18.3.7] {re:classloading}
at yesman.epicfight.world.capabilities.entitypatch.boss.enderdragon.DragonFlyingPhase.m_6989_(DragonFlyingPhase.java:35) ~[EpicFight-18.3.7.jar%23201!/:18.3.7] {re:classloading}
at net.minecraft.world.entity.boss.enderdragon.EnderDragon.m_8107_(EnderDragon.java:227) ~[client-1.18.2-20220404.173914-srg.jar%23462!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B}
at net.minecraft.world.entity.LivingEntity.m_8119_(LivingEntity.java:2253)

commented

this is a common issue

commented

Hadn't seen any other issues referring to it crashing on 1.18.2
Or in the overworld

commented

epicfight revamps the enderdragon which causes the A.I. to break when spawned outside of the main island

commented

Go on the end in survival

commented

It's 1.18.2 not 1.16.5

commented

Closed the issue, as it's a known issue that should be avoided by the user

commented

Wasn't in survival, I was on a creative world. Was just testing stuff.

commented

epicfight revamps the enderdragon which causes the A.I. to break when spawned outside of the main island

Alright. Well I didn't see any known issues about it so I couldn't have known could I?

commented

Wasn't in survival, I was on a creative world. Was just testing stuff.

i know, thats whyb i'm telling you, if you want to go in the end, hop on the portal on survival mode

commented

epicfight revamps the enderdragon which causes the A.I. to break when spawned outside of the main island

Alright. Well I didn't see any known issues about it so I couldn't have known could I?

Well now you know and can avoid it in the future

commented

It's 1.18.2 not 1.16.5

my bad

commented

Summary:

Don't encounter the ender dragon in any other way than entering the end in survival

commented

I will say, not knowing how the code works but having a general understanding of programming, it might be possible to trick the game into thinking a dimension is the end when spawning in the ender dragon by having it so the ender dragon's ai references the dimension it's in via an reference variable rather than the one it's actually supposed to be in.

commented

I will say, not knowing how the code works but having a general understanding of programming, it might be possible to trick the game into thinking a dimension is the end when spawning in the ender dragon by having it so the ender dragon's ai references the dimension it's in via an reference variable rather than the one it's actually supposed to be in.

The main end island and it's structures are integrated into th ender dragon's A.I. so just making it think that it is in the end simply won't work