Compare commits
5 Commits
master
...
colored_pl
Author | SHA1 | Date |
---|---|---|
cora | 5aa97c601f | |
cora | 603e0ba774 | |
cora | e2f51e0779 | |
cora | b08e72a37c | |
cora | de28d2e57e |
|
@ -1401,7 +1401,7 @@ minetest.register_abm({
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local n0 = minetest.get_node(p0)
|
local n0 = minetest.get_node(p0)
|
||||||
if n0.param2 ~= 0 then
|
if n0.param2 == 1 then
|
||||||
-- Prevent leafdecay for player-placed leaves.
|
-- Prevent leafdecay for player-placed leaves.
|
||||||
-- param2 is set to 1 after it was placed by the player
|
-- param2 is set to 1 after it was placed by the player
|
||||||
return
|
return
|
||||||
|
|
|
@ -150,7 +150,9 @@ 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",
|
||||||
|
wield_image = tiles[1]:gsub(".png","_inv.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,
|
||||||
|
|
Before Width: | Height: | Size: 214 B After Width: | Height: | Size: 272 B |
After Width: | Height: | Size: 203 B |
Before Width: | Height: | Size: 232 B After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 231 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 335 B |
After Width: | Height: | Size: 228 B |
Before Width: | Height: | Size: 196 B After Width: | Height: | Size: 292 B |
After Width: | Height: | Size: 208 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 308 B |
After Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 302 B |
After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 248 B After Width: | Height: | Size: 189 B |
|
@ -95,6 +95,9 @@ minetest.register_node("mcl_mangrove:mangroveleaves", {
|
||||||
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
place_param2 = 1, -- Prevent leafdecay for placed nodes
|
||||||
tiles = {"mcl_mangrove_leaves.png"},
|
tiles = {"mcl_mangrove_leaves.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
paramtype2 = "color",
|
||||||
|
palette = "mcl_core_palette_grass.png",
|
||||||
|
wield_image = "mcl_mangrove_leaves_inv.png",
|
||||||
groups = {handy=1,shearsy=1,swordy=1, leafdecay=10, flammable=2, leaves=1, deco_block=1, dig_by_piston=1, fire_encouragement=30, fire_flammability=60},
|
groups = {handy=1,shearsy=1,swordy=1, leafdecay=10, flammable=2, leaves=1, deco_block=1, dig_by_piston=1, fire_encouragement=30, fire_flammability=60},
|
||||||
_mcl_shears_drop = true,
|
_mcl_shears_drop = true,
|
||||||
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
||||||
|
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 214 B |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 276 B |
After Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 252 B |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 197 B |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 170 B |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 212 B |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 221 B |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 225 B |
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 183 B |
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 200 B |
|
@ -1110,7 +1110,7 @@ local function register_biomes()
|
||||||
humidity_point = 36,
|
humidity_point = 36,
|
||||||
heat_point = 79,
|
heat_point = 79,
|
||||||
_mcl_biome_type = "hot",
|
_mcl_biome_type = "hot",
|
||||||
_mcl_palette_index = 1,
|
_mcl_palette_index = 30,
|
||||||
})
|
})
|
||||||
minetest.register_biome({
|
minetest.register_biome({
|
||||||
name = "Savanna_beach",
|
name = "Savanna_beach",
|
||||||
|
@ -1125,7 +1125,7 @@ local function register_biomes()
|
||||||
humidity_point = 36,
|
humidity_point = 36,
|
||||||
heat_point = 79,
|
heat_point = 79,
|
||||||
_mcl_biome_type = "hot",
|
_mcl_biome_type = "hot",
|
||||||
_mcl_palette_index = 1,
|
_mcl_palette_index = 30,
|
||||||
})
|
})
|
||||||
minetest.register_biome({
|
minetest.register_biome({
|
||||||
name = "Savanna_ocean",
|
name = "Savanna_ocean",
|
||||||
|
@ -1140,7 +1140,7 @@ local function register_biomes()
|
||||||
humidity_point = 36,
|
humidity_point = 36,
|
||||||
heat_point = 79,
|
heat_point = 79,
|
||||||
_mcl_biome_type = "hot",
|
_mcl_biome_type = "hot",
|
||||||
_mcl_palette_index = 1,
|
_mcl_palette_index = 30,
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Savanna M
|
-- Savanna M
|
||||||
|
|
|
@ -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
|
||||||
|
|