Generates ore vein on the specified coordinates.
ore block ID
ore block data
ore amount, use at least 6
to be able to find generated
ore vein; note that amount doesn't mean blocks count, it is just an
input value for generation algorithm
if true
, no check for stone is performed so the ore
may be generated in the air; use this to debug ore generation in the
superflat worlds
Generates ore vein on the specified coordinates with custom whitelist/blacklist.
ore block ID
ore block data
ore amount, use at least 6
to be able to find generated
ore vein; note that amount doesn't mean blocks count, it is just an
input value for generation algorithm
if true
, specified block IDs are used as whitelist for generation
(only the IDs from the list can be replaced with ores); if false
, specified
block IDs are used as a blacklist (only the IDs from the list canNOT be
replaced with ores)
array of block IDs to be used as whitelist or blacklist
Generates ore vein on the specified coordinates using specified params.
vein generation params
Retrieves perlin noise value at the specified coordinates.
Optional
seed: numberinteger random generator seed. If not specified or set to 0, the default constant value is used
Optional
scale: numbernoise size, to set the main octave size, use 1 / octave size
Optional
numOctaves: numbernumber of octaves, the more octaves you use, the more detailed is the generated noise. The next octave is two times smaller then the previous one
Generates random coordinates inside specified chunk.
chunk x coordinate
chunk z coordinate
Optional
lowest: numberlowest possible y coordinate; default is 0
Optional
highest: numberhighest possible y coordinate; default is 128
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Module used to simplify generation tasks in mods logic.