mojira.dev
MC-273171

Game crashes when one of the vanilla damage types is removed with a data pack / java.lang.IllegalStateException: Missing key in ResourceKey[minecraft:root / minecraft:damage_type]: ResourceKey[minecraft:damage_type / minecraft:<damage_type>]

When a vanilla damage type is blocked by a data pack, the server crashes when loading data packs.

How to reproduce:

  1. In the singleplayer world list, click "Create New World."

  2. Add the attached data pack (

[media]
  1. ) in the data packs screen.

  2. Create the world.

Expected result:

The game loads fine, but without the removed damage type.

Observed result:

The game crashes upon trying to load the data pack.

Attachments

Comments 2

Thank you for your report!
After consideration, the issue is being closed as Won't Fix.

Please note that this is not the same as Working as Intended, as this bug report correctly describes behavior in the game that might not be the intended or desirable behavior, but it will not be fixed right now. Sometimes, this is because the issue reported is minor and/or impossible to change without large architectural changes to the code base.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

[Mod] ManosSef

(Unassigned)

Community Consensus

Crash

1.20.6, 1.21 Pre-Release 4

Retrieved