forked from VoxeLibre/VoxeLibre
Add biome color to tallgrass, fern and leaves
This commit is contained in:
parent
3b873a89eb
commit
de28d2e57e
|
@ -150,7 +150,8 @@ local function register_leaves(subname, description, longdesc, tiles, sapling, d
|
||||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||||
tiles = tiles,
|
tiles = tiles,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
stack_max = 64,
|
paramtype2 = "color",
|
||||||
|
palette = "mcl_core_palette_grass.png",
|
||||||
groups = {
|
groups = {
|
||||||
handy = 1, hoey = 1, shearsy = 1, swordy = 1, dig_by_piston = 1,
|
handy = 1, hoey = 1, shearsy = 1, swordy = 1, dig_by_piston = 1,
|
||||||
leaves = 1, leafdecay = leafdecay_distance, deco_block = 1,
|
leaves = 1, leafdecay = leafdecay_distance, deco_block = 1,
|
||||||
|
|
|
@ -322,7 +322,7 @@ local function block_fixes(vm, data, data2, emin, emax, area, minp, maxp, blocks
|
||||||
local pr = PseudoRandom(blockseed)
|
local pr = PseudoRandom(blockseed)
|
||||||
if minp.y <= mcl_vars.mg_overworld_max and maxp.y >= mcl_vars.mg_overworld_min then
|
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
|
-- 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_flowers:tallgrass","mcl_flowers:fern","group:leaves","mcl_flowers:double_grass"})
|
||||||
end
|
end
|
||||||
return lvm_used
|
return lvm_used
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue