From 10a130be334fe089127d0413bba08b945b338786 Mon Sep 17 00:00:00 2001 From: kno10 Date: Thu, 31 Oct 2024 00:52:41 +0100 Subject: [PATCH] more new structures --- mods/MAPGEN/mcl_structures/init.lua | 2 - .../campsite.lua | 2 + mods/MAPGEN/vl_extra_structures/init.lua | 7 +++ mods/MAPGEN/vl_extra_structures/mod.conf | 4 ++ mods/MAPGEN/vl_extra_structures/obelisks.lua | 52 ++++++++++++++++++ .../schematics/campsite_1.mts | Bin .../schematics/cocoon_1.mts | Bin .../schematics/obelisk_cobble.mts | Bin 0 -> 319 bytes .../schematics/obelisk_cobble_broken.mts | Bin 0 -> 453 bytes .../schematics/obelisk_fire.mts | Bin 0 -> 412 bytes .../schematics/obelisk_sand_1.mts | Bin 0 -> 269 bytes .../schematics/obelisk_sand_2.mts | Bin 0 -> 315 bytes .../schematics/witch_circle.mts | Bin 0 -> 633 bytes .../spider_cocoon.lua | 0 .../vl_extra_structures/witches_circle.lua | 43 +++++++++++++++ 15 files changed, 108 insertions(+), 2 deletions(-) rename mods/MAPGEN/{mcl_structures => vl_extra_structures}/campsite.lua (96%) create mode 100644 mods/MAPGEN/vl_extra_structures/init.lua create mode 100644 mods/MAPGEN/vl_extra_structures/mod.conf create mode 100644 mods/MAPGEN/vl_extra_structures/obelisks.lua rename mods/MAPGEN/{mcl_structures => vl_extra_structures}/schematics/campsite_1.mts (100%) rename mods/MAPGEN/{mcl_structures => vl_extra_structures}/schematics/cocoon_1.mts (100%) create mode 100644 mods/MAPGEN/vl_extra_structures/schematics/obelisk_cobble.mts create mode 100644 mods/MAPGEN/vl_extra_structures/schematics/obelisk_cobble_broken.mts create mode 100644 mods/MAPGEN/vl_extra_structures/schematics/obelisk_fire.mts create mode 100644 mods/MAPGEN/vl_extra_structures/schematics/obelisk_sand_1.mts create mode 100644 mods/MAPGEN/vl_extra_structures/schematics/obelisk_sand_2.mts create mode 100644 mods/MAPGEN/vl_extra_structures/schematics/witch_circle.mts rename mods/MAPGEN/{mcl_structures => vl_extra_structures}/spider_cocoon.lua (100%) create mode 100644 mods/MAPGEN/vl_extra_structures/witches_circle.lua diff --git a/mods/MAPGEN/mcl_structures/init.lua b/mods/MAPGEN/mcl_structures/init.lua index d2b16fa47..9c323fac2 100644 --- a/mods/MAPGEN/mcl_structures/init.lua +++ b/mods/MAPGEN/mcl_structures/init.lua @@ -27,7 +27,6 @@ mcl_structures.register_structure = function(name, def, nospawn) vl_structures.register_structure(name, def) end -dofile(modpath.."/campsite.lua") dofile(modpath.."/desert_temple.lua") dofile(modpath.."/desert_well.lua") dofile(modpath.."/end_city.lua") @@ -41,7 +40,6 @@ dofile(modpath.."/ocean_temple.lua") dofile(modpath.."/pillager_outpost.lua") dofile(modpath.."/ruined_portal.lua") dofile(modpath.."/shipwrecks.lua") -dofile(modpath.."/spider_cocoon.lua") dofile(modpath.."/witch_hut.lua") dofile(modpath.."/woodland_mansion.lua") diff --git a/mods/MAPGEN/mcl_structures/campsite.lua b/mods/MAPGEN/vl_extra_structures/campsite.lua similarity index 96% rename from mods/MAPGEN/mcl_structures/campsite.lua rename to mods/MAPGEN/vl_extra_structures/campsite.lua index 35a61e591..ff6db2ca8 100644 --- a/mods/MAPGEN/mcl_structures/campsite.lua +++ b/mods/MAPGEN/vl_extra_structures/campsite.lua @@ -8,6 +8,7 @@ vl_structures.register_structure("campsite",{ y_max = mcl_vars.mg_overworld_max, y_min = 1, prepare = { tolerance = 1, foundation = -2, clear_top = 1, padding = 1, corners = 1 }, -- low tolerance, perform little terraforming + biomes = { "Forest", "FlowerForest", "Plains", "SunflowerPlains", "Savanna", "SavannaM", "Taiga", "ColdTaiga" }, filenames = { modpath.."/schematics/campsite_1.mts" }, @@ -67,5 +68,6 @@ vl_structures.register_structure("campsite",{ }, } } + -- TODO: spawn a band of pillagers? }) diff --git a/mods/MAPGEN/vl_extra_structures/init.lua b/mods/MAPGEN/vl_extra_structures/init.lua new file mode 100644 index 000000000..85eec6a52 --- /dev/null +++ b/mods/MAPGEN/vl_extra_structures/init.lua @@ -0,0 +1,7 @@ +local modname = minetest.get_current_modname() +local modpath = minetest.get_modpath(modname) + +dofile(modpath.."/campsite.lua") +dofile(modpath.."/obelisks.lua") +dofile(modpath.."/spider_cocoon.lua") +dofile(modpath.."/witches_circle.lua") diff --git a/mods/MAPGEN/vl_extra_structures/mod.conf b/mods/MAPGEN/vl_extra_structures/mod.conf new file mode 100644 index 000000000..c06abb85c --- /dev/null +++ b/mods/MAPGEN/vl_extra_structures/mod.conf @@ -0,0 +1,4 @@ +name = vl_extra_structures +author = kno10 +description = Some additional decorative structures +depends = mcl_init, mcl_util, mcl_loot, vl_terraforming, vl_structures diff --git a/mods/MAPGEN/vl_extra_structures/obelisks.lua b/mods/MAPGEN/vl_extra_structures/obelisks.lua new file mode 100644 index 000000000..11787c4b4 --- /dev/null +++ b/mods/MAPGEN/vl_extra_structures/obelisks.lua @@ -0,0 +1,52 @@ +local modname = minetest.get_current_modname() +local modpath = minetest.get_modpath(modname) + +vl_structures.register_structure("obelisk_sand",{ + place_on = {"group:sand"}, + flags = "place_center_x, place_center_z", + chunk_probability = 12, + y_max = mcl_vars.mg_overworld_max, + y_min = 1, + y_offset = -3, + prepare = { tolerance=3, padding = 0, clear=false }, + biomes = { "Desert" }, + filenames = { + modpath.."/schematics/obelisk_sand_1.mts", + modpath.."/schematics/obelisk_sand_2.mts", + }, +}) + +vl_structures.register_structure("obelisk_light",{ + place_on = {"group:sand"}, + flags = "place_center_x, place_center_z", + chunk_probability = 25, + y_max = mcl_vars.mg_overworld_max, + y_min = 1, + y_offset = -2, + prepare = { tolerance=2, padding = 0, clear=false }, + biomes = { "Desert" }, + filenames = { + modpath.."/schematics/obelisk_fire.mts", + }, + after_place = function(p,_,pr,p1,p2) + for _,n in pairs(minetest.find_nodes_in_area(p1,p2,{"group:wall"})) do + mcl_walls.update_wall(n) + end + end, +}) + +vl_structures.register_structure("obelisk_cobble",{ + place_on = {"group:grass_block", "group:dirt"}, + flags = "place_center_x, place_center_z", + chunk_probability = 25, + y_max = mcl_vars.mg_overworld_max, + y_min = 1, + y_offset = -2, + prepare = { tolerance=2, padding=0, clear=false }, + biomes = { "Plains", "SunflowerPlains", "Forest", "FlowerForest", "BrichForest", "Taiga", "RoofedForest", "MegaTaiga", "MegaSpruceTaiga", }, + filenames = { + modpath.."/schematics/obelisk_cobble.mts", + modpath.."/schematics/obelisk_cobble_broken.mts", + }, +}) + diff --git a/mods/MAPGEN/mcl_structures/schematics/campsite_1.mts b/mods/MAPGEN/vl_extra_structures/schematics/campsite_1.mts similarity index 100% rename from mods/MAPGEN/mcl_structures/schematics/campsite_1.mts rename to mods/MAPGEN/vl_extra_structures/schematics/campsite_1.mts diff --git a/mods/MAPGEN/mcl_structures/schematics/cocoon_1.mts b/mods/MAPGEN/vl_extra_structures/schematics/cocoon_1.mts similarity index 100% rename from mods/MAPGEN/mcl_structures/schematics/cocoon_1.mts rename to mods/MAPGEN/vl_extra_structures/schematics/cocoon_1.mts diff --git a/mods/MAPGEN/vl_extra_structures/schematics/obelisk_cobble.mts b/mods/MAPGEN/vl_extra_structures/schematics/obelisk_cobble.mts new file mode 100644 index 0000000000000000000000000000000000000000..4c0b566b03808e5993b60e358e560ed8f2deb092 GIT binary patch literal 319 zcmeYb3HD`R0YWYYmU=i~U}KQTP0oo=&M!)}DlW;-OHC@uOwP{DFD|ZRPy@*nmn3Eu z6$9mf6p(|WB0j&gB(;b^fsi@|W}s#U9gwoz{JdhIp7_-C^kOR{4!Y3{yl`igW#*+; z%$XZ-TkwDa2lEuw*OuPl`afJ&{mro8a0wAPz}R?1;E@03jz?FLViOHrC2Fp1^m*v0 zyY6?yD~)UCx!vsNir=lS+|wxg`_zl=2eZSPm*xxYsJXt}=32t-@VtzBnX>Hr+oFGe k>A$4BUw^oOpEAY9Q6cC5f3u#XysQ6uOG|{8FGn3<`wQF)#x)Gw{NlRhF5T${-Em zmM7-qfDA`*X1p0bNdpEM+&T@7@M*QEm@_vZTBuopC+5JFZ(SDij;=P>Z*BOt_~etF zuccV6yk#U?ZIgdqcHjHxra+Q^#YYz_{lxwa@#?lKCZz_|7TFmZZ@ev>e|=-O9shUL z-fw$L3Nu!ePyT)JW=VE><8`hi`AXS%23?DHUmhIbJonyze_yxF&%@DALvpWvZw%+X ZeeUiF!PA!FZ!W!+Tia2~m>y$z4ggcyypR9@ literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/vl_extra_structures/schematics/obelisk_fire.mts b/mods/MAPGEN/vl_extra_structures/schematics/obelisk_fire.mts new file mode 100644 index 0000000000000000000000000000000000000000..f05312826937d0056a4370dc474c9614f560e413 GIT binary patch literal 412 zcmeYb3HD`R0YY8|mU4$@xX8R>g^VDa9rEd8rKQAhF_-#LS{% zD=-xgmn+WA&o9X^iq9`CNiAYfB&d*q8E6WFEJ$5Sem>B=q|Bn^jQEnG!~zgMKEEI} zk3kaC4N!X+L_t#Ji8(nym%!W?Z;V~oj6n))P-1RDT4qsdu~jmZ6`zw?f?bOxgBUgo z42>%0Yz>O$Yf#|PW}QF%+bc0Uk;Vmjx7uOqq@O&+u;a?v4$YTq zO!o-~rx}(MiLLR>U;B5?{Ab%zR~SW4c=M=p+w9Gv29L9V=lEloS zVk&Cf5%FpAGFElDk6P$a03ff;BDgCwRUP=gpGFr|_ci^@_{D(0M>7|3-% zfyepsj=9z0=I8Y1PW6*{!>Z{aughg2u|nd~vkHNBr_w32;;sZs-o3r|Z~U{`FZ06N kt@l5EC~8`;t&;mjSBUNZcs1rja<|PU8TzLp#PQul959 ge?QkFpDH7c_4~(mG0$Jozi#%eZ_aPo9G8g$0CVVtY5)KL literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/vl_extra_structures/schematics/witch_circle.mts b/mods/MAPGEN/vl_extra_structures/schematics/witch_circle.mts new file mode 100644 index 0000000000000000000000000000000000000000..e1d6d085ea2175e37f6ec40e526b75de0e56f107 GIT binary patch literal 633 zcmeYb3HD`RVc-PedLUrnXJAguEMnl#P0oo=&M!)}O3qJ8%1LDqfeYm37Z+DTMTOy_ z#U=T9sYykd$=M7#Ai>=HyyBA7qWIMG^kOR{PCP;(*dPW;EJh?J7L}!@Fz~{q$};m( z8N@)`^2D5+Vk?9p@dgaacBxN((22onL=!dG7;hNuGwp1DCEyWb_mqV_&9aq@9*==d@1M89a=nT5f}JKC2#b$PEn_1BwM$6vdgd*+pDd$q~N zElkt)^=kF6mODE>WZl0lFCgyru3ut@+LJih_eUYm;nfGevC($Ey-%9VwuQ