Add colored water

This commit is contained in:
cora 2022-09-15 21:23:25 +02:00
parent d91d01a67d
commit b485364feb
5 changed files with 12 additions and 10 deletions

View File

@ -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,

Binary file not shown.

Before

Width:  |  Height:  |  Size: 438 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

View File

@ -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

View File

@ -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