Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read "size" key in <namespace>/worldgen/structure/<name>.json to limit child structures. #92

Open
AdamRaichu opened this issue Apr 25, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@AdamRaichu
Copy link

See https://gist.github.com/GentlemanRevvnar/98a8f191f46d28f63592672022c41497#programming-the-structure

As we know we can set the "size" in the structure.json from the values of 1 to 7. What does this number mean? In simple terms is means how much substructures in progressing line can sprawl away from the parent structure.

For example if I set the "size" to 3, then only 3 substructures can generate in a progressing line.

image

Limiting generation based on this size value would be helpful.

@jacobsjo
Copy link
Owner

This is already implemented. Could you please specify what the issue is?

@jacobsjo jacobsjo added the more-info-needed Some information is missing label Apr 25, 2023
@AdamRaichu
Copy link
Author

§6AdamRaichu§r's Structures v1.0.0_.zip

This zip contains the file <zip root>/data/adamraichu/worldgen/structure/villager_graveyard_plains.json, which has the following contents.

{
  "type": "minecraft:jigsaw",
  "biomes": "#minecraft:has_structure/village_plains",
  "step": "surface_structures",
  "spawn_overrides": {
    "monster": {
      "spawns": [
        {
          "type": "minecraft:zombie",
          "weight": 0,
          "minCount": 0,
          "maxCount": 0
        },
        {
          "type": "minecraft:zombie_villager",
          "weight": 1,
          "minCount": 2,
          "maxCount": 4
        },
        {
          "type": "minecraft:skeleton",
          "weight": 2,
          "minCount": 2,
          "maxCount": 4
        }
      ],
      "bounding_box": "full"
    }
  },
  "terrain_adaptation": "beard_thin",
  "start_pool": "adamraichu:villager_graveyard_plains",
  "size": 1,
  "start_height": {
    "absolute": 0
  },
  "project_start_to_heightmap": "WORLD_SURFACE_WG",
  "max_distance_from_center": 80,
  "use_expansion_hack": false
}

Your app renders it like this.

image

@jacobsjo jacobsjo added bug Something isn't working and removed more-info-needed Some information is missing labels Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants