Commit Graph

221 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
22a2fdbf5f fix more codestyle 2021-04-17 07:46:24 +02: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
83b9cf3ad2 End exit portal openng / closing on dragon death / spawn 2021-04-06 15:48:17 +02:00
Elias Fleckenstein
a348909ba3 Enderdragon: Proper Egg and XP spawning 2021-04-06 12:50:36 +02:00
Elias Fleckenstein
49446bbb7b Make enderdragon spawn upon exit portal generation 2021-04-04 12:01:45 +02:00
kay27
cb2aae5a55 [mcl_mapgen_core] Redesign, mostly to remove water from End and restore static lvm_buffer to speed it up 2021-03-28 22:57:11 +04:00
kay27
03feb36558 Improve Nether Portals (#1315) (as a squash)
Remove Nether portal caches, https://git.minetest.land/MineClone2/MineClone2/issues/1210

Store all exits from Nether portals in quick-access table

Implement proper Nether portal search, using the table, https://git.minetest.land/MineClone2/MineClone2/issues/1055

Store Nether portal exits table in mod storage

Remove exits from table on Nether portal destruction

Align destination area to [map chunks 5x5x5](https://git.minetest.land/MineClone2/MineClone2/wiki/World-structure%3A-positions%2C-boundaries%2C-blocks%2C-chunks%2C-dimensions%2C-barriers-and-the-void) to avoid lots of ```emerge_area()``` calls

Support Nether roof, https://git.minetest.land/MineClone2/MineClone2/issues/1267

Implement better suitable place search, https://git.minetest.land/MineClone2/MineClone2/issues/1126

Implement object queue not to trigger the same search again

Avoid lava lakes, https://git.minetest.land/MineClone2/MineClone2/issues/1126

Add ```/spawnstruct nether_portal``` chat command
Co-Authored-By: kay27 <kay27@noreply.git.minetest.land>
Co-Committed-By: kay27 <kay27@noreply.git.minetest.land>
2021-03-21 23:14:33 +00:00
kay27
6e6809f360 Make books in chest loot deterministic, ref. https://git.minetest.land/MineClone2/MineClone2/issues/1254 and https://git.minetest.land/MineClone2/MineClone2/issues/1060 2021-03-08 04:14:03 +04:00
kay27
45c0c576f7 Implement /spawnstruct dungeon 2021-03-07 03:49:34 +04:00
Elias Fleckenstein
d57db0444f Use mod.conf in all mods, part 1 2021-03-04 15:22:14 +01:00
kay27
05a3b4e60c Wrap https://github.com/minetest/minetest/issues/10995 around, thanks @SmallJoker 2021-02-28 16:35:21 +04:00
kay27
abc0bb9e8e Fix dir_to_rotation() 2021-02-27 23:20:57 +04:00
kay27
21e6c5ad1f Fix https://git.minetest.land/MineClone2/MineClone2/issues/1216 2021-02-27 22:44:34 +04:00
kay27
54cd5007ed Try to wrap https://github.com/minetest/minetest/issues/10995 by cancelling redefinition of minetest.place_schematic 2021-02-25 01:03:41 +04:00
kay27
47db5c5917 Make mcl_loot/get_random_slots() deterministic 2021-02-22 21:58:35 +04:00
kay27
89e55e9065 Add sub-map generators queue, fix https://git.minetest.land/MineClone2/MineClone2/issues/993 and https://git.minetest.land/MineClone2/MineClone2/issues/1060 2021-02-22 03:15:32 +04:00
Elias Fleckenstein
4a4a834bf8 Generate Enchanted golden apples in chests 2021-01-22 19:45:18 +01:00
Elias Fleckenstein
8f62a3fe0c Enchanted book loot in desert temple 2020-12-23 12:25:18 +01:00
Laurent Rocher
af26f18bd6 Complete French Translation 2020-11-18 23:06:47 +01:00
kay27
4c2e28836c Fix generation of strongholds 2020-10-15 00:22:48 +04:00
kay27
ba51686e6c Russian translation 2020-07-20 00:11:13 +00:00
Wuzzy
7ff7b64ad0 Fix air holes in desert temple 2020-06-08 17:18:19 +02:00
Wuzzy
15f2960e34 Remove legacy village schematic 2020-06-03 19:57:04 +02:00
Wuzzy
a25f7652f6 New desert temple schematic 2020-06-03 19:30:29 +02:00
Rocher Laurent
4957bd1118 Translate In French 2020-05-03 22:39:07 +02:00
Wuzzy
a2785041dd Remove mod startup debug messages 2020-04-11 02:56:46 +02:00
wuniversales
15481cb24d Add Spanish translation 2020-02-04 21:43:50 +01:00
Wuzzy
41d7e513e7 Make variable local 2019-12-14 03:38:00 +01:00
Wuzzy
3322366457 Enable igloo basements with 50% chance 2019-10-02 22:38:35 +02:00
Wuzzy
5198f5cdec More igloo basement placement tweaks 2019-10-02 22:29:25 +02:00
Wuzzy
da149d5a58 Apply more checks in igloo basement generation 2019-10-02 22:06:26 +02:00
Wuzzy
b3e1df7e9b Round pos in spawnstruct chatcommand 2019-10-02 21:18:29 +02:00
Wuzzy
45d09754d0 German translation: mcl_structures 2019-03-14 01:59:31 +01:00
Wuzzy
1df3d0e42b Fix some PseudRandom weirdness in mcl_structures 2019-03-07 22:03:34 +01:00
Wuzzy
19b1cf5986 More robust initialization of chests of structs 2019-02-28 18:19:57 +01:00
Wuzzy
1daf9b7a59 Put treasure loot into random inventory slots 2019-02-28 18:00:17 +01:00
Wuzzy
9105f248b4 More secure igloo generation 2019-02-06 02:23:51 +01:00
Wuzzy
6ff637ec69 Add more igloo generation code 2019-02-06 02:02:18 +01:00
Wuzzy
e789801662 Replace getpos() with get_pos() 2019-02-01 06:33:07 +01:00
Wuzzy
ec49459eb4 Update desert temple schematic 2018-01-17 19:53:20 +01:00
Wuzzy
89ef81b4c5 Remove buggy chests and furnaces from villages 2017-12-13 00:50:13 +01:00
Wuzzy
3b9b34a0de Add warning when building a village 2017-12-13 00:50:03 +01:00
Wuzzy
40d22d2173 Fix crash when using eye of ender in singlenode 2017-12-11 19:33:58 +01:00
Wuzzy
a79c2ade05 Fix dependency mess of mcl_structures 2017-12-10 22:49:49 +01:00
Wuzzy
810357f81a Rename end portal room to end portal shrine 2017-12-10 22:22:37 +01:00
Wuzzy
664c24ce7d Eyes of ender now fly to End portal shrines! 2017-12-10 22:20:48 +01:00
Wuzzy
2d8ad7ebf0 Generate end portal rooms in the world 2017-12-10 18:39:02 +01:00
Wuzzy
fdae9711f8 Randomize stonebrick stairs in end portal room 2017-12-09 16:50:32 +01:00
Wuzzy
206bd3d29f Fix hole in end portal room schematic 2017-12-09 14:16:53 +01:00
Wuzzy
1537ae276e Tweak stone brick chances of end portal rooms 2017-12-09 14:08:36 +01:00
Wuzzy
c4dbbda9fd Add end portal room structure 2017-12-09 02:05:41 +01:00
Wuzzy
fc17303b1e Generate end exit portal near the spawn in the End 2017-11-21 07:24:56 +01:00
Wuzzy
0267fc98ab Update desert temple schematic 2017-09-19 19:29:12 +02:00
Wuzzy
4eebd37a12 Minor desert temple randomization 2017-09-14 03:47:48 +02:00
Wuzzy
7f5c051b5d Initialize pressure plates in generate structures 2017-09-14 03:41:06 +02:00
Wuzzy
f0adddac12 Update desert temple schematic 2017-09-14 03:21:05 +02:00
Wuzzy
bc1e16fbc6 Delete unused WorldEdit code in mcl_structures 2017-09-11 04:26:16 +02:00
Wuzzy
98654b45b1 mcl_structures: Return place_schematic return value 2017-09-10 20:20:52 +02:00
Wuzzy
876e2c6eb4 Random rotation for witch huts 2017-09-10 20:16:13 +02:00
Wuzzy
55e8d7503e Rarely generate witch huts (experimental) 2017-09-10 19:14:58 +02:00
Wuzzy
5a69b132c4 Add an Y layer to moss stone boulder schematics 2017-09-10 05:03:20 +02:00
Wuzzy
152327bb2a Fossil schematics: ~7% chance to lose bone block 2017-09-08 05:16:12 +02:00
Wuzzy
22a1b0a5d2 Convert desert temple structure to schematic file 2017-09-08 04:30:47 +02:00
Wuzzy
0dd4d501ef Move villages into schematic, fix bad nodes 2017-09-08 03:31:20 +02:00
Wuzzy
ef1bce1609 Document fossil schematic sizes 2017-09-08 01:39:14 +02:00
Wuzzy
576a31ac7f Stop fossil schematics replacing air 2017-09-08 01:34:33 +02:00
Wuzzy
ebacdd4e22 Update and improve a couple of schematics 2017-09-03 06:38:50 +02:00
Wuzzy
ded7aa7ee6 Make 2 schematics less aggressive replacing nodes 2017-08-12 18:10:30 +02:00
Wuzzy
04ad3999bd Improve boulder generation 2017-08-12 02:36:11 +02:00
Wuzzy
be9be17d97 Make ice spikes less destructive 2017-08-12 01:49:37 +02:00
Wuzzy
0beaed14db Add large spike structure 2017-08-11 01:48:36 +02:00
Wuzzy
602fd7d6e4 Rename some schematic files 2017-08-11 00:34:41 +02:00
Wuzzy
c5a565cefc Add 4 new spawnable structures
- Fossil (8 variants)
- Mossy boulder
- Witch hut
- Small ice spike
2017-08-11 00:28:29 +02:00
Wuzzy
f26d2c34e4 Add horse armor into chests 2017-07-06 15:00:12 +02:00
Wuzzy
8daac96e58 Rename stairs mod to mcl_stairs 2017-06-05 18:40:56 +02:00
Wuzzy
086067184a Add igloo basement (schematic only) 2017-05-24 05:43:01 +02:00
Wuzzy
9c22df853d Generate igloos on snow blocks 2017-05-20 07:59:10 +02:00
Wuzzy
24ed86f18c Add igloo schematic (kinda) 2017-05-20 07:46:57 +02:00
Wuzzy
b433107f67 Rarely spawn desert wells in deserts 2017-05-20 06:47:42 +02:00
Wuzzy
52616d86c0 Add desert wall schematic (no spawning yet) 2017-05-20 05:57:38 +02:00
Wuzzy
2d5d1ae23a Put items into desert temple chests 2017-05-19 19:26:59 +02:00
Wuzzy
10b1099a21 Drop legacy WorldEdit support in mcl_structures 2017-05-19 18:22:27 +02:00
Wuzzy
ba2d83eff9 Rename random_struct to mcl_structures 2017-05-19 15:13:31 +02:00