From 9e1a26b670892a8ab6cd4e8372191ee62e96aaed Mon Sep 17 00:00:00 2001 From: D00Med Date: Sun, 20 Nov 2016 07:26:22 +1000 Subject: [PATCH] plants >added plants >added more greenblock and green door >fixed error with the light sources --- doors.lua | 1 + init.lua | 84 ++++++++++++++++++++++- textures/scifi_nodes_door4a_bottom.png | Bin 0 -> 382 bytes textures/scifi_nodes_door4a_bottom0.png | Bin 0 -> 187 bytes textures/scifi_nodes_door4a_edge.png | Bin 0 -> 91 bytes textures/scifi_nodes_door4a_inv.png | Bin 0 -> 299 bytes textures/scifi_nodes_door4a_rbottom.png | Bin 0 -> 373 bytes textures/scifi_nodes_door4a_rbottom0.png | Bin 0 -> 194 bytes textures/scifi_nodes_door4a_rtop.png | Bin 0 -> 351 bytes textures/scifi_nodes_door4a_rtopo.png | Bin 0 -> 159 bytes textures/scifi_nodes_door4a_top.png | Bin 0 -> 367 bytes textures/scifi_nodes_door4a_topo.png | Bin 0 -> 161 bytes textures/scifi_nodes_flower1.png | Bin 0 -> 514 bytes textures/scifi_nodes_flower2.png | Bin 0 -> 653 bytes textures/scifi_nodes_flower3.png | Bin 0 -> 733 bytes textures/scifi_nodes_gblock.png | Bin 0 -> 391 bytes textures/scifi_nodes_gblock2.png | Bin 0 -> 469 bytes textures/scifi_nodes_gblock2_front1.png | Bin 0 -> 333 bytes textures/scifi_nodes_gblock2_fx.png | Bin 0 -> 499 bytes textures/scifi_nodes_gblock2_screen.png | Bin 0 -> 490 bytes textures/scifi_nodes_gblock2_top.png | Bin 0 -> 270 bytes textures/scifi_nodes_plant1.png | Bin 0 -> 501 bytes textures/scifi_nodes_plant2.png | Bin 0 -> 935 bytes 23 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 textures/scifi_nodes_door4a_bottom.png create mode 100644 textures/scifi_nodes_door4a_bottom0.png create mode 100644 textures/scifi_nodes_door4a_edge.png create mode 100644 textures/scifi_nodes_door4a_inv.png create mode 100644 textures/scifi_nodes_door4a_rbottom.png create mode 100644 textures/scifi_nodes_door4a_rbottom0.png create mode 100644 textures/scifi_nodes_door4a_rtop.png create mode 100644 textures/scifi_nodes_door4a_rtopo.png create mode 100644 textures/scifi_nodes_door4a_top.png create mode 100644 textures/scifi_nodes_door4a_topo.png create mode 100644 textures/scifi_nodes_flower1.png create mode 100644 textures/scifi_nodes_flower2.png create mode 100644 textures/scifi_nodes_flower3.png create mode 100644 textures/scifi_nodes_gblock.png create mode 100644 textures/scifi_nodes_gblock2.png create mode 100644 textures/scifi_nodes_gblock2_front1.png create mode 100644 textures/scifi_nodes_gblock2_fx.png create mode 100644 textures/scifi_nodes_gblock2_screen.png create mode 100644 textures/scifi_nodes_gblock2_top.png create mode 100644 textures/scifi_nodes_plant1.png create mode 100644 textures/scifi_nodes_plant2.png diff --git a/doors.lua b/doors.lua index 9b7de95..a46431e 100644 --- a/doors.lua +++ b/doors.lua @@ -17,6 +17,7 @@ local doors = { {"scifi_nodes:door2a","scifi_nodes:door2b","scifi_nodes:door2c","scifi_nodes:door2d","2","black"}, {"scifi_nodes:door3a","scifi_nodes:door3b","scifi_nodes:door3c","scifi_nodes:door3d","3","white"}, + {"scifi_nodes:door4a","scifi_nodes:door4b","scifi_nodes:door4c","scifi_nodes:door4d","4","green"}, {"scifi_nodes:door1a","scifi_nodes:door1b","scifi_nodes:door1c","scifi_nodes:door1d","1","Doom"},} for i in ipairs (doors) do diff --git a/init.lua b/init.lua index 127ab32..24cdfb6 100644 --- a/init.lua +++ b/init.lua @@ -54,6 +54,52 @@ minetest.register_node("scifi_nodes:stripes2", { groups = {cracky=1} }) +minetest.register_node("scifi_nodes:gblock", { + description = "Green metal block", + sunlight_propagates = false, + tiles = { + "scifi_nodes_gblock.png", + "scifi_nodes_gblock.png", + "scifi_nodes_gblock.png", + "scifi_nodes_gblock.png", + "scifi_nodes_gblock.png", + "scifi_nodes_gblock.png" + }, + paramtype = "light", + groups = {cracky=1} +}) + +minetest.register_node("scifi_nodes:gblock2", { + description = "Green metal block 2", + sunlight_propagates = false, + tiles = { + "scifi_nodes_gblock2_top.png", + "scifi_nodes_gblock.png", + "scifi_nodes_gblock2.png", + "scifi_nodes_gblock2_fx.png", + "scifi_nodes_gblock.png", + "scifi_nodes_gblock2_front1.png" + }, + paramtype = "light", + paramtype2 = "facedir", + groups = {cracky=1} +}) + +minetest.register_node("scifi_nodes:gblock3", { + description = "Green metal block 3", + sunlight_propagates = false, + tiles = { + "scifi_nodes_gblock2_top.png", + "scifi_nodes_gblock.png", + "scifi_nodes_gblock2.png", + "scifi_nodes_gblock2_fx.png", + "scifi_nodes_gblock.png", + "scifi_nodes_gblock2_screen.png" + }, + paramtype = "light", + paramtype2 = "facedir", + groups = {cracky=1} +}) @@ -322,15 +368,14 @@ node.types = { {"doomengine", "Doom engine wall", "doomengine"}, {"monitorwall", "Wall monitors", "monitorwall"}, {"screen3", "Wall monitor", "screen3"}, - {"doomlight", "Doom light", "doomlight", "12"}, - {"bluwllight", "Blue wall light", "capsule3", "20"}, + {"doomlight", "Doom light", "doomlight", 12}, + {"bluwllight", "Blue wall light", "capsule3", 20}, {"fan", "Fan", "fan"}, } for _, row in ipairs(node.types) do local name = row[1] local desc = row[2] - local craft_color_group = row[3] local light = row[4] -- Node Definition minetest.register_node("scifi_nodes:"..name, { @@ -342,6 +387,39 @@ for _, row in ipairs(node.types) do }) end +node.plants = { + {"flower1", "Glow flower", 1, 50}, + {"flower2", "Pink flower", 1.5, 10}, + {"flower3", "Triffid", 2, 0}, + {"plant1", "Bulb plant", 1, 0}, + {"plant2", "Trap plant", 1.5, 30}, +} + +for _, row in ipairs(node.plants) do + local name = row[1] + local desc = row[2] + local size = row[3] + local light = row[4] + -- Node Definition + minetest.register_node("scifi_nodes:"..name, { + description = desc, + tiles = {"scifi_nodes_"..name..".png"}, + drawtype = "plantlike", + inventory_image = {"scifi_nodes_"..name..".png"}, + groups = {snappy=1, oddly_breakable_by_hand=1, dig_immediate=3, flora=1}, + paramtype = "light", + visual_scale = size, + selection_box = { + type = "fixed", + fixed = { + {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3}, + } + }, + is_ground_content = false, + light_source = light, + }) +end + --chest code from default(Copyright (C) 2012 celeron55, Perttu Ahola ) local chest_formspec = diff --git a/textures/scifi_nodes_door4a_bottom.png b/textures/scifi_nodes_door4a_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..f434b1b9fc5cc685be197a514eabfadff9ea97ed GIT binary patch literal 382 zcmV-^0fGLBP)WBCp{oo#or3fDC z&6=>L48k7tptITCgwTPINoL=hnK!c+>-F=GwIu*xHoHSr9pSwP5dlErtL^viu(m{5 zK4KIHcDq*qNB}WWp9O-$;REyeZ3yH5BI+dx1gq84S%BC?zFGq28#w16A_1r*`s7+9 z6##%S21Jx(&%Xx=`b5+0%nT6$0F1|%;e3(yB!Pg4AR=I9v~6;ylF^VzLv(>N>^5C50yZ?W>N1Axuu1y85}Sb4q9e0IG@-!vFvP literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_door4a_inv.png b/textures/scifi_nodes_door4a_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..e8ae22612537b82f79d5066b0ddbdbdbf9c000cb GIT binary patch literal 299 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkQ1Gs& zi(`nz>8Xv4|T?-ei z%3|m{ZkrrstoU5$-plv{ufH-oOnb{Pp=G9SaX@J4dB=*?lSAkulTnt4dA}P|Mxl2qYR#|elF{r5}E)ej&-^K literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_door4a_rbottom.png b/textures/scifi_nodes_door4a_rbottom.png new file mode 100644 index 0000000000000000000000000000000000000000..afc80f56c7c32acd7ccbc30899dc9953fa65a4af GIT binary patch literal 373 zcmV-*0gC>KP)R5;6hQ^9J(FbsW5E3%rhjMDbB9Cj&;9{Qd8lKxT&V?897 z(ahjc#6Ym^P~^z1GeN*O(tA%&^4)&_`rCEyXqpb2%@b^h2#6>-FBVI9-va=erbB^D zhzJ10VtYOu-jduRS8NL{AONh_k7(P|0Koi({~`yt+r5k{AR>rJ{HzDej1U5xdx-hd zF;?eXR)xJ!6wGEN0Dzg{oQn#^OwB5=%$m&1v8`)EvmV%_5JHwUQD6~?2q6SiRh9I6 zK7YrYvYey<)@3bH)3l}ed>~-vaSyB#HB%KRXi@wigwGVfj!Budor{8dh)klo8wEs! zx?Z7ePjSoavRtMyY^*+}XreOK^(y}KzR#}l^`xfW_c$IuZWhKGIrg}=+h_a%-)y_= T4n(3Q00000NkvXXu0mjfz%Zb5 literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_door4a_rbottom0.png b/textures/scifi_nodes_door4a_rbottom0.png new file mode 100644 index 0000000000000000000000000000000000000000..2689165e1e57dac2a4abb0616debb9d9dcceba27 GIT binary patch literal 194 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP_V?) z#WBR<^wEokd=3sGEEg2j9x+(meiu9U$XpSTZGxLxos3zh`cCP-5&!p9>a+hm6EBy( zeR!u~U-^b@j(yWV+i!Ru{fK2gV`%6;e+5lPR?kFrN&X3Y95eSRXsT4QOlUDQU6xr{ oc4YN_L({H^1HVNdTd==jd38rq?Z4kmL7@E%p00i_>zopr08cMOsQ>@~ literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_door4a_rtop.png b/textures/scifi_nodes_door4a_rtop.png new file mode 100644 index 0000000000000000000000000000000000000000..14ef94650a44af4940ae3e315429ebac64ccf9ce GIT binary patch literal 351 zcmV-l0igbgP)lizB>FcikWNozEaj?5_oD+TX%=>uFzSwrgvl#+JjoWU4_IF7y8Xy}yn`WXPgIfImS zFu4bCgQTpzz)*4zV1qbkL1;)5JGovP&jS}~uV9S1U4d2Cux>>+0jE<1O3Cl)tMd|@ z*4#k=r36`)K`8-3=2$FVa6W$`NuH4B`LGABrqdY!fRK5ctdzLl1zYCv`0kl$N39!h x&b&|61FTk$gKguSq5JtJp@$S|S*V2o@B=KufTT4)(1HK}002ovPDHLkV1k;$lvDr! literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_door4a_rtopo.png b/textures/scifi_nodes_door4a_rtopo.png new file mode 100644 index 0000000000000000000000000000000000000000..e8eeb1410b5fafee4c759d6863f64709d084c546 GIT binary patch literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP%zNb z#WBRwI`}a&>{7Ff;3ekB_fEk^b=GV>Vl4WZ6qN&C>tlEwr>Y!UMFdo- z5KD>VVEND_eo<6hzL^FP)dXIsEtC*JTi}fh+vEX04$fk z<_a-`lyy)I3mp;>fNSuQCGRD$UF|qN`3<8`2V)GRtUJZ7nx@fV1#U+nsB<1N&?6us z9FJ#k9tBFTP)fJP{_6qf5wa{pRh3vQo^iQ+LhA-`oFLD0k9HK2RaGV8IKk=kfhc+e z0F1|z{t=X_{-W-fc8hONN_$=~_XkSTb?*vKr;}kL+%Jp$wC^_L%dOp~4z`|tE803PY&>?3wttPbCClf5@K{2M zejOA5cFSsOC|?HpeG308;LPgheR00Z=FYGHh$Y{+cG35{!j<4tI4MqQO_$(_S;yC* zTx!*vd4S^&uLNKVLVncR;G%QJcLuSNi~S-U`9{J1Al8%2tV1LBdKkW1NPG($yJ zOVoASsS+MbNc);Q)$&YU=xT#btxCgF5Bz7e=I0+_r4`hPo+dj~z0=A1pk|6)Iv|z5oCK07*qoM6N<$ Ef<&wAi2wiq literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_flower2.png b/textures/scifi_nodes_flower2.png new file mode 100644 index 0000000000000000000000000000000000000000..e12516abf652e3043fd917b8231a50fcd6c0cb38 GIT binary patch literal 653 zcmV;80&@L{P)6wEeyw5KI^*Ou`-t}pKn{B=}5jsb9?!}j+1*kbVLofFxNQQO*Aj>4@$mRzhEAU1- zgyu*&L792+QUTsb_nqJ^gDjJT<^ZJvWHKQ$0Jn9**j)1$)|_z~Et4=9LR1B26{QlV zY<}~8tdUw@B>?b#+y_bp0Kna+bvl3BVgP?w!RDF|Ru+Ia()|UB))=MSH<&6#61TpA zw$~{#m>%8(Rf?q6SBd)uk43iqE;}=B>m<_Od~8hpyFA$Aq%nMKF!#PpF`B4>fbJ>f zKk25bd~!@$TE^zU+2bC#*=GMp1l&f4)!o|6HoGXlhFG|qStbR-%#;_QGZ)@+;+>&H1x?`du+3er2*i+z5b9`117=UQe4^bMQl@do^B8o0XpG=BhDo1Px- n@XFRc%^kqX);=YjyG;ECm<}*g^!b3v00000NkvXXu0mjf(Pbaz literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_flower3.png b/textures/scifi_nodes_flower3.png new file mode 100644 index 0000000000000000000000000000000000000000..2c17b4eb6d685297c39c7aaf388b31c8009bf61f GIT binary patch literal 733 zcmV<30wVp1P)&$ux=7TFXACT zN6#U*dJYJlJ@=erVhF*D2^x%n1#M5EAQFVM4ZTR|ZUmzX3Dd*&EsM3rU4PonY4+{D z`M&vP-kSyfSEH){(N%yZjl(Q~R|15FqCLEHgNdKm+z9C4tryzD(wB)y*v!hVgKysg zEe{ZN0}TaM%VCNDzCi9*9n+vp4aKOWOqBDDm^&9+t8J}`n!*X53@N1 ztL1gF$@fs3eb|>5(W%L(=c)_6$eL)NLucvxXjn|&R8S~gUH zXg*0L;h1q>ZT6ua-9Z`wZY+-(lD{bs&c>*;p@9ohoJt$V%)Y$%$DmG+697=pRhg>v z@brxb;cSee`6R8D*U2=2i`^5(iAX|`0f5@<58dqbdv!mU2vI#(WoomJhZTlSO~%>U zAq!_?BuH^G-2 zQX&NtAsXx>UPfbi=XMeCvPnXbabRBF`4AYRgqHsYjPkdy+vv(&%QxY_Ka3(Nk!F?s zShL`KufifJk-UB{+ShHI?^W0+vixp%>|4t{5KM%~|H==ZJ)eY;lt_bs!9<82Q)gs0 zJm6+#i;P(r9;z P00000NkvXXu0mjf=P5^= literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_gblock.png b/textures/scifi_nodes_gblock.png new file mode 100644 index 0000000000000000000000000000000000000000..a2b082eef80f5710eba9a1d283e153d01fed44d0 GIT binary patch literal 391 zcmV;20eJq2P)hi5GkD!bA2|d=zhe2QFTy zk;FeiWf9k;J(xu_i0zyQW3<+Y2+yFkW@@{k6sN}-n3wCpHK8>`rBtgW0Na$MNxFzsgkUhl_k&BJ@*U|ixeREt zP#>~hr7RZT063j1%{Db{LY8HS2(IfA42C#Pk8am(S5Wup`+l`vuTlvBAv_ywE9pm$XWKz9HD002ovPDHLkV1jK7o?id} literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_gblock2.png b/textures/scifi_nodes_gblock2.png new file mode 100644 index 0000000000000000000000000000000000000000..0b12bc1afc3afb174c73a7aea81f1f75b7d01fb4 GIT binary patch literal 469 zcmV;`0V@89P)c z@HZNGo)5ru`baz)*aoZ8)+TqiF~i|s0BWDB_5=q9TNbR9rYRzV>$>fXd*)6+a}xfH5LoSY?j*@MA5+9wg$2+!*yL_ z6pseX<_nWS6b)Ek|4Q}YKBd|8d3wstacE5@sWDu>hkD(iDCYbJI}+yW-L-x;00000 LNkvXXu0mjfB}LOm literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_gblock2_front1.png b/textures/scifi_nodes_gblock2_front1.png new file mode 100644 index 0000000000000000000000000000000000000000..6c0210ecb3b23a29c485ad797d85253dc1c1ae6d GIT binary patch literal 333 zcmV-T0kZyyP)-AHo zb%~TS0J^UGGKCl&em|XXgo6-ZZNp~sjC<5?=%fDe25T)+N**4U`2HPjYpLss-EIqj z3y>rktJQK8&|2ep-ca=Vl2JD;05>z2B*~c1Z*hz5p2gyx!=VD8s+u8GmiwX5S_^=b f5&+*<7}M|p4eO#cOb{(~00000NkvXXu0mjfM}vy3 literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_gblock2_fx.png b/textures/scifi_nodes_gblock2_fx.png new file mode 100644 index 0000000000000000000000000000000000000000..d4580a21e0deced44ab79a00573e43f8a9543589 GIT binary patch literal 499 zcmV3tJMO?X+xltG7DSVCf#m#?4mKy z==ycr~dvvx}at}CKTn_p?WRCz8ryP`0xhPue z?)?1mHy@!kSEt!rVR7*T)!7ov1^#zjtr#i1LXeTc_&=g&HaUxeb&|+IBA+usgwxAIM+%& pQ2N5%-DtmDo&sQgzRLAg%zx#@-pjspU9tcG002ovPDHLkV1k^O=#l^c literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_gblock2_screen.png b/textures/scifi_nodes_gblock2_screen.png new file mode 100644 index 0000000000000000000000000000000000000000..486ff62edb4833a57768b92df05dfadc9cea0e45 GIT binary patch literal 490 zcmVl3z~ZP!z_0wXHVbv~>7mi83_A@aD@TvjHAifKM*K zwYUJc-~wEO2`{jKhA0e7#GvA>ScH;v9-vo?olNv3H{ZEm&-uZ6G)<09PXAl!M+$d!e)cwk zD(>akw@vnKQ~H~nD(o{&Ly@TpT2i3!R0;QN;`Y15!U878P6A7D@V{ElMU=@-hIBtzwF(tA~wAvkd z4^Q$Q*(G^zwL9q}{F(S*71A-bb=CKr=KDUsFE0|ar!7*vOz{#)f#c&}1i|XJ==wHM z6amZCnkq^nxKK1ux3Z|}iodx5?IrLDUV?vaU>Jtzy3U?+!1uhvav3t8&$t^6-`>FU zhSci^iG&~s$Ye57=x#J*zF2j(v#sHILvp!qXp=`lxt!Hq)$ literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_gblock2_top.png b/textures/scifi_nodes_gblock2_top.png new file mode 100644 index 0000000000000000000000000000000000000000..77e48a2c389a4d7f11459600224237686b601e0e GIT binary patch literal 270 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkQ1F1K zi(`nz>8BI-ay2E0w9U7(o6Hk6t7%$W)SeT0M`st53w&a_6&+>bA#~+@U%=!=iZ{;R z*erAJ^XDRq^hcGy*$-Tqw{UA~uC+->D5Jx~bcQFcZqvV1IWw~yWW0V?K`CO|Q3<6( zFGV&-=?0#wX?&f>;MVTC4_YGRYfanO5npD%Ut zPVaut`F_6Vo(KQy+`Ky?%hj|1R2EY5ufB`d(-IN&_nrG$0hnDJj6ie^AOxAe^g(P< zo9!k$1mN=3Pu=^8vBzSAw7F1Dik)02Cyh3ddlr4B2I<7og#lTvrXz2T?7%*Sa#ALX zfoOPXlol%sDPsnhagUJ=`bl_- z+h;PNDc-)@Br<{1c?yi1!rFF&Mx)8My?uN?9-83ItFtCZb*VMeusVH8jvw|>j>FL- z{nQ&R&W{fCT%4KU^ZRp#`uxj=N!{71(?;QWZqKEwUSh&ixa}4RPtp8i-r4=$6JS!^ zYZKxO1*q{9KVR3Fdhihd-;dL7cX%{+($uK`pmpnItovK8jEM~b=v&E4DU+1Ka3Fmv r`QO@&(~-XLLjDrHrJUF%t=acq#3-l1s}Rk~00000NkvXXu0mjf6w2vV literal 0 HcmV?d00001 diff --git a/textures/scifi_nodes_plant2.png b/textures/scifi_nodes_plant2.png new file mode 100644 index 0000000000000000000000000000000000000000..4cf4251782ecbcaa65043e90d86266667b5a9438 GIT binary patch literal 935 zcmV;Y16cftP)R}_W60rF=@1>@;hvISO2Cy&%8SVBs8V-bR#B5RtrRclk0L~~VwFV&YFa@T2saG~>_9@SkTM-=ma8acJ5$g0D!stlAY^qJBD_1ls2ym0FUfqZZ^xvwP~sD&v58+ zSok}jY$FXEBiJbJj!_*cJ34Y%Tf_umwO zPA@sV$jZBUPNxDjf!9PJloqw&eRxb2(}Ni)KVxwGlnP*jhmu`lU&e8GOcj7F`|(q%O~NAB z5Ctq1E-trGEtmw3bn>a^Z3bpdss$6kaT^>HurAogZj}$Semfu2y*2$2HBo1{kNWF+ z-!Xx!SI&rFupL?Mu)$@ygJ7_ot5?p5eOI8~a7