From 27558311824cc7335f082dadd73c8b2d3908f350 Mon Sep 17 00:00:00 2001 From: Claire Worley Date: Tue, 24 Nov 2020 19:41:08 -0800 Subject: [PATCH] TNT Rain --- depends.txt | 1 + init.lua | 32 ++++++++++++++++++++++++++++++++ textures/tnt_rain_bottom.png | Bin 0 -> 1469 bytes textures/tnt_rain_side.png | Bin 0 -> 1813 bytes textures/tnt_rain_top.png | Bin 0 -> 1862 bytes 5 files changed, 33 insertions(+) create mode 100644 depends.txt create mode 100644 init.lua create mode 100644 textures/tnt_rain_bottom.png create mode 100644 textures/tnt_rain_side.png create mode 100644 textures/tnt_rain_top.png diff --git a/depends.txt b/depends.txt new file mode 100644 index 0000000..4ad96d5 --- /dev/null +++ b/depends.txt @@ -0,0 +1 @@ +default diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..5d12385 --- /dev/null +++ b/init.lua @@ -0,0 +1,32 @@ +minetest.register_node("more_tnt:tnt_rain_starter",{ + description="TNT Rain Starter", + groups = {dig_immediate = 2, mesecon = 2, tnt = 1, flammable = 5}, + sounds = default.node_sound_wood_defaults(), + tiles = {"tnt_rain_top.png","tnt_rain_bottom.png","tnt_rain_side.png"}, + on_punch=function(pos,node,puncher) + if puncher:get_wielded_item():get_name() == "default:torch" then + minetest.get_meta(pos):set_int("rain",30) + minetest.get_node_timer(pos):start(.5) + end + end, + on_timer=function (pos,elapsed) + rain=minetest.get_meta(pos):get_int("rain")-1 + if rain < 0 then + minetest.set_node(pos,{name="air"}) + return false + end + minetest.get_meta(pos):set_int("rain",rain) + for i=0,10 do + minetest.set_node({x=pos.x+math.random(-25,25),y=pos.y+10,z=pos.z + math.random(-25,25)},{name="tnt:tnt_burning"}) + end + return true + end +}) + + +minetest.register_craft({ + output="more_tnt:tnt_rain_starter", +recipe={{"tnt:tnt","tnt:tnt","tnt:tnt"}, + {"tnt:tnt","tnt:tnt","tnt:tnt"}, + {"tnt:tnt","tnt:tnt","tnt:tnt"}}, +}) diff --git a/textures/tnt_rain_bottom.png b/textures/tnt_rain_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..1186fb57388630e116da0011b6842e31916150fc GIT binary patch literal 1469 zcmV;u1w#6XP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+U-|ucEczP{Ld-&2uL6#j>Cs}Z*Q>2-vK*rleB4? z_GitrA+kIYngL$i_TRt5{ez21ql==Ja!MXo%rSGp!2EvY^&}tH^Z4N}gDbl`UocDo zeb|3$Is6Ok^7g?c2Gwi3v*Qih0YoS8y26Y+$Nhbhu=8%GcmU;XAEa#hKGk{vwZn0x za@_GuYwzZ7cV$pisS5%H<}Fb0>lyb9!hRRriYLJb`3Au_1ajy&T)#|o&hK1*ndTQJtuGMf3~8z}F-`HI#k6N8oEC{m|FgSOQ-YDh8i#)_V~ zaacAB%9&f3JjK~)u!bCZFp$-FbD%B;K69ZJH?Me&43Rs*l?h-V{PX4>z5GsdW3*W! z@^;n=dGXXW(wNN6C%ixije|E?1-`U{e*aECkSZ9IRc6Bki?2IG6?)TFSUd;#3Hp5r zk<)$vphSo*NQMF!@CoXtL|&Pd2z4|NRFFA`$Q2Bb2zMmOF@(fU*?7jrH%iNwg%eLR z_9hS^Az^J97%CtuMuC1b8Z=ZSNEDGID&{0hNg>4~DJ4yFlPelDs%TPG)2zjUMH5S= zW|pmF&H;O%Wh1v?r`X~qTiSH9EpKH&Ya@&}WTc_PMjqv4?O^q;eSsu<}+ha2qQ_E+_+AYF;EycVi|OD_r}~)yg9L_ zc;l~_bCbH?V9tTMd)_`^t83w@{262vrF%84X^gk0?}6*anDQcvEtk}1^lVv{&e&;sC!;=k9+rXDc%Cn z&$cD^yyPCEx#uPKr=uUNxW&8sjZN)Upbr)2UOQLs73Y3%N?)P<>F8@v_u9F7-@D&A zXFmhN->RN*==~3k>iiX1b)a(q00Dz(LqkwWLqi~Na&Km7Y-Iodc$|HaJxIeq9K~N# zr6Lsvi%41q~8j=(jN5Qq=;KyRs!Nplu2UkH5`~Y!s zbW(JY691PJTEuv8+>dwn9(V5mp;2L))in-ix^1SD2{D^n6+^EGA&fx;5tW%`%t=xT zzT@j20lwbFd6xgVKS!UMw-^u*iD#K%+Qb{g)0?)zd7n7KO0r6PPCRDP1&JTIu6X>$ zx#+UMGb3guJx?4V7K_14w3Vu2MI^!67hOr0jK{clUJm_V1Zie?J*3a)a6c zxsm_?010qNS#tmY3ljhU3ljkVnw%H_000McNliru^pOAn06IxTK~yNu zV`P}Viva@Ozh)2=CCFxBU|?W)aEpO~fq`F;7&a3FiGY!zZ7E3_Scq}=s2@iCKm-5) X{gy+a0(tq*00000NkvXXu0mjfprEXF literal 0 HcmV?d00001 diff --git a/textures/tnt_rain_side.png b/textures/tnt_rain_side.png new file mode 100644 index 0000000000000000000000000000000000000000..48c4f0af235bdd51e08a39bee23e9a52ef221040 GIT binary patch literal 1813 zcmV+w2kQ8VP) zaB^>EX>4U6ba`-PAZ2)IW&i+q+O1bqH`LTi6(MFC+Ky>`6O-Ta}V^Tb3<3h1cM}a%NqK$ z`4i~&OW?8w$Q=f^P-d4ieg(G7lXexHE%^_Gfq?XZ4R^6 zYmC(m!6Qo5Vj*E}LZau>EDL1a3Ae|Szyo{5&c0J~B5q{}$c=kP0QGf%Zi0O2sr%?3 zy}RIZ+H|>#rQ0z==jjC5JGvap@b$uSSj4vzLaB(SlC80P?Df&S-@qF;MA>3{^_hsm*tx0uv24_INWFmPrfZIdYMK zlNpUVdx=sd0L#KniGa+9Ei~7SbG4mrIB*v4UMZ@)~9g z>sEjeVQmXz zNPvKL$bNF9J+mi590LGKu$;wk1_ER)R~X4g#If=mc&rT>Pm`A|J04`zCIDf@VQ&Q> zlmM177Wv~%Kn^7<)>vzu^)@IQZF1s_v(7p1Mv+Tiyz$mM?|tymry#)u8(i=qgcwrf zD5!xpy69twF{Z>SVW9+F3H%9^%vrL@HoNR|$T6pa^eLv;;)*Y!#F8pksVEcGRbNAm zH8oNVm77F+7bwJzOs+gL7sx3<_lVmQ)ap3r%0z7K!Vyy~*nOoW4o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