From b485364febc55aec8bf0b49b98d634dd778cf61b Mon Sep 17 00:00:00 2001 From: cora Date: Thu, 15 Sep 2022 21:23:25 +0200 Subject: [PATCH] Add colored water --- mods/ITEMS/mcl_core/nodes_liquid.lua | 2 ++ .../default_water_source_animated.png | Bin 438 -> 1101 bytes .../textures/mcl_core_palette_water.png | Bin 0 -> 190 bytes mods/MAPGEN/mcl_biomes/init.lua | 18 +++++++++--------- mods/MAPGEN/mcl_mapgen_core/init.lua | 2 +- 5 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 mods/ITEMS/mcl_core/textures/mcl_core_palette_water.png diff --git a/mods/ITEMS/mcl_core/nodes_liquid.lua b/mods/ITEMS/mcl_core/nodes_liquid.lua index 68ae4a829..778d74529 100644 --- a/mods/ITEMS/mcl_core/nodes_liquid.lua +++ b/mods/ITEMS/mcl_core/nodes_liquid.lua @@ -84,6 +84,8 @@ S("• When water is directly below lava, the water turns into stone."), is_ground_content = false, use_texture_alpha = USE_TEXTURE_ALPHA, paramtype = "light", + paramtype2 = "color", + palette = "mcl_core_palette_water.png", walkable = false, pointable = false, diggable = false, diff --git a/mods/ITEMS/mcl_core/textures/default_water_source_animated.png b/mods/ITEMS/mcl_core/textures/default_water_source_animated.png index 5d45822441ee7fb27bcd195def5820a3e6422838..62feee8badcb67e828fd56e1bcca52b72b6f983f 100644 GIT binary patch delta 1092 zcmV-K1iSmT1I-AK7=H)`0002GQua;&00b0CL_t(|+U;A*ZsRZvvR)*5WvHnni+v+=b_ zGnY~Z3%70iaw0Vi5sz8v1k(SD=5c;8UtS+;H>KaO@4LB$bg3(!ZFVtrW)GxQ+on>= zVK$A#?#N*YG-THzO25~o_Ho6nCWcgf!hb&G@jmRJm7xO z@L-{Mu1C---usr~9inl{tIwmY8^8mUmC$^!2(3hK2`IK%rRoEqGuS77rfqNC>smM)5#% zs2dMl0>lgtW(`M(?n@6!(|r?Au0;1W2ZiW9$AeJ&pT&b=8?yq0DoAo`Qh0DeK{6vi zdxtth~Dg2u}pFoiG z2oMq;i2Z`MZ#kE$ta zxnP!euYRnhb6Aj60p%7XUl1f|xsD1Dq4xi!M9=f#88 zT26oveef-Uq(^}G1%l*#-1w&Zss()(H-FuyTggo{>Ar;rl2bzmo;e<*bR?G`Ndcu_ zm=+|xy~2kHlJvN7NRX89KzhiDjvG^-r0G6we?Fh?o3GAa!h=wGk0ekU58is9QRJh?#0p;p~O%4!=JF`ci#KK7SV&EtP<`*?DED?0r{1U@i#IPZ_0y(C zkJUqA6pa>-l6P>$RH4L!dfh*xP<9%3l}#P|j@Ra+cr%JQwNffi>Us4-b}5Im9mVm^ zsXg1&TXw`h>F74ENuwN>!l~KR@<+jrVo&XBj;Zg3R3W0w8_g)<6;92hiuVVi*ymyM S=1J%P0000cU{-2u}2o4|4SK~4GFyFPI@$X$`w&oQYZR+gRlKWPQ8yI}NlT=aG+Sxd9 z?VmgKvU`Jh<{a0RY-u$&P-w2Uxx}M?#8grO2bP0l+XkK75+wx literal 0 HcmV?d00001 diff --git a/mods/MAPGEN/mcl_biomes/init.lua b/mods/MAPGEN/mcl_biomes/init.lua index 4aa843053..0c6dc876b 100644 --- a/mods/MAPGEN/mcl_biomes/init.lua +++ b/mods/MAPGEN/mcl_biomes/init.lua @@ -1356,7 +1356,7 @@ local function register_biomes() humidity_point = 95, heat_point = 94, _mcl_biome_type = "hot", - _mcl_palette_index = 27, + _mcl_palette_index = 28, }) minetest.register_biome({ name = "MangroveSwamp_shore", @@ -1371,7 +1371,7 @@ local function register_biomes() humidity_point = 95, heat_point = 94, _mcl_biome_type = "hot", - _mcl_palette_index = 27, + _mcl_palette_index = 28, }) minetest.register_biome({ name = "MangroveSwamp_ocean", @@ -1387,7 +1387,7 @@ local function register_biomes() humidity_point = 95, heat_point = 94, _mcl_biome_type = "hot", - _mcl_palette_index = 27, + _mcl_palette_index = 28, }) -- Swampland minetest.register_biome({ @@ -1730,7 +1730,7 @@ local function register_dimension_biomes() humidity_point = 1000, vertical_blend = 16, _mcl_biome_type = "medium", - _mcl_palette_index = 0, + _mcl_palette_index = 30, }) minetest.register_biome({ name = "EndMidlands", @@ -1745,7 +1745,7 @@ local function register_dimension_biomes() humidity_point = 1000, vertical_blend = 16, _mcl_biome_type = "medium", - _mcl_palette_index = 0, + _mcl_palette_index = 30, }) minetest.register_biome({ name = "EndHighlands", @@ -1760,7 +1760,7 @@ local function register_dimension_biomes() humidity_point = 1000, vertical_blend = 16, _mcl_biome_type = "medium", - _mcl_palette_index = 0, + _mcl_palette_index = 30, }) minetest.register_biome({ name = "EndSmallIslands", @@ -1775,7 +1775,7 @@ local function register_dimension_biomes() humidity_point = 1000, vertical_blend = 16, _mcl_biome_type = "medium", - _mcl_palette_index = 0, + _mcl_palette_index = 30, }) minetest.register_biome({ @@ -1793,7 +1793,7 @@ local function register_dimension_biomes() max_pos = {x = 1250, y = mcl_vars.mg_end_min + 512, z = 1250}, min_pos = {x = -1250, y = mcl_vars.mg_end_min, z = -1250}, _mcl_biome_type = "medium", - _mcl_palette_index = 0, + _mcl_palette_index = 30, }) minetest.register_biome({ @@ -1809,7 +1809,7 @@ local function register_dimension_biomes() humidity_point = 50, vertical_blend = 16, _mcl_biome_type = "medium", - _mcl_palette_index = 0, + _mcl_palette_index = 30, }) end diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index c2fe2e31b..b2b4484f5 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -322,7 +322,7 @@ local function block_fixes(vm, data, data2, emin, emax, area, minp, maxp, blocks local pr = PseudoRandom(blockseed) if minp.y <= mcl_vars.mg_overworld_max and maxp.y >= mcl_vars.mg_overworld_min then -- Set param2 (=color) of sugar cane and grass - lvm_used = set_palette(minp,maxp,data2,area,biomemap,{"mcl_core:reeds","mcl_core:dirt_with_grass"}) + lvm_used = set_palette(minp,maxp,data2,area,biomemap,{"mcl_core:reeds","mcl_core:dirt_with_grass","mcl_core:water_source"}) end return lvm_used end