mojira.dev
MC-227387

World gen datapacks will likely crash or softlock the game

The Bug

In 1.17 Release Candidate 1, creating a world with a datapack will most of the time crash the game, or sometimes give a crash report with a java.lang.ArrayIndexOutOfBoundsException. It may take multiple attempts to reproduce the bug.

How to Reproduce

  1. Use the datapack

[media]
  1. Type in the seed 1 using default world type

  2. Load the world

The Error

It will most of the time softlock the game while generating the world, leaving a glitchy screen. Or the other hand, it will crash the game with a crash report, usually like this

[media]

Attachments

Comments 3

Wrong Java version needs to be Java 16

I fixed the Java Version

As a workaround: Make sure to limit the values of min_y and height in worldgen/noise_settings/* to be at maximum the values they are in the corresponding dimension_type.

KingSheepMC

Panda4994

Confirmed

Very Important

Data Packs

1.17 Release Candidate 1, 1.17 Release Candidate 2, 1.17

1.17.1 Pre-release 1

Retrieved