kno10
f219e5f4ae
Fix structure spawns under water + peaceful spawns ( #4607 )
...
- peaceful structure spawns would not run in peaceful mode (e.g., parrots)
- water structure spawns (e.g., guardians) would not run because the code required air above
- small code improvements
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4607
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-09-15 23:15:30 +02:00
kno10
444c491e14
Remove mcl_structures:structblocks ( #4619 )
...
As spawning happens via gennotify anyway, we can omit placing a
structblock right away.
This also avoids certain cases of holes in snow cover or water.
Plus, the code is simpler.
Isolated from the big mapgen overhaul, for the main branch.
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4619
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-08-31 21:01:44 +02:00
kno10
d2b96b6142
Queue is not used anywhere ( #4608 )
...
Dead code.
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4608
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-08-30 18:20:38 +02:00
cora
04cb919f2b
structure-spawning: make water spawns possible
2022-11-15 01:28:51 +01:00
cora
36a6a353a3
Fix local construct_nodes
2022-11-15 01:26:06 +01:00
cora
009ca7535c
Add nether outpost with bridges
...
just via spawnstruct for now
2022-11-01 04:52:17 +01:00
cora
d393e6a181
fix single mob spawning and poutpost walls
2022-11-01 04:52:17 +01:00
cora
0f01a28c93
Add structure spawning to other structures
2022-11-01 04:52:17 +01:00
cora
27a434641d
Make structure spawning respect caps
2022-11-01 04:52:17 +01:00
cora
77bdce5cea
Add structure mob respawning mechanic
...
this sets a metadata field "spawnblock" in the nodes mobs spawn on
and registers an abm to respan them
2022-11-01 04:52:17 +01:00
cora
1f58cfb240
Fix merge conflict
2022-11-01 04:52:17 +01:00
cora
6b8236e8f3
Fix crash in villagegen
2022-11-01 04:52:17 +01:00
cora
6bc12ec5ec
mcl_structures Check if file exists before placing schematics
2022-11-01 04:52:17 +01:00
cora
302b18833a
Add variable interior for nether bulwark
2022-11-01 04:52:17 +01:00
cora
f76e0628e4
initial daughter structure support
2022-11-01 04:52:17 +01:00
cora
c850c0dfbb
move remaining api code to mcl_structures/api.lua
2022-10-28 21:25:43 +02:00
cora
146e2de1a5
Structure-api: add initial rotation support
2022-10-28 21:25:43 +02:00
cora
7fee2cd55a
struct-api: export construct_nodes function
2022-10-16 00:52:47 +02:00
cora
4de1e4d543
Fix Structure loot generation (again) lol
2022-09-14 20:37:08 +00:00
cora
78703d2baa
Fix lighting issues in the end
2022-09-14 20:37:08 +00:00
cora
540bf56b91
Add logging settings for mapgen and structures
...
mapgen logging being default off and structure generation default
on as the latter is the far more useful of the 2 in most situations
2022-09-14 20:37:08 +00:00
cora
f753ac92ce
Fix loot, elytra and shulker spawning
2022-09-14 20:37:07 +00:00
cora
86d98a9eeb
add construct_nodes to structure api
2022-09-14 20:37:07 +00:00
cora
1d942e9946
Exit portal and spawn platform -> mcl_structures
2022-09-14 20:37:07 +00:00
cora
79ce9f89d3
More adaptive foundation height
2022-08-11 14:26:34 +02:00
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
9b9f9d9b0c
Fix crash when using /spawnstruct in singlenode mg
2022-07-28 08:49:59 +00: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
ac69b7c710
Add woodland cabin and outpost
2022-07-01 04:26:41 +02:00
cora
8684140740
log actual placement position
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
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
fcb8160a60
Add loot generation to api
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
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
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
726d1f07fa
use noise instead of fill_ratio for distribution
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