mojira.dev
MC-189738

registries.json report missing dimension-related registries

The bug

The registries.json report is missing the following registries:

  • dimension

  • dimension_type

  • level_stem

  • worldgen/*

Code analysis

Misnamed registry

While analysing the code with Mojang's mappings to find the cause of this issue, I noticed that one registry key is faultily named:
net.minecraft.core.Registry

public static final ResourceKey<Registry<Level>> DIMENSION_REGISTRY = Registry.createRegistryKey("dimension");
public static final ResourceKey<Registry<LevelStem>> LEVEL_STEM_REGISTRY = Registry.createRegistryKey("dimension");

The LEVEL_STEM_REGISTRY has the same key as DIMENSION_REGISTRY.

Cause

The reason that the listed registries aren't added to the registries.json is that the registries are never registered themselves. Their keys are registered, but the registries themselves are not.

Comments 1

AlexMCool

(Unassigned)

Confirmed

Low

Custom Worlds

1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, ..., 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2, 1.16.4, 20w46a

Retrieved