Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-189738

registries.json report missing dimension-related registries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Works As Intended
    • None
    • 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, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Pre-release 3, 1.16.2 Release Candidate 1, 1.16.2, 1.16.4, 20w46a
    • None
    • Confirmed
    • Custom Worlds
    • Low

      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.

            Unassigned Unassigned
            AlexMCool Alex³
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: