228 Commits

Author SHA1 Message Date
Cubitect
71ca41e171 Readme and fixes
1) Updated readme for 1.18 API.
2) Nether biomes should be 2D and keep the legacy noise in 1.18.
3) Added wrapper for checkForBiomes() with the new generator.
2021-11-20 15:46:52 +01:00
Cubitect
9166974ccf Major redesign and 1.18 biome generation.
Different versions, dimensions and variations are now bundled into a single Generator structure.
Areas (x,z,w,h) are largely replaced with a Range structure that supports 3D cuboids with scaling.
The scale now acts as a generalization that replaces layer access. Direct layer access will
have to be version specific, using the LayerStack.
(I.e. this update will unfortunately break much of the API.)
2021-11-18 23:13:44 +01:00
Cubitect
cf14767ca3 Removed dynamic allocations from layer functions
smaller memory footprint and better cache usage
v21.11.18
2021-09-04 10:35:09 +02:00
Cubitect
b94c12e982 Fixed generation for MC 1.0 2021-07-23 19:56:59 +02:00
Cubitect
e61f4f1ebf Fixed end gateways for 1.17 2021-07-21 21:05:20 +02:00
Cubitect
389910035a Version dependence of large biomes 2021-07-19 18:11:36 +02:00
Cubitect
61a341e1f6 fixes for large biomes + more efficient mineshaft finder 2021-07-18 11:48:54 +02:00
Cubitect
3b65b4bbf7 Mineshafts for pre-1.13 2021-07-08 22:49:07 +02:00
Cubitect
cb66b41328 Made mineshafts usable with structure functions 2021-07-08 20:33:06 +02:00
Cubitect
bfbd421ef5 Added end gateways and nether ruined portals 2021-07-03 09:50:05 +02:00
Cubitect
e12acff608 Switch to uint64_t for seeds to improving C99 compliance
This is a fairly major change. Some functions involving structures still need testing.
2021-06-30 23:52:21 +02:00
Cubitect
6fda1caff8 Fixed wrong biomes list for fortresses + ranamed getConfig
1) suitable biomes for fortresses and bastions were swapped
2) renamed very generic getConfig to getStructureConfig
3) added potential way of overriding structure configs
2021-06-09 20:08:07 +02:00
Cubitect
963d09c85e tweaks 2021-06-08 22:47:57 +02:00
Cubitect
a4a422686e 1.17 + spelling + nether & end + fortresses
1) use americal spelling for color
2) added 1.17 biomes
3) added scaled generators for nether and end
4) made fortress finders functional
2021-06-06 17:00:35 +02:00
Cubitect
3a6a923553 Split end city validity and terrain checks 2021-06-04 00:10:43 +02:00
Cubitect
4195eab986 Added viability check for end cities + some functionality for end surface height 2021-06-03 16:38:08 +02:00
Cubitect
4ec1796806 Unroll performance critical loop in mapEndBiome 2021-05-03 19:29:59 +02:00
Cubitect
bdc765013c Version check at getConfig() 2021-05-01 08:24:01 +02:00
Cubitect
ae227c67c2 More version-ing support 2021-04-26 18:26:15 +02:00
Cubitect
8cd0f24cf1 Layer ranaming and further integration of 1.6 version support
1) renamed layer enums and functions to somewhat resemble the current mappings
2) replaced biome tables with a canBiomeGenerate() function
3) fixed stronghold biome list
2021-04-20 23:13:53 +02:00
Cubitect
ea1fad8fef Major update to biome generation including several fixes
1) fixed biome generation for 1.9, 1.10 and 1.16
2) added biome generator support for 1.6
3) added test cases for 1x1 biome generation across versions
5) removed global biome table and initBiomes() is now redundent
4) map layer functions can now depend on version
6) exclused bamboo_jungle from stronghold biomes in 1.16 (MC-199298)
7) added area and volume generation for 1.16 nether
2021-04-18 19:50:08 +02:00
Cubitect
a9ef050076 Simplify seed to SHA-256 and remove external sha256 lib 2021-03-19 21:31:21 +01:00
Cubitect
1b2999230f Added isSlimeChunk 2021-03-19 18:32:31 +01:00
Cubitect
c35ca9367b MC<=1.12 should use old voronoi layer 2021-03-18 11:37:10 +01:00
Cubitect
ba8a9b2a2d Updated readme with API changes to getStructurePos 2021-03-18 10:32:03 +01:00
Cubitect
0224865935 API change for getStructurePos to support new structs for Nether and End 2021-03-18 09:22:02 +01:00
Cubitect
19aa9b4944 Added optimized End biome generation 2021-03-18 09:21:11 +01:00
Cubitect
c86145a640 Perfromace and memory optimization for VoronoiZoom 1.15+ 2021-03-10 18:54:52 +01:00
Cubitect
6f2210094f Performance improvements for 1.15+ voronoi zoom. 2021-03-07 21:11:39 +01:00
Cubitect
3c806da958 Updated readme 2021-03-06 16:39:25 +01:00
Cubitect
c0b6005909 Nether generation + 1.15 voronoi + setWorldSeed -> setLayerSeed
1) added noise generators
2) added initial support for nether biome generation
3) added sha256 from Brad Conte for 1.15 voronoi zoom
4) ranamed setWorldSeed to setLayerSeed
2021-03-06 16:20:24 +01:00
Cubitect
b2d122cf7f Replaced isZombieVillage with an updated getVillageType 2021-02-27 19:42:11 +01:00
Cubitect
263af396ba Made structure checks work for buried treasures. 2021-02-23 22:57:59 +01:00
Cubitect
f4c49c8380 Added salt option to scanForQuads for convenience with protobases. 2021-02-21 17:50:56 +01:00
Cubitect
11954031c6 Made ScanForQuads also work for monuments + input no longer requires salt offset. 2021-02-20 17:07:59 +01:00
Cubitect
774612a265 Include minecraft version when checking viable feature biomes 2021-02-13 15:17:02 +01:00
Cubitect
dd7e61999b Ocean RNG to perlin noise + scanForQuads scan whole set.
1) specify that ocean RNG is perlin noise (nether biomes will use double-perlin & simplex)
2) scanForQuads now scans a whole set of lower bits
2021-01-25 20:01:37 +01:00
Cubitect
c8af11082a Fixed missing sunflower_plains from genPotential + added getShadow 2021-01-13 20:49:47 +01:00
Cubitect
bb76fc4520 Fixed wrong location of masion validation 2021-01-12 23:03:54 +01:00
Cubitect
9a859a14a2 Relaced hasAllTemps with the more general checkForTemps. 2021-01-12 22:24:55 +01:00
Cubitect
9a323f4167 Fixing experimental mapBiomeBE. 2021-01-07 17:17:21 +01:00
Cubitect
d28bfcfd68 Fixed biome filter for lukewarm and cold oceans. 2021-01-07 16:43:38 +01:00
Cubitect
40a65d89b9 Fixed init with setWorldSeed for pre-1.13 at higher entry layers. 2021-01-07 15:03:23 +01:00
Cubitect
f8c5baf97d Fix biome filter for branching layers. 2021-01-06 23:38:56 +01:00
Cubitect
2a1c47f51f Updated biome tables to include bamboo_jungles. 2021-01-06 17:56:50 +01:00
Cubitect
efa8e29581 Note! renamed mapHills -> mapHills112; mapHills113 -> mapHills
1) More renaming to make the default name the newest version.
2) Added a function to get the generation potential of an ID at a layer.
2021-01-06 16:23:26 +01:00
Cubitect
93a0a9e356 Made native compilation its own target. 2021-01-05 10:48:29 +01:00
Cubitect
8068a54697
Added reference to cubiomes-viewer. 2021-01-04 15:52:38 +01:00
Cubitect
6426de5366 Replaced countBlocksInSpawnRange with getOptimalAfk (with major performace gain). 2021-01-03 13:57:59 +01:00
Cubitect
8c229d5ad9 Separated structure positions (now at chunk origin) from biome-check positions (with version dependence). 2020-12-27 23:15:10 +01:00