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