Add biome color to tallgrass, fern and leaves

This commit is contained in:
cora 2022-09-29 05:40:39 +02:00 committed by Gitea
parent 3b873a89eb
commit de28d2e57e
2 changed files with 3 additions and 2 deletions

View File

@ -150,7 +150,8 @@ local function register_leaves(subname, description, longdesc, tiles, sapling, d
place_param2 = 1, -- Prevent leafdecay for placed nodes
tiles = tiles,
paramtype = "light",
stack_max = 64,
paramtype2 = "color",
palette = "mcl_core_palette_grass.png",
groups = {
handy = 1, hoey = 1, shearsy = 1, swordy = 1, dig_by_piston = 1,
leaves = 1, leafdecay = leafdecay_distance, deco_block = 1,

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_flowers:tallgrass","mcl_flowers:fern","group:leaves","mcl_flowers:double_grass"})
end
return lvm_used
end