103 Commits

Author SHA1 Message Date
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
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
9a859a14a2 Relaced hasAllTemps with the more general checkForTemps. 2021-01-12 22:24:55 +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
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
Cubitect
496c6a2f6a Check MC in structure validation + scanning for quad-huts. 2020-12-27 15:36:41 +01:00
Cubitect
fc5a42180c Focus update towards library.
1) Update readme to include structure finders + removed outdated references to seed lists.

2) Removed example programs find_quadhuts.c and find_compactbiomes.c in favor of small examples inside readme.

3) Replaced search4QuadBases with a more general searchAll48. This does, however, redefine the format for quad bases.
2020-11-18 18:51:24 +01:00
Cubitect
6005333902 Replaced faulty inner stronghold finder with iterator. 2020-11-05 20:57:14 +01:00
Cubitect
b9bfd0130f
Lowercase header for case sensitive file systems. 2020-10-20 14:20:09 +02:00
Cubitect
1de66fcfc0 Approx. inner strongholds + fix allocCache for early layers. 2020-10-02 21:58:19 +02:00
Cubitect
3245111a17 Fixed Outpost validity check. 2020-09-20 23:29:48 +02:00
Cubitect
1236b91e63 Reworking structure finding.
1) Turned getStructurePos into a wrapper that deals with all structure types.
2) Major changes to accomodate for more sophisticated quad-base finders.
3) Classifying quad-bases according to certain properties which they fulfill.
4) Removed precompiled quad-base files, as they can be generated quickly now.
5) Removed tri-base finders (until there's a more accurate finder in future).
2020-08-21 00:34:07 +02:00
Cubitect
6097e42ea6 Changes to API, fixes and performance improvments.
1) Layer functions now return an int and can terminate the generation.
2) This makes it possible to write much more accurate and faster biome finders.
3) The generator structure LayerStack is now stack allocatable and no longer requires a free.
4) Adjustments to make targets.
2020-08-09 18:52:58 +02:00
Cubitect
cf85da7159 Somewhat major changes to structure and layer functions.
1) Redone structure validation for 1.16 and for bug fixes.
2) Layer generation was reworked for performace.
2020-07-25 18:16:39 +02:00
Cubitect
a2cec7fbba 1.16 and Ruined Portals. 2020-04-22 21:50:44 +02:00
Cubitect
a9705edfb8 Made compatible with g++ and clang compilers + better docu for getting started. 2020-03-15 16:09:06 +01:00
Cubitect
dc517ad2b5 Chunk checkers for treasure and mineshafts. 2019-05-07 23:22:50 +02:00
Cubitect
58e3043f7c Finished switching to the new biome names. 2019-05-07 19:38:29 +02:00
Cubitect
99d131ed8f Generalized generator + added 1.14 bamboo jungles. 2019-05-06 23:14:25 +02:00
Cubitect
b626e1ef53 Added Pillager Outposts. 2019-05-04 14:19:35 +02:00
Cubitect
955e929292 Updated find_compactbiomes to use new experimental finder. 2018-08-03 01:22:23 +02:00
Cubitect
a877005e13 Stated development on a fast general biome finder. 2018-08-02 23:55:43 +02:00
Cubitect
f3243ca3fc Removed POSIX dependence. 2018-08-01 17:51:17 +02:00
Cubitect
5127be24a4 Finding village houses and estimating spawn. 2018-08-01 16:44:13 +02:00
Cubitect
6af275bda0 Updating monument validator to 1.13 ocean variants. 2018-07-28 18:17:30 +02:00
Cubitect
5c9b46b701 Major formatting changes and more general MC version management. 2018-07-28 16:23:47 +02:00
Cubitect
c6a718fc1d Started work on structure properties finders and zombie villages. 2018-07-28 10:47:46 +02:00
Cubitect
6dda25be5b Added 1.13 findBiomePosition (affects spawn & strongholds) 2018-07-28 10:34:19 +02:00
Cubitect
b6f9624d4b Minor fixes. 2018-07-25 10:20:06 +02:00
Cubitect
209129bf50 Switched finders to use StructureConfig 2018-07-25 08:54:33 +02:00
Tom Schumm
d8bff8bdbe Refactor structure finding functions to generalie them with a configuration struct. 2018-07-08 20:58:43 -07:00
Tom Schumm
ab45a0a1d2 Break out ocean ruins and shipwrecks to their own functions. 2018-07-08 20:01:00 -07:00
Tom Schumm
369105baa8 Slighly clunky implementation of ocean ruins and shipwrecks. 2018-07-08 18:41:27 -07:00
Cubitect
f490ff6fbf Updated biome generation for current 1.13 snapshots. 2018-07-08 15:13:09 +01:00
Cubitect
cf8c903145 Fix for powers of 2 in RNG. 2018-07-06 22:09:33 +01:00
Cubitect
2584485efc fixed default of findBiomePosition 2018-07-05 21:05:34 +01:00
Tom Schumm
571e4b41ac Clarify strongholds comment. 2018-07-04 13:47:46 -07:00
Tom Schumm
486c0cdb95 Add function for finding all 128 strongholds in current Minecraft versions. 2018-07-04 13:14:28 -07:00
Cubitect
caa0500708 improved MinGW compatibility 2018-07-04 17:28:27 +01:00
Cubitect
0f45704bdf Changed long -> int64_t 2018-07-04 17:27:45 +01:00
Cubitect
32860bdcf4 Changed long -> int64_t 2018-07-04 16:48:05 +01:00
Cubitect
a2904fbcd5 Reworked structures for 1.13 2018-07-04 16:18:21 +01:00
Tom Schumm
d9c2c8ae07 Merge branch 'master' into 1_13 2018-07-02 14:35:02 -07:00
Tom Schumm
6558f5b7a6 Add comments noting some not-thread-safe functions. 2018-07-02 14:30:12 -07:00
Tom Schumm
be6d3a952b Update constants for Minecraft 1.13.
I also renamed things that referred to "temples" to refer to Witch Huts
specifically, since they aren't general to all four temple types any more.
I also didn't parameterize them to support the other types since it's not
likely that anyone cares about searching for those.
2018-06-30 16:34:31 -07:00
Cubitect
784459ea4f formatting and seed lists 2018-03-18 13:10:13 +00:00