From 916be4a05b79a19b11821ac8960ff047dc9f798e Mon Sep 17 00:00:00 2001 From: migdyn Date: Wed, 23 Jan 2019 13:56:35 +0000 Subject: [PATCH] Add liquid mud --- mods/main/nodes.lua | 152 ++++++++++++++++++- mods/main/textures/main_mud_flowing.png | Bin 0 -> 271 bytes mods/main/textures/main_mud_source.png | Bin 0 -> 163 bytes mods/main/textures/main_muddywater.png | Bin 0 -> 331 bytes mods/main/textures/main_quicksand_hard.png | Bin 0 -> 373 bytes mods/main/textures/main_quicksand_normal.png | Bin 0 -> 337 bytes mods/main/textures/main_quicksand_weak.png | Bin 0 -> 340 bytes mods/main/textures/main_sand.png | Bin 347 -> 614 bytes 8 files changed, 148 insertions(+), 4 deletions(-) create mode 100644 mods/main/textures/main_mud_flowing.png create mode 100644 mods/main/textures/main_mud_source.png create mode 100644 mods/main/textures/main_muddywater.png create mode 100644 mods/main/textures/main_quicksand_hard.png create mode 100644 mods/main/textures/main_quicksand_normal.png create mode 100644 mods/main/textures/main_quicksand_weak.png diff --git a/mods/main/nodes.lua b/mods/main/nodes.lua index c0da4a3..cdfa372 100644 --- a/mods/main/nodes.lua +++ b/mods/main/nodes.lua @@ -221,7 +221,7 @@ minetest.register_node("main:water_source", { is_ground_content = false, --Properties - liquid_range = 10, + liquid_range = 14, liquid_viscosity = 0.1, drowning = 1, liquidtype = "source", @@ -274,7 +274,7 @@ minetest.register_node("main:water_flowing", { is_ground_content = false, --Properties - liquid_range = 10, + liquid_range = 14, liquid_viscosity = 0.1, drowning = 1, liquidtype = "flowing", @@ -311,7 +311,7 @@ minetest.register_node("main:toxicwater_source", { is_ground_content = false, --Properties - liquid_range = 10, + liquid_range = 14, liquid_viscosity = 0.1, drowning = 1, liquidtype = "source", @@ -365,7 +365,7 @@ minetest.register_node("main:toxicwater_flowing", { is_ground_content = false, --Properties - liquid_range = 10, + liquid_range = 14, liquid_viscosity = 0.1, drowning = 1, liquidtype = "flowing", @@ -374,3 +374,147 @@ minetest.register_node("main:toxicwater_flowing", { damage_per_second = 4 * 2, groups = {liquid = 3, water = 1}, }) + +--Muddy water +minetest.register_node("main:muddywater_source", { + description = "Muddy Water Source", + drawtype = "liquid", + paramtype = "light", + + tiles = {name = "main_muddywater.png"}, + alpha = 200, + post_effect_color = {a = 190, r = 80, g = 60, b = 166}, + + --Behavior + walkable = false, + pointable = false, + buildable_to = true, + diggable = false, + is_ground_content = false, + + --Properties + liquid_range = 14, + liquid_viscosity = 2, + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "main:muddywater_flowing", + liquid_alternative_source = "main:muddywater_source", + groups = {liquid = 1, water = 1}, +}) + +minetest.register_node("main:muddywater_flowing", { + description = "Flowing Muddy Water", + drawtype = "flowingliquid", + paramtype = "light", + + tiles = {name = "main_muddywater.png"}, + + special_tiles = { + { + name = "main_muddywater.png", + animation = {type = "vertical_frames", aspect_w = 16, + aspect_h = 16, length = 2.0}, + backface_culling = true, + }, + + { + name = "main_muddywater.png", + animation = {type = "vertical_frames", aspect_w = 16, + aspect_h = 16, length = 2.0}, + backface_culling = false, + } + }, + + alpha = 200, + post_effect_color = {a = 190, r = 80, g = 60, b = 166}, + + --Behavior + walkable = false, + pointable = false, + buildable_to = true, + diggable = false, + is_ground_content = false, + + --Properties + liquid_range = 14, + liquid_viscosity = 2, + drowning = 1, + liquidtype = "flowing", + liquid_alternative_flowing = "main:muddywater_flowing", + liquid_alternative_source = "main:muddywater_source", + groups = {liquid = 1, water = 1}, +}) + +--Liquid mud +minetest.register_node("main:mud_source", { + description = "Liquid Mud Source", + drawtype = "liquid", + paramtype = "light", + + tiles = {name = "main_mud_source.png"}, + post_effect_color = {r = 60, g = 40, b = 10}, + + --Behavior + walkable = false, + pointable = false, + buildable_to = true, + diggable = false, + is_ground_content = false, + + --Properties + liquid_range = 6, + liquid_viscosity = 20, + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "main:mud_flowing", + liquid_alternative_source = "main:mud_source", + groups = {liquid = 3}, +}) + +minetest.register_node("main:mud_flowing", { + description = "Flowing Liquid Mud", + drawtype = "flowingliquid", + paramtype = "light", + + tiles = {name = "main_mud_flowing.png"}, + animation = { + type = "vertical_frames", + aspect_w = 16, + aspect_h = 16, + length = 1.0 + }, + + special_tiles = { + { + name = "main_mud_flowing.png", + animation = {type = "vertical_frames", aspect_w = 16, + aspect_h = 16, length = 1.0}, + backface_culling = true, + }, + + { + name = "main_mud_flowing.png", + animation = {type = "vertical_frames", aspect_w = 16, + aspect_h = 16, length = 1.0}, + backface_culling = false, + } + }, + + post_effect_color = {r = 60, g = 40, b = 10}, + + --Behavior + walkable = false, + pointable = false, + buildable_to = true, + diggable = false, + is_ground_content = false, + + --Properties + liquid_range = 6, + liquid_viscosity = 20, + drowning = 1, + liquidtype = "flowing", + liquid_alternative_flowing = "main:mud_flowing", + liquid_alternative_source = "main:mud_source", + groups = {liquid = 3}, +}) diff --git a/mods/main/textures/main_mud_flowing.png b/mods/main/textures/main_mud_flowing.png new file mode 100644 index 0000000000000000000000000000000000000000..cb978a2af02e14c026f01ded2dcb3bec2e0b5547 GIT binary patch literal 271 zcmeAS@N?(olHy`uVBq!ia0vp^0zj<5!3HFyJAa%3Qfx`y?k)`fL2$v|<&%LToCO|{ z#S9GG!XV7ZFl&wkP>{XE)7O>#F{7B6wy3y(iak(Bvcxr_#5q4VH#M(>!MP|ku_QG` zp**uBL&4qCHz2%`PaLSI+|$J|#N+teDUN&%3Op?3oZ|Z*DgXJud{)&Ig+ok+RSVRe zUN|gg=&v<47HAeso5ZM)U?i5nDE2_VL1X=wlrwP+_l5Nv(v6q?@7yYMqdes{XE z)7O>#F{3!Mp6Cg)Yb`(_$r9Iy66gHf+|;}h2Ir#G#FEq$h4Rdj3gTe~DWM4f DnqDkt literal 0 HcmV?d00001 diff --git a/mods/main/textures/main_muddywater.png b/mods/main/textures/main_muddywater.png new file mode 100644 index 0000000000000000000000000000000000000000..c741a0de15773df3c98bae7345dc95d086ca0a1b GIT binary patch literal 331 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmP-qlhRg&jsVpj6k6qo-U3d7N>hB8g@VNZv2wHaP zZ_$F7@@`$BB_d|qu6;`meEglE*S)@F-@f{JI^KKMAGp?Aym|R$oLPeV%@d8>#Pe~G}!`IY4`FhI>_{JVdk^6*o0G>92Ztb zKP)=F&|}@)(S976WD*DxG6Q6{yG0*}ZIa!t8G^n^ zaich!*II$+ShU;kmdYeS*>1i`D0y~k&Ah|*?s4=3TQf&DWOvWKT_59*+%Gz!EpsK3_>5w_L4r* zLi%q7a**u5i4Qwo2_%86pYJb#6q^Ku1#OT8KtKcx`z*Aznmm9o`CeB!leirJ9EkLK|3~a*c9!HY2Mxn!z z^}_UY7^z1|s23snN2FW5XbPiIn}#6n$K^Ag1rLI1*w;{btZMq+ zMvI;#ZFL+<`fqWz&T^E*C+dq9x)IwGq^yS5+-v-DQX`6e2S)JR`361pZk2qj-kuLF jnhfvt@p-HJ;OF-j(_Em|TkMHW00000NkvXXu0mjf8F`2e literal 0 HcmV?d00001 diff --git a/mods/main/textures/main_quicksand_weak.png b/mods/main/textures/main_quicksand_weak.png new file mode 100644 index 0000000000000000000000000000000000000000..79b6015c73d468eb8f04f3ed4cff8424b0c68a7a GIT binary patch literal 340 zcmV-a0jvIrP)p?OYfdK zdpmp3fovz8_{dlvK-TB?2PjBx0|-I80!lRr02l^bscA`4kR%a$gS4|Z(S;kTiNm{Vl1jP!ju?Ca9LMBgqo?JSTaUTBOPD;Aa=D z?j*0pkCj8Xhv8PDB;Ke;>-cyO+p7i4wEM-I?F_O?ccl(7N%!G5+0*a3Jj;4(xUQ@1 meSYs*0`UDld9v1rZ-GB3CaDze)<}Z@0000y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G` z2jc-27Z?HfWB)|}00Hw!L_t(2&pnUJa@#NrMK4K^)GKkM#K}xQzn|4zmyKh~vR-_G zU8oIKn1ch%h4}sJXJO%^Z<=9WZwzgW(ZutTtt9}NcM>*ckbeSmCI};xAx;1QXriO3 zY7Kw{v}#hy0GKlX$%*|w3t7$cs;EBf$Fdhr0Hjt2$thG-U0Wl$FaTx`Kx;^81RMb8 zJ*VtG3$uKX*+?X<0UHJE^1tPy|6L zC4^D5yRfVtz<=vo3!rJLkP_#pZ3lo-wn`i1q=ZbspX(QZwrSRFBi#%`m2(@MZ@M-{ zF1*VkHm!wHB;b~HJ~FJ^_S|*=a&C|BqYpxsN^9ass3Amx(Ek#*7SKiNoMUCAwsP5U zpC$k=r;fC4w{mf$ynoq6UAP~PkGRxKLePj2Y{w- z0K5*b0Q#Z7KPK$+JqK;=l$*ish> zjQ9(b%K;xr%-h%J2M#n00YKBVuSYs}hY&88@7KFLax*hC6MvCX>I@i$kWw1QvDPYt zSh*L#yrI^rl(N<`voY2=w*$l&Q%X5!t@Xo7B>KMHu6+VIX8_JQV{FcO8@w|~%IDm! z>*m^0CT0fE_wNfpYyD`L`55EO6k2P5{GY{g8>+0jIpaY zxpLobLn(!byfbgMNF!t~BUVE_OC M07*qoM6N<$f)JvLFaQ7m