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

Badlands are viewed as a mountainous biome for Ruined Portals

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w17a
    • 20w16a
    • None
    • Unconfirmed
    • (Unassigned)

    Description

      The badlands biome has the ruined portal type set to "Mountain". This matters because, as part of the mountain type, 50% of ruined portals spawn at level 70 and above. The basic badlands biome, the red sand desert, is not mountainous and will rarely allow for this type of generation. This means ruined portal generation will be greatly decreased in this biome.

      Relevant pieces of code:

      Badlands ruined portal definer:

      this.addStructureStart(Feature.RUINED_PORTAL.configured(new RuinedPortalConfiguration(RuinedPortalFeature.Type.MOUNTAIN)));
      

      Height definer for "in_mountains" portals. 50% of the portals with the "mountains" type use this:

      else if (verticalPlacement == RuinedPortalPiece.VerticalPlacement.IN_MOUNTAIN) {
      n4 = n - n2;
      n5 = RuinedPortalFeature.getRandomWithinInterval(random, 70, n4);
      

      Attachments

        Activity

          People

            hkniberg [Mojang] Henrik Kniberg
            PancakeIdentity PancakeIdentity
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: