ChaoticTrials / SkyblockBuilder

Let you create a custom skyblock island via config
https://modrinth.com/mod/skyblock-builder
Apache License 2.0
8 stars 6 forks source link

Rework layer config #165

Open MelanX opened 6 months ago

MelanX commented 6 months ago

Describe your idea

Add a way to randomly generate some other blocks in each layer, but still keep the way current way to do it. Now:

"minecraft:overworld": "minecraft:bedrock,63*minecraft:blackstone,319*minecraft:stone,minecraft:bedrock"

Then, same output:

"minecraft:overworld": [
  {
    "block": "minecraft:bedrock"
  },
  {
    "amount": 63,
    "block": "minecraft:blackstone"
  },
  {
    "amount": 319,
    "block": "minecraft:stone"
  },
  {
    "block": "minecraft:bedrock"
  }
]

Similar, but layer 65-69 will have 30% chance to generate infested stone or cobblestone, chosen by weight:

"minecraft:overworld": [
  {
    "block": "minecraft:bedrock"
  },
  {
    "amount": 63,
    "block": "minecraft:blackstone"
  },
  {
    "amount": 5,
    "block": "minecraft:stone",
    "extras": {
      "chance": 0.3,
      "blocks": [
        {
          "block": "minecraft:infested_stone",
          "weight": 9
        },
        {
          "block": "minecraft:cobblestone"
        }
      ]
    }
  },
  {
    "amount": 314,
    "block": "minecraft:stone"
  },
  {
    "block": "minecraft:bedrock"
  }
]