Skip to content

Different CobbleGens disable eachother when their only restriction is Y-level (min or max, regardless of overlap) #95

@wtfC4ra

Description

@wtfC4ra

Steps to reproduce

{
  "advanced": {
    "minecraft:lava": {
      "minecraft:water": {
        "resultsFromTop": {
            "*": [  // wildcard, accept any block as modifier
              {
                "id": "minecraft:deepslate",
                "weight": 100.0,
                "maxY":0.0
              }
            ],
            "*": [
              {
                "id": "minecraft:andesite",
                "weight":100.0,
                "minY":190.0
              }
            ]
          },
        // cobblestone generator
        "results": {
          "*":[
            {
              "id": "minecraft:cobbled_deepslate",
              "weight":100.0,
              "maxY":0.0
            }
          ],
          "*": [
            {
              "id": "minecraft:andesite",
              "weight":100.0,
              "minY":190.0
            }
          ]
        }
      }
    }
  }
}

build a cobble generator - flowing water into flowing lava - at Y>190, and Y<0.

Expected behavior

In the example provided, Deepslate should generate below Y=0, and Andesite should generate above Y=190.
generators that only have Y level requirements that do not overlap with other generators also of Y level requirements should not prevent one or the other from generating

Actual behavior

whichever generator appears first in the config will generate cobblestone (or stone for "resultsFromTop"). in this case provided, Deepslate does not generate in any circumstance.
This remains true so long as the modifier is the same for both, and the only restriction for each generator is Y-level.
different modifier blocks for each allow the generator to behave as expected.

Crash logs

No response

Mod version

5.4.8-BETA

Game version

1.21.1

Modloader

NeoForge

Other details

No response

Acknowledgements

  • I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I have updated the mod to version 5.4.8.
  • I have admitted that I am a clown by having checked this box, as I have not read these acknowledgements.
  • I have filled out all of the requested information in this form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions