the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at main 24 lines 532 B view raw
1#include "stdafx.h" 2#include "net.minecraft.world.level.newbiome.layer.h" 3 4RiverInitLayer::RiverInitLayer(__int64 seed, shared_ptr<Layer>parent) : Layer(seed) 5{ 6 this->parent = parent; 7} 8 9intArray RiverInitLayer::getArea(int xo, int yo, int w, int h) 10{ 11 intArray b = parent->getArea(xo, yo, w, h); 12 13 intArray result = IntCache::allocate(w * h); 14 for (int y = 0; y < h; y++) 15 { 16 for (int x = 0; x < w; x++) 17 { 18 initRandom(x + xo, y + yo); 19 result[x + y * w] = b[x + y * w] > 0 ? nextRandom(2) + 2 : 0; 20 } 21 } 22 23 return result; 24}