generate: makes a block appear in veins in newly generated chunks, like vanilla ores. The veins are placed by vanilla’s own ore code, so they’re shaped exactly like iron or coal veins.
items/ores/ruby_ore.yml
Options
range
default:"-64..64"
The lowest and highest Y a vein can start at, like
-64..16 (-64 to 16 works too). Veins are spread evenly across the range. The default is 10..117 in the nether and 0..128 in the end. Parts of the range outside the world are ignored.number
default:"4"
How many veins each chunk tries to place, from 0 to 256. Fractions work:
0.5 is a vein in about every other chunk, 2.3 is 2 per chunk plus a third one 30% of the time. For comparison, vanilla iron is around 10 and diamonds around 7 below Y 16.number
default:"8"
How many blocks a vein tries to place, from 1 to 64. Vanilla coal is 17, iron 9, diamond 4 to 12. Only blocks it can replace (see
replace) become ore, so real veins are often smaller.block id
Another Lode Items block to use where the vein runs through deepslate and tuff, like vanilla’s deepslate ores. Without it, the block itself is used there too. Overworld only.
list
The blocks a vein may replace, by id or Without it, a vein replaces what vanilla ores replace: stone, granite, diorite, andesite, deepslate and tuff in the overworld, netherrack, basalt and blackstone in the nether, and end stone in the end. If you set
#tag:replace, deepslate is only replaced when deepslate: is given too.text
default:"overworld"
overworld, nether or end. Each rule generates in worlds of that kind only.list
Only these worlds, by name:
worlds: [world, mining]. Without it, every world of the right dimension, including ones loaded later.list
Only in these biomes, by id or
#tag: biomes: [desert, "#minecraft:is_badlands"]. The biome is checked where each vein starts.The chance to skip each block that would touch air, so less ore shows in cave walls. Vanilla diamonds use
0.5, ancient debris 1.Several rules
Give a list to generate a block in more than one way, for example common small veins high up and rare big ones deep down, or once in the overworld and once in the nether:Good to know
- Generated ore is a normal custom block. It costs the same as stone to store, and it drops and mines like a placed one.
- Changes to
generate:apply on/lodeitems reload, but only to chunks generated after that. - A mistake in one rule (an unknown biome, a
deepslate:that isn’t a Lode Items block) skips that rule and says why. The block itself still loads.
