Worldgen Wiki incorrect/misleading info
Apollounknowndev opened this issue ยท 3 comments
This may be the wrong place for this, if so I'm sorry :P
The example script for adding an ore is incorrect. Example script, lines 14 to 17:
ore.addTarget([
'minecraft:gravel', // replace gravel...
/minecraft:(.*)_dirt/ // or any kind of dirt (including coarse, rooted, etc.)...
], 'minecraft:tnt') // with TNT (trust me, it'll be funny)
This regex doesn't target regular dirt. Instead of using a regex, it should reference #minecraft:dirt
which automatically targets all dirt/grass blocks, both vanilla and modded.
Marked this as documentation related, hopefully I remember to fix this during the wiki migration
Dirt veins are spawned during the UNDERGROUND_ORES stage: https://github.com/misode/mcmeta/blob/ef461e15706042769ef417437536ed6bc5b4f1d0/data/minecraft/worldgen/biome/beach.json#L38C18-L38C26