forked from mtcontrib/christmas_craft
Add moretrees leaves and use hardware colouring for all leaves
This commit is contained in:
parent
1000a2b34f
commit
4835ba258e
@ -3,3 +3,4 @@ youngtrees?
|
|||||||
bushes?
|
bushes?
|
||||||
woodsoils?
|
woodsoils?
|
||||||
flowers?
|
flowers?
|
||||||
|
moretrees?
|
||||||
|
57
snow.lua
57
snow.lua
@ -77,27 +77,44 @@ for _,woodsoil in pairs(woodsoils) do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local nodebox = {
|
-- Replace leaves
|
||||||
type = "fixed",
|
minetest.override_item("default:pine_needles", {
|
||||||
fixed = {
|
tiles = {"default_pine_needles.png^christmas_snow_leaves.png"}
|
||||||
{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
})
|
||||||
}
|
minetest.override_item("default:pine_bush_needles", {
|
||||||
}
|
tiles = {"default_pine_needles.png^christmas_snow_leaves.png"}
|
||||||
local leavesoverride = {
|
})
|
||||||
-- drawtype = "nodebox",
|
minetest.override_item("default:bush_leaves", {
|
||||||
-- visual_scale = 1,
|
tiles = {"(default_leaves.png^[multiply:#c75000)^christmas_snow_leaves.png"}
|
||||||
-- tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
|
})
|
||||||
tiles = {"christmas_craft_leaves_side.png"},
|
|
||||||
-- paramtype = "light",
|
|
||||||
-- node_box = nodebox,
|
|
||||||
-- selection_box = nodebox
|
|
||||||
}
|
|
||||||
|
|
||||||
-- replace leaves
|
for _, leaves in pairs({"leaves", "aspen_leaves", "jungleleaves"}) do
|
||||||
minetest.override_item("default:leaves", leavesoverride)
|
local tree_leaves = "default:"..leaves
|
||||||
minetest.override_item("default:aspen_leaves", leavesoverride)
|
minetest.override_item(tree_leaves, {
|
||||||
minetest.override_item("default:jungleleaves", leavesoverride)
|
tiles = {
|
||||||
minetest.override_item("default:bush_leaves", leavesoverride)
|
"(default_"..leaves..".png^[multiply:#c75000)^christmas_snow_leaves.png"
|
||||||
|
}})
|
||||||
|
end
|
||||||
|
|
||||||
|
if minetest.get_modpath("moretrees") then
|
||||||
|
-- replace moretrees leaves adding snow and brown mask
|
||||||
|
for _, leaves in pairs({"beech", "apple_tree", "oak", "birch", "poplar", "willow", "rubber_tree"}) do
|
||||||
|
local tree_leaves = "moretrees:"..leaves.."_leaves"
|
||||||
|
minetest.override_item(tree_leaves, {
|
||||||
|
tiles = {
|
||||||
|
"(moretrees_"..leaves.."_leaves.png^[multiply:#c75000)^christmas_snow_leaves.png"
|
||||||
|
}})
|
||||||
|
end
|
||||||
|
|
||||||
|
-- replace moretrees leaves adding snow
|
||||||
|
for _, leaves in pairs({"sequoia", "palm", "date_palm", "spruce", "cedar", "fir"}) do
|
||||||
|
local tree_leaves = "moretrees:"..leaves.."_leaves"
|
||||||
|
minetest.override_item(tree_leaves, {
|
||||||
|
tiles = {
|
||||||
|
"moretrees_"..leaves.."_leaves.png^christmas_snow_leaves.png"
|
||||||
|
}})
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
-- replace grass
|
-- replace grass
|
||||||
for i=1,5 do
|
for i=1,5 do
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 271 B |
Binary file not shown.
Before Width: | Height: | Size: 261 B |
Binary file not shown.
Before Width: | Height: | Size: 261 B |
Binary file not shown.
Before Width: | Height: | Size: 261 B |
BIN
textures/christmas_snow_leaves.png
Normal file
BIN
textures/christmas_snow_leaves.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 518 B |
Loading…
Reference in New Issue
Block a user