
//Sets the DimensionDefinition for dimension 0 and stores it as a variable.
overworld = setDimensionDefinition(0)

//Adds a BlockReplacement of type "Full" to the DimensionDefinition variable we named "overworld", and configures it to replace grass with glass in plains biomes.
replacement = overworld.addBlockReplacement("Full")

//This generation point is just after grass is placed.
replacement.addGenerationPoint("POPULATE_CHUNK_PRE")
replacement.setBlockToReplace("minecraft:grass")
replacement.setReplacement("minecraft:glass")

//Plains biome only
replacement.setBiome("Plains")

//Under 62 is water, and plains don't go up too high.
replacement.setYMinMax(62, 80)