From 7f2ecb6ed0d1c0140a222411022c9c45375fede6 Mon Sep 17 00:00:00 2001 From: PrairieWind Date: Thu, 13 Oct 2022 21:06:58 -0600 Subject: [PATCH] Add brewing stand and furnace to igloo schematics --- mods/MAPGEN/mcl_structures/igloo.lua | 12 +++++------- .../mcl_structures_igloo_basement.mts | Bin 537 -> 595 bytes .../schematics/mcl_structures_igloo_top.mts | Bin 329 -> 340 bytes 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/mods/MAPGEN/mcl_structures/igloo.lua b/mods/MAPGEN/mcl_structures/igloo.lua index 49e3c879a..10d1fe35a 100644 --- a/mods/MAPGEN/mcl_structures/igloo.lua +++ b/mods/MAPGEN/mcl_structures/igloo.lua @@ -3,8 +3,7 @@ local S = minetest.get_translator(modname) local modpath = minetest.get_modpath(modname) function mcl_structures.generate_igloo_top(pos, pr) - -- FIXME: This spawns bookshelf instead of furnace. Fix this! - -- Furnace does ot work atm because apparently meta is not set. :-( + -- Furnace does ot work atm because apparently meta is not set. Need a bit of help with fixing this for furnaces, bookshelves, and brewing stands. local newpos = {x=pos.x,y=pos.y-2,z=pos.z} local path = modpath.."/schematics/mcl_structures_igloo_top.mts" local rotation = tostring(pr:next(0,3)*90) @@ -12,7 +11,6 @@ function mcl_structures.generate_igloo_top(pos, pr) end function mcl_structures.generate_igloo_basement(pos, orientation, loot, pr) - -- TODO: Add brewing stand -- TODO: Add monster eggs local path = modpath.."/schematics/mcl_structures_igloo_basement.mts" mcl_structures.place_schematic(pos, path, orientation, nil, true, nil, function() @@ -58,19 +56,19 @@ function mcl_structures.generate_igloo(pos, def, pr) if rotation == "0" then dir = {x=-1, y=0, z=0} tdir = {x=1, y=0, z=0} - tpos = {x=pos.x+7, y=pos.y-1, z=pos.z+3} + tpos = {x=pos.x+7, y=pos.y-2, z=pos.z+3} elseif rotation == "90" then dir = {x=0, y=0, z=-1} tdir = {x=0, y=0, z=-1} - tpos = {x=pos.x+3, y=pos.y-1, z=pos.z+1} + tpos = {x=pos.x+3, y=pos.y-2, z=pos.z+1} elseif rotation == "180" then dir = {x=1, y=0, z=0} tdir = {x=-1, y=0, z=0} - tpos = {x=pos.x+1, y=pos.y-1, z=pos.z+3} + tpos = {x=pos.x+1, y=pos.y-2, z=pos.z+3} elseif rotation == "270" then dir = {x=0, y=0, z=1} tdir = {x=0, y=0, z=1} - tpos = {x=pos.x+3, y=pos.y-1, z=pos.z+7} + tpos = {x=pos.x+3, y=pos.y-2, z=pos.z+7} else return success end diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_igloo_basement.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_igloo_basement.mts index c2a774e78276a64af756aa0cd43a0e33cc16b413..2bc92ae5d0746a54fee08ca04e07bc6209f24070 100644 GIT binary patch delta 302 zcmbQqa+yWgHze4XfrWvSft7*19t0Q!Ckj{aC*|j77h8eJjMSX8iLC}=qPfXA@kvFg z<(YZuR>dWWc`5M*1_l$i^w*1lWRf#di%W{Fz*Ky3ZemUjgD^6jswg!jJ~^?d zAho1o&fVaPe9a0xI;nZV&%dO8EdKsFyV0@x>V_lBW1AOF&$iTN(y(xdl9HGgmzff0 za-8RS!BtkP9fx#Z+pM)-``%LGhQuxJ`Lb7H-t<^XG$$MjFiy=eS?bPjw&T6>b)S>Q zTE}uF?pCiVs+{)aans?#@47kXe|aByY4Cl?j6_eVd7qsEmuWp;v(dae>N(5f)?>@h u%nUuUNBF_?v-cNgN~s_CW!itibc^%Uo6^0%ZbenB<%Xn2JQLk=SIv?<3oyK6u=i5s_F2{s2Z!_FTeLmnmx$Bx++E{AYtr~RuNq~l zcFu^SS=2fSW4pBGWm*1Ih2NQ88 diff --git a/mods/MAPGEN/mcl_structures/schematics/mcl_structures_igloo_top.mts b/mods/MAPGEN/mcl_structures/schematics/mcl_structures_igloo_top.mts index e3705236e497348663f2acc0202607ae49b09e41..5a2a96deae946c28850ebc7e88b920e67a1a4926 100644 GIT binary patch delta 212 zcmX@fbcM;;Hze4XfrWvSfsKK^9t?nN=ETe*2BF;KocQGYqExHmy!`T{oc!c$1`&{0 zT4_;UVsdJ+6_hd2DMmyXB$1S#pIvMPCNolV(k9L|EI1qTmWx4=I~ zVl&^Ze^(;(w3$vE@adfKiB}{=^&ngI(mio&D=u$5xLClK709rSEUPbzyWW$2_LcYZ zjYWr8zd!k%Rr#;7-9?4{3B&HLyIZqrkNoPI_fSJ<*+(U9rfU03b~cg=SIq|iz8qVd delta 183 zcmV;o07(DT0?7g`O;l4&00aOD00saDe}8{}e}4c700UuZasU!-V{BhzZ*pZib8c^U zVr*|?YmuH7kwjaOv@myAcjPoSv48Lzv?OYTq3%bNXOqx#~0DSL-w@O@c1bKW5lRR@~rS~Lcl loa#{I9#vAesI;vb?Y#EYdxoEZVOHgTfvq2D8&2|9XPg)jOm6@H