From 33739dc5af8c5fbff751c3a8e25b4b07fa72ed49 Mon Sep 17 00:00:00 2001 From: cora Date: Tue, 12 Jul 2022 00:32:53 +0200 Subject: [PATCH 1/3] Woodland cabin mob spawning --- mods/MAPGEN/mcl_structures/woodland_mansion.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mods/MAPGEN/mcl_structures/woodland_mansion.lua b/mods/MAPGEN/mcl_structures/woodland_mansion.lua index d47d4a0e6..35e934a68 100644 --- a/mods/MAPGEN/mcl_structures/woodland_mansion.lua +++ b/mods/MAPGEN/mcl_structures/woodland_mansion.lua @@ -17,6 +17,23 @@ mcl_structures.register_structure("woodland_cabin",{ modpath.."/schematics/mcl_structures_woodland_cabin.mts", modpath.."/schematics/mcl_structures_woodland_outpost.mts", }, + after_place = function(p,def,pr) + local spawnon = {"mcl_deepslate:deepslate","mcl_wool:white_carpet","mcl_wool:white_carpet"} + for i=1,5 do + local vindicator = minetest.find_node_near(p,25,spawnon) + if vindicator then + minetest.add_entity(vindicator,"mobs_mc:vindicator") + end + end + local evoker = minetest.find_node_near(p,25,spawnon) + if evoker then + minetest.add_entity(evoker,"mobs_mc:evoker") + end + local parrot = minetest.find_node_near(p,25,{"mcl_heads:wither_skeleton"}) + if parrot then + minetest.add_entity(parrot,"mobs_mc:parrot") + end + end, loot = { ["mcl_chests:chest_small" ] ={{ stacks_min = 3, From 571c57e891d982a243fd096b3d4e945227e0161b Mon Sep 17 00:00:00 2001 From: cora Date: Tue, 12 Jul 2022 00:44:39 +0200 Subject: [PATCH 2/3] Add updated woodland outpost schematic --- .../mcl_structures_woodland_outpost.mts | Bin 3341 -> 3162 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_woodland_outpost.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_woodland_outpost.mts index 6fd48068b0f5d3b67cbbd8448806c7269619a82b..18cb4339344a93847598f44b00902f624987a369 100644 GIT binary patch delta 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vfM6$9f@Gc}B?>47FY22poA%x@kjv-DwArMHu7PH#kJ z1?S|S(40edGGZ2s*C1Sia9gdt#&sa_u0n`;uAVHxvKSKmh)Lm5lI&&`mL?VR4|ep}@Kdi&HC*yN_l(oiRu^dF>s3gpI@> z>@Y8a;2OiB^%Z0mewpUcTAU?ws@@Dr-)`YlF|jPLm9WTJxa`t6+=P_khcZp8MhM`f}Mg`h+ z&bju&7QbLCB!XnjeEvZ{SM{h0@i4Rds;^0XK>L7H)2O%Or+Q`HWi`}rc1&q_BqYyH z6+|(1X?FvFtQ-FF(BZ|cqtmMI{#Pz6q+UpDpC<=m3Cay9n4H=6&?R+DH0Wy8tMh$} z0g9IGHWswxZZ5#A(BBAGce63=u1iqgh=Q0FgU>1(`5pCi=2cN?Uk6h(74VVjA`V>D zGWNTF9hOLg7%Hfr)97nYpBE6`PM<6MU zyG$$^0A^s0j36jF9^h0qykA<_q1^wvceYKP8lV?5^bYs@0jne4pnDlQqHLAal?Ttf zE_CzFS~&HpH`$>Et{+3Yv`+!bCsk#&RV1HX_#s8l=!-s#J~UI6aO0Vd2?O*e+Hz*} zvO`Ysw#}2B-+gk1=C@Ea!pBeT{+mhu~r~Ahg6Zby)u2@Fw?{CUv(CKvgY{sH*B>hG8zX5Wy15W?| From 2b835221a7fabc41d018e2834ce659a77b2fd525 Mon Sep 17 00:00:00 2001 From: cora Date: Tue, 12 Jul 2022 01:30:41 +0200 Subject: [PATCH 3/3] Make them spawn at (somewhat) random positions --- .../mcl_structures_woodland_outpost.mts | Bin 3162 -> 3210 bytes .../mcl_structures/woodland_mansion.lua | 23 +++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_woodland_outpost.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_woodland_outpost.mts index 18cb4339344a93847598f44b00902f624987a369..dac927b66762f163abca557a8f30112d0e96235c 100644 GIT binary patch delta 1854 zcmV-E2f_H-7>XH?9|1P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xWm3`?``GS2t-%_FHSqpzk?}dbKJqyfRDm|DD7Cw0B4)0 zonOUoeed~Q^&!3efG6>XDo=*xEA3D9{+GuN@v`?jwom!@JNt_}*d4kbcRo$To&DYK z@LWM^o=wlN*%>q}l34aSnrTbTXy?weS*5|bu%WfKMmt;8dacLC=Gp8#wO&rmvtev{ zo-G_N=FCxt+DTpQ;r&j3S!}>+QlPdMo3JHB=*!-go)j^ATHnwPbwI z#1{Qd_ivqraBXr5bX3|;UV$8=#iRJUf92#AtQ7kn#a@x@MZkW44A`%qSAgLLwU_qq z*P3UWwx5c2G=>)YSLEJhSJ5(!dLrWN3sV_$Fuya!jk6vp*nBn@b8J2v20AYcB9);A zk;+gjV^i60oX>`%Y%aJ|J9;Ga(%MM@%j!wxQA18Dk9vUC&zaJUoM;)B!JLyNo13A# zK-rQw&!txf$CYG%9<^ip*OaL|>V0QYA7|Xr*UVh)Xm+l4!sXPy!{u9H`?&^;Q-Yms z%Jn?=5(Yz~R67g?!-69TgF)gy27|$1Fc=I5gTY`h7z_r3!C){L3$%9^{FRzY?}m<467jJcaMH&t(~^f8)fH`<($vFj&)lrNDrbgF!W3QrKODzqA? zwbEw^8>JfG!vhLm731JI^q?x&&7? z_wi`G(|`|!$)dV0_4pQ;lfb=`J`VUym9#h`w<8Y!DvoXgzdgYt& z4uTB#G#E$HSGMKQF1KOuqT>!`Ch9uFJBv=O1>Wg@K&{l8ZiaX07R0<$6iW839o4YP zI{~>Yz)^xmOP6OTJtjnbj!$)>`+L$MDPcMJ~e9b&FP>Nj*F${dgCX3P~B zc 0 then + for i=1,5 do + local pos = sp[pr:next(1,#sp)] + if pos then + minetest.add_entity(pos,"mobs_mc:vindicator") + end + end + local pos = sp[pr:next(1,#sp)] + if pos then + minetest.add_entity(pos,"mobs_mc:evoker") end - end - local evoker = minetest.find_node_near(p,25,spawnon) - if evoker then - minetest.add_entity(evoker,"mobs_mc:evoker") end local parrot = minetest.find_node_near(p,25,{"mcl_heads:wither_skeleton"}) if parrot then