Commit Graph

799 Commits

Author SHA1 Message Date
cora
b7f26e2ddc Add setting to selectively disable strucutres 2022-08-11 14:26:34 +02:00
cora
4f96b38fa3 Make foundations less cubic 2022-08-11 14:26:34 +02:00
cora
f1c70fe19d grass border for water lake 2022-08-11 14:26:34 +02:00
cora
cef559c573 Fix ruined portals y offset 2022-08-11 14:26:34 +02:00
cora
f86898b2f4 make ruined portals rarer 2022-08-11 14:26:34 +02:00
PrairieWind
70277276b0 Adjusted spawn chance and fixed the walls on generation, thanks cora. 2022-08-09 10:30:48 -06:00
PrairieWind
84691c393d Pillager Outpost, Schematics by RandomLegoBrick 2022-08-09 10:30:48 -06:00
cora
27304d5d96 Nerf shipwreck loot 2022-08-04 04:21:59 +02:00
cora
811d7a778f Add tall mangrove tree schematics 2022-08-02 12:02:20 +02:00
cora
77c878f609 make waterlogged roots work with river water 2022-08-02 12:02:20 +02:00
cora
51f79eaa39 Add lilypads and dead bushes 2022-08-02 12:02:20 +02:00
cora
3bf45ec4e9 Spawn mangroves in shallow water, fix schematics 2022-08-02 12:02:20 +02:00
cora
e8fc56ab33 Fix water- and mudlogged roots, add w. logging abm 2022-08-02 12:02:20 +02:00
cora
f003aefe19 allow coral reefs in MangroveSwamps 2022-08-02 12:02:20 +02:00
Thunder1035
d284ddf150 Add mangrove trees 2022-08-02 12:02:20 +02:00
cora
09889ca927 Add MangroveSwamp biome defs 2022-08-02 12:02:20 +02:00
cora
9b9f9d9b0c Fix crash when using /spawnstruct in singlenode mg 2022-07-28 08:49:59 +00:00
cora
8ff559d4ad Add ancient debris as normal ore 2022-07-16 02:07:17 +02:00
cora
455fac9350 Add schematics by RandomLegoBrick and PrarieWind 2022-07-14 13:51:46 +02:00
cora
8cad4a6886 Add ruined portals 2022-07-14 13:38:20 +02:00
cora
931cb2b991 Add fallen tree logs 2022-07-14 06:59:47 +02:00
cora
2b835221a7 Make them spawn at (somewhat) random positions 2022-07-12 01:30:41 +02:00
cora
571c57e891 Add updated woodland outpost schematic 2022-07-12 00:44:39 +02:00
cora
33739dc5af Woodland cabin mob spawning 2022-07-12 00:32:53 +02:00
MysticTempest
484ad2b630 Replace all melon/pumpkin stems in woodland_cabins with unconnected variants. 2022-07-09 19:35:51 -05:00
cora
f98242bb0c Do not emerge while making railcorridors
it turns out to work fine without
2022-07-06 01:43:21 +02:00
cora
daa95e3688 replace dirt and gravel too for even less clumps 2022-07-05 00:12:23 +02:00
cora
ea99341f94 make geode inside smoother 2022-07-05 00:12:23 +02:00
cora
4b95185fba make geodes less cube shaped (sometimes) 2022-07-05 00:12:23 +02:00
cora
3584d89028 better distribution 2022-07-04 23:07:51 +02:00
cora
40d0c1affb slightly optimize placement 2022-07-04 23:07:51 +02:00
cora
0a2e68d136 spawn carts, make mineshafts a bit less frequent 2022-07-04 23:07:51 +02:00
cora
9f66c9f673 let railcorridors be placed by new api
this makes it a lot faster
2022-07-04 23:07:51 +02:00
cora
a92b405efd Comment out unused cart-checking hackery 2022-07-04 23:07:51 +02:00
cora
db4f2baafc Tweak tsm_railcorridors for faster mapgen
This just does 5 instead of 10 attempts to spawn a corridor in a
chunk. There still appear to be plenty corridors and it makes
mapgen noticeably faster.
2022-07-04 23:07:51 +02:00
cora
c66cb834a2 spawn corals only at -10 and lower
to prevent corals in rivers
2022-07-04 02:13:54 +02:00
cora
6ad00e4170 emerge before geode and surface pool placement
otherwise they can be cut off
2022-07-01 14:43:03 +02:00
cora
ef14006f15 Fix surface pools & desert temple loot 2022-07-01 14:30:02 +02:00
cora
c59a890963 add woodland cabin loot 2022-07-01 06:11:10 +02:00
cora
ac69b7c710 Add woodland cabin and outpost 2022-07-01 04:26:41 +02:00
cora
f115fc8ea0 tweak probabilities 2022-07-01 02:05:48 +02:00
cora
8684140740 log actual placement position 2022-07-01 02:05:48 +02:00
cora
be2a8d7054 Structure transfer fixes 2022-07-01 02:05:48 +02:00
cora
f5cc0ef2dc Move shipwrecks to mcl_structures 2022-07-01 02:05:48 +02:00
cora
7945de1324 igloo fixes, mobspawns, move geode to mcl_structs 2022-07-01 02:05:48 +02:00
cora
a09226c370 fossil & igloo -> new api 2022-07-01 02:05:48 +02:00
cora
3ca6d4de3b fix chunk probability and distributions 2022-07-01 02:05:48 +02:00
cora
7f8a366a7b make geodes slightly larger, fix positioning 2022-07-01 02:05:48 +02:00
cora
607511518f fix warning 2022-07-01 02:05:48 +02:00
cora
14cd360214 witch hut, boulders, ice-spikes -> new api 2022-07-01 02:05:48 +02:00
cora
dfbb832f96 Terrain feature fixes 2022-07-01 02:05:48 +02:00
cora
063e17bc0a make schematic selection deterministic 2022-07-01 02:05:48 +02:00
cora
befe493ff0 Add warm ocean ruins 2022-07-01 02:05:48 +02:00
cora
fcb8160a60 Add loot generation to api 2022-07-01 02:05:48 +02:00
cora
065767cc77 Add Ocean Ruins - schematics by PrarieWind 2022-07-01 02:05:48 +02:00
cora
47eca3f774 fix callbacks 2022-07-01 02:05:48 +02:00
cora
b396a3c6ee update API.md 2022-07-01 02:05:48 +02:00
cora
9381657f5d use new struct api for desert well and temples 2022-07-01 02:05:48 +02:00
cora
e37358d220 Add make_foundation option
test by /spawnstruct nether_outpost without being on complete
(covering the sidelen) solid ground
2022-07-01 02:05:48 +02:00
cora
d8697cb59c Tweak basalt delta code 2022-07-01 02:05:48 +02:00
cora
0b3a4c18d7 structure-api: add check for solid ground 2022-07-01 02:05:48 +02:00
cora
8e976d9191 Do not log generation of terrain features
this leads to excessive io otherwise
2022-07-01 02:05:48 +02:00
cora
fed81932e2 structs: use mcl_register_generator, cave decos 2022-07-01 02:05:48 +02:00
cora
eb8db0dc0b optimize terrain features 2022-07-01 02:05:48 +02:00
cora
69dac8ded4 fix surface pools y offset 2022-07-01 02:05:48 +02:00
cora
2b87958678 add all sizes of sea pickles not just 1 2022-06-23 17:18:01 +02:00
cora
f883b45809 Add coral reefs 2022-06-23 15:06:56 +02:00
cora
31b94f5b22 Add "nether outpost"
As a temporary solution until large nether fortresses are there.
This is just a little tower containing some warts and a blaze
spawner.
2022-06-19 03:11:56 +02:00
cora
41f708e03e Regular decorations for legacy nether(except v6)
minetest supports this now
2022-06-19 00:24:56 +02:00
cora
0890c719a3 Add basalt pillars 2022-06-19 00:24:52 +02:00
cora
fefb15f2a8 Add new fungus tree schematics 2022-06-19 00:24:52 +02:00
cora
01eea4ab8a prevent nether trees from growing through bedrock 2022-06-19 00:24:52 +02:00
cora
d9a74ac180 rename mcl_surface_pools -> mcl_terrain_features 2022-06-19 00:24:52 +02:00
cora
a0264ed5e0 tweak biome distribution to be more like mc
according to
https://www.reddit.com/r/Minecraft/comments/gjeuww/how_the_nether_biomes_are_distributed/
2022-06-19 00:24:52 +02:00
cora
48189cb3a7 fix lighting issue for placed schematics
warped and crimson shroomlight would not work correctly before
because they're placed after light calculation is done apparently
2022-06-19 00:24:52 +02:00
cora
db9fba70dd some biome tweaks, add nether gold 2022-06-19 00:24:52 +02:00
cora
8efbd89b6a Add basalt columns & lava pools 2022-06-19 00:24:52 +02:00
cora
3c79685c48 Add main nether biomes
Add nether forests

Add soulsand valley decorations

Add Basalt Delta basics
2022-06-19 00:24:48 +02:00
cora
92da429f50 Fix chatcommand not under mcl_structures in /help 2022-06-15 05:10:41 +02:00
cora
726d1f07fa use noise instead of fill_ratio for distribution 2022-06-15 05:10:41 +02:00
cora
9c6aafa3c1 add surface pools 2022-06-15 05:10:41 +02:00
cora
1b0053299c Do not replace bedrock during geode gen. 2022-06-15 05:10:41 +02:00
cora
fa56ce5d52 Add outer geode layer
uses deepslate until smooth basalt is there
2022-06-15 05:10:41 +02:00
cora
a0bed1d8bc Add proper logging + some fixes 2022-06-15 05:10:41 +02:00
cora
a895292371 Add API documentation, minor fixes 2022-06-15 05:10:41 +02:00
cora
b0b8638a4c Add /spawnstruct support 2022-06-15 05:10:41 +02:00
cora
8fa67e6b4f Geodes as test for place by function 2022-06-15 05:10:41 +02:00
cora
1eaac3c406 use gennotify instead of lbm for placement
keep the lbm for secondary structures
2022-06-15 05:10:41 +02:00
cora
6406a14738 Add Structure placement api 2022-06-15 05:10:41 +02:00
cora
899c849996 old registered_structures -> structure_data 2022-06-15 05:10:41 +02:00
cora
5c057f24fb get_mapgen_params -> get_mapgen_setting 2022-06-07 03:17:32 +02:00
cora
4bff9710a0 Make structblock non walk- and pointable 2022-06-06 01:08:55 +02:00
cora
d4e4bc8708 add rarer beached shipwreck 2022-06-05 13:10:36 +02:00
cora
b7419dc207 randomly enchant treasure 2022-06-05 13:10:36 +02:00
cora
4af1094eed Add shipwrecks
schematics by chmodsayshello
2022-06-05 13:10:36 +02:00
cora
6b9cb0062d save home coords in cat entity as well 2022-05-29 02:34:02 +02:00
cora
2337e72a23 simplify spawn logic 2022-05-29 02:34:02 +02:00
cora
da6563a5b3 Spawn witch and black cat on witchhut generation 2022-05-29 02:34:02 +02:00
Elias Fleckenstein
e7898352d8 Remove mobs_mc_gameconfig 2022-05-27 02:44:39 +02:00
Elias Fleckenstein
f6a40ffb78
Run tools/strip_trailing_whitespace.sh 2022-05-26 07:29:28 +02:00
Elias Fleckenstein
ff33794487 Rename mobs global to mcl_mobs 2022-05-25 23:13:33 +02:00
cora
fca259c074 fix crash during (artificial) village creation
when using the village tool doing that on an unsuitable location
would result in no position for the belltower being available
this checks for that and ... doesn't crash then ^^
2022-05-22 02:01:21 +02:00
cora
7379d5bee8 Add Belltower to villages 2022-05-21 14:48:56 +02:00
cora
d67dd0577f fix crash through forgotten function call 2022-05-21 12:36:57 +02:00
cora
2b63866c14 spawn villagers (and golem) immediately after mg 2022-05-21 12:36:57 +02:00
cora
e51ea1e079 initialize inventory nodes on mapgen 2022-05-21 12:36:57 +02:00
cora
b58422a584 write villager id into bed nodemeta 2022-05-21 12:36:57 +02:00
cora
3ff4ea576d spawn iron golem on villagegen 2022-05-21 12:36:57 +02:00
cora
0d56ef1a90 add jobsites to villagegen schematics 2022-05-21 12:36:57 +02:00
cora
8d0afede37 don't block mapgen on village generation 2022-05-09 10:29:57 +00:00
cora
0288581407 increase wait til village generated 2022-05-09 10:29:57 +00:00
cora
46dbf8c0ab Spawn villagers on villagegen, stay in village
This spawns a villager per bed on village gen and saves the bed
position in the entity. If it moves too far from the village
it gets teleported (for now) back.
2022-05-09 10:29:57 +00:00
Alexander Minges
faf3f60cff Use uncarved pumpkin instead of carved in mapgen 2022-04-22 18:07:37 +00:00
cora
3cb9947cf4 fix sugarcane not getting param2 on mapgen 2022-04-19 12:16:07 +02:00
kabou
ace0dc00c7 Remove settlements_in_world and settlements.txt
The global(!) table settlements_in_world` has no use, but is serialized and
saved to a file `settlements.txt` every time during generation of a new
village, adding more lag.  This commit removes all related code:
* Remove all instances of `settlements_in_world`.
* Remove `settlements.load()` and `settlements.save()`.
2022-04-02 21:52:03 +02:00
kabou
deed231f28 Fix typos. 2022-03-09 18:50:41 +01:00
kabou
1326b9e7e7 Add check for unknown nodes.
* Check if node has a definition table before attempting to evaluate its
  attributes.  By application of De Morgan's law, the compound logic
  expression can be rewritten so that the existence of the table is
  checked before all following attribute references.
2022-03-09 15:14:22 +01:00
kabou
6a69f49fa0 Add check for unknown nodes.
* Check if node has a definition table before attempting to evaluate its
  attributes.
2022-03-09 14:59:49 +01:00
kabou
f5a8d6d17a Add check for unknown nodes.
* Check if node has a definition table before attempting to evaluate its
  attributes.
* Define local variable to cache multiple accesses to `registered_nodes[]`
  and improve readability.
* Clarify code flow.
2022-03-09 14:40:37 +01:00
E
87e494f42b mapgen/mcl_mapgen_core: move set_node decorations a node callback
During the rewrite in 89e55e9065, a queue system was added to allow
using both VoxelManip-based generation steps, and set_node-based steps,
however some set_node-based steps (underground mushrooms, nether
decorations, and structures) were missed and remained in a VoxelManip
step. The result is that the changes made by the set_node stages were
overwritten after the (now-stale) VoxelManip data was committed later.

(ref. Mineclonia/Mineclonia#26)
2022-02-25 18:38:50 +01:00
Emojigit
c52e09ddcd mcl_structures 2022-02-23 23:58:05 +01:00
Elias Fleckenstein
0e9a56fa35
Add stacks to enchant_uniform_randomly 2021-12-07 18:19:41 +01:00
Elias Fleckenstein
ec7e245b9d
Various fixes to the enchanting and loot system
- enchanted loot generated by mapgen now uses PseudoRandom for randomness
- prevent fishing loot from generating loot 32767 times (!!!) when only 1 is needed
- bows and fishing rods obtained from the treasure section of fishing loot are now enchanted
- there is now a function to uniform enchant items other than books
2021-12-07 17:57:18 +01:00
Elias Fleckenstein
34f329a9d5
TextureConverter: Implement grass palette conversion
Source: https://minecraft.fandom.com/wiki/Tint
Since the MineClone2 biomes do not entirely match with the Minecraft ones I picked the Minecraft biomes that seem to match them best.
This also changes the palette index of the nether to match the desert instead of the mesa biome
and changes the color of grass blocks in item form to the default minecraft one.
2021-11-03 19:57:21 +01:00
kay27
7ff476b9b9 Fix igloo hidden trapdoor with minetest.after(), https://git.minetest.land/MineClone2/MineClone2/issues/1797 2021-06-22 16:53:55 +04:00
marcin-serwin
cbe8583cef Merge branch 'master' into polish-translation 2021-06-02 10:14:25 +00:00
AFCMS
cd33d406b2 fix many codestyle issues (functions, strings, modpaths) 2021-05-29 16:12:33 +02:00
AFCMS
00063cde73 speedup mcl_observer 2021-05-27 09:34:12 +02:00
Marcin Serwin
37b1191c0a Add polish translation of mcl_structures 2021-05-25 21:58:23 +02:00
AFCMS
9e074af07f unify code style [1] 2021-05-25 12:52:25 +02:00
AFCMS
388ab6d8df fix some codestyle issues 2021-05-25 10:56:06 +02:00
AFCMS
8592670f9b [tsm_railcorridors] fix warnings 2021-05-25 08:44:24 +02:00
AFCMS
a71a0e9161 fix even more warnings (nether portals and potions) 2021-05-22 23:04:18 +02:00
AFCMS
1870a89af0 remove unused var 2021-05-22 20:01:59 +02:00
Code-Sploit
bcea5a35ef Try to fix unknown variable in mcl_chorus_flower 2021-05-14 08:22:10 +00:00
AFCMS
45201481c1 Merge branch 'master' into luacheck-script 2021-05-10 09:38:40 +02:00
kay27
f054eb1ce6 [mcl_biomes] Fix chorus random function, prevent chorus growth at return portal position 2021-05-10 02:47:56 +04:00
kay27
f3c540af5d [mcl_mapgen_core, mcl_biomes] Make chorus growth deterministic 2021-05-10 02:24:52 +04:00
kay27
96be84161f [mcl_mapgen_core] Don't crash if Ender Dragon doesn't spawn for some reason 2021-05-10 01:57:34 +04:00
AFCMS
cbb014ed38 basic working script 2021-05-03 22:11:49 +02:00
AFCMS
02f393998f fix many warnings (644 remaining) 2021-04-17 09:26:37 +02:00
AFCMS
22a2fdbf5f fix more codestyle 2021-04-17 07:46:24 +02:00
AFCMS
5f076d372a fix many codestyle errors 2021-04-17 07:42:49 +02:00
AFCMS
1a58b0c510 fix many codestyle issues 2021-04-16 13:35:03 +02:00
jordan4ibanez
67c1bc973a Add lua locals into mcl_dungeons for performance 2021-04-14 01:19:01 +04:00
Elias Fleckenstein
3c1a38904a Merge branch 'master' of https://git.minetest.land/MineClone2/MineClone2 2021-04-07 09:25:44 +02:00
Elias Fleckenstein
b2c09c8ba0 Add gateway portals 2021-04-07 09:17:13 +02:00
kay27
069e089ae4 [mcl_portals, mcl_structures] Add End gateways W-I-P by Elias Fleckenstein with minor portals improvements and fixes 2021-04-07 03:34:15 +04:00
Elias Fleckenstein
430f958fae Move end exit portal to 0, 0; Add end gateway portals (WIP) 2021-04-06 20:08:20 +02:00
Elias Fleckenstein
ea08fee9ba Make the dragon stay within a 50 blocks range of the portal 2021-04-06 16:38:23 +02:00