mojira.dev
MC-269393

Game crashes when wind charge hits entity

What I expected to happen was...:
Wind charge hits entity

What actually happened was...:
Game crashes and world cannot be relaunched without crashing

Steps to Reproduce:
1. Look at entity

2. Throw wind charge

3. Get crash report:
Description: Ticking entity
 
java.lang.IllegalStateException: Missing key in ResourceKey[minecraft:root / minecraft:damage_type]: ResourceKey[minecraft:damage_type / minecraft:wind_charge]
at ji.h(SourceFile:152)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at ji.g(SourceFile:152)
at bpk.a(SourceFile:81)
at bpk.c(SourceFile:214)
at clt.a(SourceFile:92)
at cld.a(SourceFile:174)
at clt.a(SourceFile:124)
at cks.l(SourceFile:85)
at clt.l(SourceFile:170)
at aqe.a(SourceFile:768)
at czu.a(SourceFile:491)
at aqe.a(SourceFile:406)
at due.a(SourceFile:54)
at aqe.a(SourceFile:370)
at net.minecraft.server.MinecraftServer.b(SourceFile:994)
at net.minecraft.server.MinecraftServer.a(SourceFile:885)
at gqs.a(SourceFile:113)
at net.minecraft.server.MinecraftServer.y(SourceFile:687)
at net.minecraft.server.MinecraftServer.a(SourceFile:272)
at java.base/java.lang.Thread.run(Thread.java:833)
 
 
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
 
– Head –
Thread: Server thread
Stacktrace:
at ji.h(SourceFile:152)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at ji.g(SourceFile:152)
at bpk.a(SourceFile:81)
at bpk.c(SourceFile:214)
at clt.a(SourceFile:92)
at cld.a(SourceFile:174)
at clt.a(SourceFile:124)
at cks.l(SourceFile:85)
at clt.l(SourceFile:170)
at aqe.a(SourceFile:768)
at czu.a(SourceFile:491)
at aqe.a(SourceFile:406)
at due.a(SourceFile:54)
 
– Entity being ticked –
Details:
Entity Type: minecraft:wind_charge (clv)
Entity ID: 67
Entity Name: Wind Charge
Entity's Exact location: -156.97, 5.06, 68.83
Entity's Block location: World: (-157,5,68), Section: (at 3,5,4 in -10,0,4; chunk contains blocks -160,-64,64 to -145,319,79), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,-64,0 to -1,319,511)
Entity's Momentum: -0.66, -1.20, 0.62
Entity's Passengers: []
Entity's Vehicle: null
Stacktrace:
at czu.a(SourceFile:491)
at aqe.a(SourceFile:406)
at due.a(SourceFile:54)
at aqe.a(SourceFile:370)
at net.minecraft.server.MinecraftServer.b(SourceFile:994)
at net.minecraft.server.MinecraftServer.a(SourceFile:885)
at gqs.a(SourceFile:113)
at net.minecraft.server.MinecraftServer.y(SourceFile:687)
at net.minecraft.server.MinecraftServer.a(SourceFile:272)
at java.base/java.lang.Thread.run(Thread.java:833)

Linked issues

Attachments

Comments 5

Based off this line, this seems like it could either be MC-267010, or caused by MC-267010
> "java.lang.IllegalStateException: Missing key in ResourceKey[minecraft:root / minecraft:damage_type]: ResourceKey[minecraft:damage_type / minecraft:wind_charge]"

I cannot reproduce this issue. Could you provie a video of the crash occuring, or more descriptive steps to reproduce it?

Can confirm. I was testing my datapack. I used Wind charge as base for projectile.

But for some reason I can't reproduce it now.

I reproduced it!

I created datapack that enables 1.21 experimental feature.
(Do not enable it in Experiments! It's important. Only by other datapacks!)

I summoned breeze_wind_charge and punched it to entity.

Game Crashed

Don't know why this is marked as fixed, I just experienced this in 24w13a with the exact crash report listed. World would crash on reopen until I deleted the entities folder entirely.

Edit: Nevermind, apparently I enabled the feature but forgot to enable the datapack in the first place. Whoops!

Josh DaBoss

slicedlime

Confirmed

Platform

Normal

Crash, Data Packs

24w11a

24w12a

Retrieved