From d49fec92b3757c689e335f0d5bc7f3ca2538af7f Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Thu, 26 Dec 2019 21:38:22 +0100 Subject: [PATCH] new snow texture --- readme.md | 1 + snow.lua | 16 ++++++++-------- textures/epic_weather_snow.png | Bin 787 -> 0 bytes textures/epic_weather_snowflake1.png | Bin 0 -> 104 bytes textures/epic_weather_snowflake10.png | Bin 0 -> 105 bytes textures/epic_weather_snowflake11.png | Bin 0 -> 105 bytes textures/epic_weather_snowflake12.png | Bin 0 -> 105 bytes textures/epic_weather_snowflake2.png | Bin 0 -> 104 bytes textures/epic_weather_snowflake3.png | Bin 0 -> 102 bytes textures/epic_weather_snowflake4.png | Bin 0 -> 104 bytes textures/epic_weather_snowflake5.png | Bin 0 -> 105 bytes textures/epic_weather_snowflake6.png | Bin 0 -> 105 bytes textures/epic_weather_snowflake7.png | Bin 0 -> 104 bytes textures/epic_weather_snowflake8.png | Bin 0 -> 105 bytes textures/epic_weather_snowflake9.png | Bin 0 -> 105 bytes 15 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 textures/epic_weather_snow.png create mode 100644 textures/epic_weather_snowflake1.png create mode 100644 textures/epic_weather_snowflake10.png create mode 100644 textures/epic_weather_snowflake11.png create mode 100644 textures/epic_weather_snowflake12.png create mode 100644 textures/epic_weather_snowflake2.png create mode 100644 textures/epic_weather_snowflake3.png create mode 100644 textures/epic_weather_snowflake4.png create mode 100644 textures/epic_weather_snowflake5.png create mode 100644 textures/epic_weather_snowflake6.png create mode 100644 textures/epic_weather_snowflake7.png create mode 100644 textures/epic_weather_snowflake8.png create mode 100644 textures/epic_weather_snowflake9.png diff --git a/readme.md b/readme.md index 97d18a5..17230d9 100644 --- a/readme.md +++ b/readme.md @@ -3,3 +3,4 @@ epic weather block # License * **textures/epic_weather_rain.png** CC BY-SA (3.0) by paramat https://github.com/paramat/snowdrift +* **textures/epic_weather_snowflake*.png** CC BY-SA (3.0) by paramat https://github.com/paramat/snowdrift diff --git a/snow.lua b/snow.lua index 827ec9e..b3340d5 100644 --- a/snow.lua +++ b/snow.lua @@ -9,21 +9,21 @@ local function do_snow(player) minetest.add_particlespawner({ amount = 500, time = 5, - minpos = vector.add(ppos, {x=-20, y=5, z=-20}), + minpos = vector.add(ppos, {x=-20, y=10, z=-20}), maxpos = vector.add(ppos, {x=20, y=10, z=20}), - minvel = {x=0.5, y=-1, z=0}, - maxvel = {x=1, y=-3, z=0}, + minvel = {x=0, y=-1.5, z=0}, + maxvel = {x=0, y=-2, z=0}, minacc = {x=0, y=0, z=0}, maxacc = {x=0, y=0, z=0}, - minexptime = 1, - maxexptime = 5, - minsize = 20, - maxsize = 30.7, + minexptime = 6, + maxexptime = 6, + minsize = 1, + maxsize = 1.4, collisiondetection = true, collision_removal = true, object_collision = true, vertical = true, - texture = "epic_weather_snow.png", + texture = "epic_weather_snowflake" .. math.random(1, 12) .. ".png", playername = player_name }) end diff --git a/textures/epic_weather_snow.png b/textures/epic_weather_snow.png deleted file mode 100644 index f693811ae4650b424ae16ed162576f1f87a5d4ac..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 787 zcmeAS@N?(olHy`uVBq!ia0y~yU;;9k7#M*h!yV?A;XsNd-O<;Pfnj4m_n$;oAYUQb zBgmJ5p-PQ`p`nF=;TKS-;RORjsR0ASs{{rHs~HRo;stYd1=;{5m`Z~Df*BafCZDwc z@shmVT^Jbeb_p*5@;D1TB8wRqxP?KOkzv*x37{Z*iKnkC`(qwXHb#q!8B?+t7#M$e zx;TbZ+ezhD$ZsfJ=Fa&&)Rd=x?p}eNE0auio8RwCkIKGXUeH(*ebIBR^ZkRYpK?2#etkT1U~05> z)rU2W+S_w{B^es72Q7PcdfQg7Q@y#b-Gio?*j2W3JUJ$i8gy>sX7;$B_kKSt-#5M6 zAxiGZU3(on-^feHrl{)rS{~;)lii@c)jT!xOX|rQqZy zBT7;dOH!?pi&B9UgOP!urLLiou7PEUfti(op_Qqrwt<0_fq}2_!@pBjD-c7{YNqIUqqJVF%+8E(Xp=j6XMN{qG0LF?hQAxvXii literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake10.png b/textures/epic_weather_snowflake10.png new file mode 100644 index 0000000000000000000000000000000000000000..504b9dee42b22584b4a27ea6498a45e6257ac0ad GIT binary patch literal 105 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L w7tG-B>_!@pBk1Yk7{YNqdB?$mW=F=3e4t1dbK|5Fe?gKAp00i_>zopr06w`Lga7~l literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake11.png b/textures/epic_weather_snowflake11.png new file mode 100644 index 0000000000000000000000000000000000000000..fb9d678f42605e8c1d7f37db0bf4a7afaf50c299 GIT binary patch literal 105 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L z7tG-B>_!@pBk1Yk7{YNqdB?#GO^OU1`3wvKvzP;)oBweEN-}u5`njxgN@xNAJ31XA literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake12.png b/textures/epic_weather_snowflake12.png new file mode 100644 index 0000000000000000000000000000000000000000..eab36a870473def416b5285446836cf9c09bfe4a GIT binary patch literal 105 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L y7tG-B>_!@pBk1Yk7{YNqdB?#GO$!-1@_`~&%!Sc2-gf{c89ZJ6T-G@yGywoY`yFop literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake2.png b/textures/epic_weather_snowflake2.png new file mode 100644 index 0000000000000000000000000000000000000000..0efdae47afd5dcd3167a5d08aca9787af20f685e GIT binary patch literal 104 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L x7tG-B>_!@pBjD-c7{YNq`9*?80tdq*J_c?tCdd50$J~K(44$rjF6*2Ung9fE8`}T? literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake3.png b/textures/epic_weather_snowflake3.png new file mode 100644 index 0000000000000000000000000000000000000000..cdefe2bc782e9b4f22b1ac731d99faecb120fedb GIT binary patch literal 102 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L v7tG-B>_!@p!{_PZ7{YNq`9*>T!(l!K?pI8S|KzTKG%$F&`njxgN@xNA*iswL literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake4.png b/textures/epic_weather_snowflake4.png new file mode 100644 index 0000000000000000000000000000000000000000..e6b9cc1f1342b0a44475e4e083e0f74ec2b9f9e6 GIT binary patch literal 104 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L x7tG-B>_!@pBjD-c7{YNqIUpe*VF%+8E(W$kjFAq;JJW%344$rjF6*2Ung9XY8=e3F literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake5.png b/textures/epic_weather_snowflake5.png new file mode 100644 index 0000000000000000000000000000000000000000..b16111ea7801ded39d051bc0bc53cbecf2ae06c5 GIT binary patch literal 105 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L z7tG-B>_!@pBk1Yk7{YNqIpSczfe*|b;S3D?mzXt0uICj3B^f+j{an^LB{Ts5H%=VY literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake6.png b/textures/epic_weather_snowflake6.png new file mode 100644 index 0000000000000000000000000000000000000000..b64ad12dc5867d59e8bfaaf4be2a23c36ee11669 GIT binary patch literal 105 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L y7tG-B>_!@pBk1Yk7{YNqIpSczfdb}^a0Ui`BWBKoxakr=Nd`|>KbLh*2~7YOup2l4 literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake7.png b/textures/epic_weather_snowflake7.png new file mode 100644 index 0000000000000000000000000000000000000000..ea0b7e55638f011d2b580e48367eee2ccf2bd032 GIT binary patch literal 104 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L y7tG-B>_!@pBjD-c7{YNqnImDx!37LQ7#Vo1m_!@pBk1Yk7{YNqdB?#I%?lYi@);OJqF4m4_j{WHB^f+j{an^LB{Ts5KyDoH literal 0 HcmV?d00001 diff --git a/textures/epic_weather_snowflake9.png b/textures/epic_weather_snowflake9.png new file mode 100644 index 0000000000000000000000000000000000000000..ce3b0a0e6b3fadc1e09a10f08495413dc73c6704 GIT binary patch literal 105 zcmeAS@N?(olHy`uVBq!ia0vp^tRT$D3?#QN+_DTvu?6^qxB}__|Nk$&IsYz@#aI&L z7tG-B>_!@pBk1Yk7{YNqdB?#I&58^i`3wxgyO=+|`f_g)P?EvZ)z4*}Q$iB}T_ztE literal 0 HcmV?d00001