Skip to content

Instantly share code, notes, and snippets.

@NielsPilgaard
Last active December 11, 2018 21:52
Show Gist options
  • Save NielsPilgaard/b7131704ed5df4eab8bc8b3f45b118c4 to your computer and use it in GitHub Desktop.
Save NielsPilgaard/b7131704ed5df4eab8bc8b3f45b118c4 to your computer and use it in GitHub Desktop.
import mods.oreveins.Cluster;
for material in materials {
Cluster.newBuilder("nameOfGeneration" + material.name) // Identifier for the generation, does nothing
.addType("oreveins:sphere") // Type of vein
.addOre(materials[material].ore) // Ore
.addMaterial(<minecraft:stone:*>) // Material to generate in
.setRarity(40)
.setMinY(12)
.SetMaxY(128)
.SetDensity(120)
.SetVerticalSize(20)
.SetHorizontalSize(10)
.build(); // Creates the recipe
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment