This update contains a new generator "replace", which will replace matching blocks in new chunks with your block. In addition, it adds a new "biome" option under generators that allows you to make your generator only work in certain biomes. For a list of valid biomes, visit
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/block/Biome.html
Code (YAML):
name
:
"My Custom Grass"
item:
material
: GOLD_BLOCK
canBeUsedGenerically
: false
canBePlaced
: true
block:
generation
:
-
method
: replace
blockTypes
:
-
"minecraft:GRASS"
worlds
:
- world
biomes
:
-
"DESERT"
-
"FOREST"
generationChance
: 0.95
# If generationAmount isn't set, the generator will replace all of the matching blocks
minY
: 20