Realistic Ore Veins

Realistic Ore Veins

310k Downloads

Start pos of veins should be implemented as part of VeinType

Assaders opened this issue ยท 0 comments

commented

BlockPos startPos = new BlockPos(
chunkX * 16 + rand.nextInt(16),
type.minY + rand.nextInt(type.maxY - type.minY),
chunkZ * 16 + rand.nextInt(16)
);

This code can be a part of VeinType class for future reimplementation. Current state of code causes wrong behavior. For example, large vertical-sized veins can spawn near top/bottom of their y-border, and get truncated. To avoid this, each vein type can have its own logic for vein pos generating (shift from border for example above). So, vein pos generating must be handled by each vein type individually in VeinType class.