From 53b8bb273e10b3620774ce80e3f161acc6865e4b Mon Sep 17 00:00:00 2001 From: duckgo <==> Date: Sun, 5 Mar 2023 01:16:53 -0300 Subject: [PATCH] 0002 --- doctorzombie/init.lua | 23 ++++++++++ nodex/init.lua | 33 ++++++++++++++- nodex/textures/gray_node.png | Bin 0 -> 709 bytes nodex/textures/green_node.png | Bin 0 -> 758 bytes nodex/textures/red_node.png | Bin 0 -> 812 bytes runner/init.lua | 22 ++++++++++ structures/init.lua | 65 +++++++++++++++++++++++++---- structures/mod.conf | 2 +- structures/schematics/cabin.mts | Bin 0 -> 591 bytes structures/schematics/home1.mts | Bin 853 -> 872 bytes structures/schematics/hospital.mts | Bin 0 -> 1776 bytes structures/schematics/hotel.mts | Bin 0 -> 1321 bytes survivorzombie/init.lua | 24 +++++++++++ walkingzombie/init.lua | 22 ++++++++++ 14 files changed, 181 insertions(+), 10 deletions(-) create mode 100644 nodex/textures/gray_node.png create mode 100644 nodex/textures/green_node.png create mode 100644 nodex/textures/red_node.png create mode 100644 structures/schematics/cabin.mts create mode 100644 structures/schematics/hospital.mts create mode 100644 structures/schematics/hotel.mts diff --git a/doctorzombie/init.lua b/doctorzombie/init.lua index bd88e59..fc19897 100644 --- a/doctorzombie/init.lua +++ b/doctorzombie/init.lua @@ -1,3 +1,5 @@ +local climb_node = { "default:ladder_wood" ,"default:ladder_steel"} + local zombienods = { "default:dirt", "default:dirt_with_rainforest", @@ -17,6 +19,7 @@ local zombienods = { "nodex:road", "nodex:road2", "nodex:road3", +"nodex:whiteblock", } ---- SKULL SWORD ------------------------------------------------------------------------------------------------------ @@ -81,6 +84,26 @@ mobs:register_mob("doctorzombie:doctorzombie", { die_start = 280, die_end = 300, }, + + do_custom = function(self, dtime) + + + local pos = self.object:get_pos() -- consegue sua propia posição + local vel = {x=0, y=0.2, z=0} -- deveria ser velocidade hehe + local face = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) -- bloco que estar em sua frente + + for i,v in ipairs (climb_node) do + if face.name == v then -- se o bloco em sua frente é escadas + + self.object:set_pos({x=pos.x, y=pos.y+1, z=pos.z}) -- enquanto o bloco for escadas y+1 + self.object:set_velocity(vel) -- velocidade, não eficiente :/ + + + end + + end + end + }) diff --git a/nodex/init.lua b/nodex/init.lua index 5427e34..5316677 100644 --- a/nodex/init.lua +++ b/nodex/init.lua @@ -44,18 +44,47 @@ minetest.register_craft({ ------ CRaFT ]] ----- white block : +---- HOSPITAL BLOCK : minetest.register_node("nodex:whiteblock", { description = "White Block", tiles = {"white_block.png"}, paramtype2 = "facedir", groups = {cracky = 3}, - drop = "nodex:road", + drop = "nodex:whiteblock", sounds = default.node_sound_stone_defaults() }) +minetest.register_node("nodex:greenblock", { + description = "Green Block", + tiles = {"green_node.png"}, + paramtype2 = "facedir", + groups = {cracky = 3}, + drop = "nodex:green_node", + sounds = default.node_sound_stone_defaults() + +}) + +minetest.register_node("nodex:redblock", { + description = "Red Block", + tiles = {"red_node.png"}, + paramtype2 = "facedir", + groups = {cracky = 3}, + drop = "nodex:redblock", + sounds = default.node_sound_stone_defaults() + +}) + +minetest.register_node("nodex:grayblock", { + description = "Gray Block", + tiles = {"gray_node.png"}, + paramtype2 = "facedir", + groups = {cracky = 3}, + drop = "nodex:grayblock", + sounds = default.node_sound_stone_defaults() + +}) ---- COAL STAIR : diff --git a/nodex/textures/gray_node.png b/nodex/textures/gray_node.png new file mode 100644 index 0000000000000000000000000000000000000000..0bfbfc97abcf66c83d9a2d5821f4338f9c7bf6cb GIT binary patch literal 709 zcmV;$0y_PPP)o!)sqec$){^vriaOWH=>uN{ND6L_gaJUW-2kJdjE zp$?5sx-*9Fj!#V``FDNXQlsikO!fNz-k+;!$@C4VX%HSUTrUuoX-KXHuHr4>b|aTr z5KV=cVEqRhIWI5VFWi&23&!_6>PwnUXLed@ zr|d3#QY45IMW?_rHUTlIj%4I2>^iv zer2(A18a3bd1h2Xh?5I~05_x3N`9{@%(5af$czG-NI?8UMrwUo00000NkvXXu0mjf+_FP} literal 0 HcmV?d00001 diff --git a/nodex/textures/green_node.png b/nodex/textures/green_node.png new file mode 100644 index 0000000000000000000000000000000000000000..75fdb4907dfc9a4af364d2630a2a16a12c629363 GIT binary patch literal 758 zcmVo!)sqec$){^vriaOWH=>uN{ND6L_gaJUW-2kJdjE zp$?5sx-*9Fj!#V``FDNXQlsikO!fNz-k+;!$@C4VX%HSUTrUuoX-KXHuHr4>b|aTr z5KV=cVEqRhIWI5VFWi&23&!_6>PwnUXLed@ zr|d3#QY45IMW?_rHUTlIj%4(@}ojzq9xL;#X^pwUqK2W5j;W8F6CldCu>Z;!Mf}e)oMx5`{d(&HFwy zAg}8JH;PH5*hH9k2w_>uu%2|JPb?4G?EnHn*jOAa?OpnbmW39aY{+Y^1rtEpMk|j{ zADjnC$^zLQEMQeRkxlB5J$}bzr$*|+d*hFQTB!ahBzxZll6id9QV*FaQ7m literal 0 HcmV?d00001 diff --git a/nodex/textures/red_node.png b/nodex/textures/red_node.png new file mode 100644 index 0000000000000000000000000000000000000000..8b6ca03f3e3ffa932c8f8f674d70bea06aa275e7 GIT binary patch literal 812 zcmV+{1JnG8P)o!)sqec$){^vriaOWH=>uN{ND6L_gaJUW-2kJdjE zp$?5sx-*9Fj!#V``FDNXQlsikO!fNz-k+;!$@C4VX%HSUTrUuoX-KXHuHr4>b|aTr z5KV=cVEqRhIWI5VFWi&23&!_6>PwnUXLed@ zr|d3#QY45IMW?_rHUTlIj%4#?C=zybEzS+9y z$ebx@zYUdEB;L}8G5`(JC%XWrVDcT{`$3bUbAL+0#b2rn-Pg+u)|1GqIi;O8LYAPi qmLxN4)1yKQF=m{x#Ad=d@cs|6MHRI_{hUSs0000L7+8!W5*)foIu5NWqx9wa^p7Zl>k)3^o z)rYvBpSruV)%tJl#(Q^^cOJbE*?+tA`s{uC_L@H}i?jN8=aBZ2y^GcEowL8=|MI79 zpY&e+GyIRlMCFA#U6dwz*spC&SGiQeY24oJtg>WEK;4$PMI2mHGOUAE?$X$CMd;|f zdl7Rd3Fh4~x>aUoX7zE#ta}a8vL>gln`=ez=JA=ImKF;QJ3Dc@*Sbf#8OLAu?k+3R zDQehqS?gZJcKPh(eu)*gFZHRe+for6vRqT_#>tI0ZuGr9d*)!0x%Co>TE;d*<`@8c CIRr@n literal 0 HcmV?d00001 diff --git a/structures/schematics/home1.mts b/structures/schematics/home1.mts index dba99bdf91aa143851781db7e46197ab88f325fc..f559ed1f3f8bfde1d71d8c87b0504b3df579b910 100644 GIT binary patch delta 493 zcmVVv{3sna=`KKQXu9}s6F9u&U1s2ISF zDEMza_?|q4KOTR+y=`qzTuy!8qYnZuWX)eSdy{*HkSqt>M}!p{s+44g@47$S1J76? zv@XD4sSg86Ftf(qe5j;ygl~Vq`jq{_=gy&b$MmP{86Gu%&iCOge|gb;(D~f7{^veW zATKPw&?RPE%=3X_JRU-(r$Nz<0;l3vZF1jG5tgdPNP`a0?Ce-d|~;BQniIc^0HAb*c}=+eYya z($LuaS{hA4y}0p!XrXcRysY75cF0CFcw%)O4KwfMYCibz{OF%c@uE?F@rF jml~pt@7KWkH4}4PjA?)&UkrSW8uGb+&-Z~}JyD;}^iJ^a delta 474 zcmV<00VV$E2Gs_T837it8a)A%W&t>V4VQu-5L}cp@4Blz%b$CH{Zc-5fu+=>>>k6b zha<``E-VTFf++w6Qz%N93wbSA+ju;lHQ4H3YE1Q^(glVe<#zT=4{2Lgq@~NdJ{Zo0 zggW3-V44p&q7QNp%2FQ;K1rR9$@PK9I(<#x<-Y9bfVzD`M^DS3O*ixzS*|E zCn0B!*XTn92Quf6mObe;qtdJdTt_M|HcV;A2;X&mfXFj8h|LRdSn7j918&w>n-4!) zIf7dsus&ve;M~~^?zsLm10$2>&*?tw^_2&E4?3Qc)qmdy3gjz~uWd;g7t?&8xE&8; z=8(IuPzd9pUR6Bc`q0AJ8^!#8c@gd(*S(W591lMn*z(;-D;7xRH~S6hS_9y> zWAVUO3Rn<#E^`1!7X;fq7&m1T2|Lut0JW$ORVDKq?2vgUDP4 zm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CVRrc~g~_L~Z7lA(<)nT65(zDj zTNhT#h%@o1GS{ZbY3E&T$C(-J%yBWYy#1vg2C=&3ms))(c)Ua{dQP$Ry6n=L1eVN<4`9JG26;Qgp)>DJZ zpTUmb$a77dU)#WkTp>1Wn_p5=Vyh|EP$v&Vh;4N=2z zfc4QMP=RaLs~yqhs|3-MHj@=bPp9lHv)@2I-NH~!E!`XJiD|dIezC{}0g zXJRSaKD1Z{TZ%&C=))#?XvJ^KUGY8i5VK(J{Ip!d7r8k~#QC5v`g4ANJopFdsF9Y+ zhEh}KtAbgt_M652D$y3-tvpnwyRnAr>){lNlVxXYPW1ZHDkud~)L|;%ZE3-TucuA$ ptHdXszOb<9VxGT|jk%6(HeT(Zw=N)@yl=aAN!^%Rk^Q^Ne*^HeY-9ic literal 0 HcmV?d00001 diff --git a/structures/schematics/hotel.mts b/structures/schematics/hotel.mts new file mode 100644 index 0000000000000000000000000000000000000000..6134048691dc74c68d165a789b1d63834022ff23 GIT binary patch literal 1321 zcmZ8eX;4#F6n-txvB)Y=MhbCjWo%0sYFi{#DbpW-2myhCLP~hadn9R+cj3KsG=vzn;_Ab6-S33|(HMF_Ju%x^kbmjt5Zb@Q*<=I~I0>WYmb1f4oqIJMb; zB!LKW*aDIud7VXxz_^IRTmS!UrnV^t)v(Ex$q@x2EEuxcfOvdr4A`qtC7~DxWv%Bx z_FG(2N&g?i=1?i~RNa#(hVU`22~#$Zn2K zWTnhIIBU2bQragTL%%$^IOwa^Yi@sY*e+VyRKxAz$F-swjfK==Q5m?>Cze!tD!yXv z4lGWD-4|rD5|106E{Z$p{lx)ePl%Y@R*}D8wsOfSp3thcJ9)ZkG`<~;y*XO(-jaiU z^a%~4dY>2<%(yuRujHf9-%vuqi2ds3U;h6tNdna1y#$Dd4s%6pFr+@nmovm z5%q4Fn;gh}M@NBpS|GU7i}+sdjDCNK5NG3$r41D#lFr-{KPk%fxq*gqz~2 zU9Gx3{)5`m?B}IaOs-eRRgl`r*}(Dx`29@LJy0tF#NleOdI$_T%x) zq&`2<+Yo8Jb0Q+4J60BfE4ulg7r)n&Kem0UXx_8T_MuAKn3nr-RE7L6f+ZtmnZnzz zf5<#5iwx_pDsa4~wT;Pe4(7`%=D!~g?MbnCa}Mtc{h>p@P(FQ1eKJlm>cTv%zN?S) zW4v>$^Il|lkG~Z&{BQ%4rBvyVo5{^R#WW&eTG#UdcRJKmfE+@IIf z=oz4)c1;)ek$U9NjHGSGrtLGw(7xq_Nk-rA<>~d+*O%^N1sa7;jMZa}ElN-nR+#8g yd@Hv3kHJeR#(=Q%vljf-bIx6sV@B1Kw(jThPw6qTRyY`orcHd10?zkT;{O61kZ2eH literal 0 HcmV?d00001 diff --git a/survivorzombie/init.lua b/survivorzombie/init.lua index 1075235..8422315 100644 --- a/survivorzombie/init.lua +++ b/survivorzombie/init.lua @@ -1,3 +1,7 @@ +local climb_node = { "default:ladder_wood" ,"default:ladder_steel"} + + + local zombienods = { "default:dirt", "default:dirt_with_rainforest", @@ -82,6 +86,26 @@ mobs:register_mob("survivorzombie:survivorzombie", { die_start = 280, die_end = 300, }, + + do_custom = function(self, dtime) + + + local pos = self.object:get_pos() -- consegue sua propia posição + local vel = {x=0, y=0.2, z=0} -- deveria ser velocidade hehe + local face = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) -- bloco que estar em sua frente + + for i,v in ipairs (climb_node) do + if face.name == v then -- se o bloco em sua frente é escadas + + self.object:set_pos({x=pos.x, y=pos.y+1, z=pos.z}) -- enquanto o bloco for escadas y+1 + self.object:set_velocity(vel) -- velocidade, não eficiente :/ + + + end + + end + end + }) diff --git a/walkingzombie/init.lua b/walkingzombie/init.lua index 8de12f8..159a860 100644 --- a/walkingzombie/init.lua +++ b/walkingzombie/init.lua @@ -1,3 +1,5 @@ +local climb_node = { "default:ladder_wood" ,"default:ladder_steel"} + local zombienods = { "default:dirt", "default:dirt_with_rainforest", @@ -80,6 +82,26 @@ mobs:register_mob("walkingzombie:walkingzombie", { die_start = 280, die_end = 300, }, + + do_custom = function(self, dtime) + + + local pos = self.object:get_pos() -- consegue sua propia posição + local vel = {x=0, y=0.2, z=0} -- deveria ser velocidade hehe + local face = minetest.get_node({x=pos.x, y=pos.y, z=pos.z+1}) -- bloco que estar em sua frente + + for i,v in ipairs (climb_node) do + if face.name == v then -- se o bloco em sua frente é escadas + + self.object:set_pos({x=pos.x, y=pos.y+1, z=pos.z}) -- enquanto o bloco for escadas y+1 + self.object:set_velocity(vel) -- velocidade, não eficiente :/ + + + end + + end + end + })