mojira.dev
MC-311755

The game crashes when running a game test specifying a nonexistent dimension

When you run test instances which are specified a non-extsting dimension in this world, the game will attempt to get data from a unexisting dimension, then game crashed. It affects test instance block and gametest server.

Command /test can verify dimensions to prevent game crashing, so I think other ways of running gametest should also check if dimenion existing.

How to Reproduce

  1. Load this data pack. this data pack add a new test instance minecraft:test, which is specified test dimension minecraft:non_existing_dimension.

  2. Run this test instance by test instance block, or use gametest server (java -DbundlerMainClass=net.minecraft.gametest.Main -jar server.jar -packs <pack directory>).

Expected Result

The game should not be crashed.

Observed Result

The game crashed.

The crash-2026-09-08_11.42.43-server.txt are created by gametest server, the crash-2026-09-08_11.39.45-server.txt are created by test instance block.

Attachments

Comments 1

Thank you for helping us improve Minecraft! We saved your files:

[media][media][media]

wplx

(Unassigned)

Confirmed

Platform

Low

Data Packs, Debug

26.3 Pre-Release 2, 26.3

Retrieved