forked from mtcontrib/christmas_craft
Add bushes and fix woodsoils support
This commit is contained in:
parent
4e94d4e140
commit
9b0f4b2d00
@ -1,4 +1,8 @@
|
|||||||
default
|
default
|
||||||
youngtrees?
|
youngtrees?
|
||||||
woodsoil?
|
bushes?
|
||||||
|
woodsoils?
|
||||||
flowers?
|
flowers?
|
||||||
|
moreplants?
|
||||||
|
moreflowers?
|
||||||
|
bakedclay?
|
||||||
|
82
snow.lua
82
snow.lua
@ -58,6 +58,25 @@ minetest.override_item(
|
|||||||
sounds = data.sounds,
|
sounds = data.sounds,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Replace woodsoils
|
||||||
|
local woodsoils = {
|
||||||
|
"woodsoils:grass_with_leaves_1",
|
||||||
|
"woodsoils:grass_with_leaves_2",
|
||||||
|
"woodsoils:dirt_with_leaves_1",
|
||||||
|
"woodsoils:dirt_with_leaves_2"
|
||||||
|
}
|
||||||
|
|
||||||
|
for _,woodsoil in pairs(woodsoils) do
|
||||||
|
if minetest.registered_nodes[woodsoil] then
|
||||||
|
minetest.override_item(
|
||||||
|
woodsoil, {
|
||||||
|
tiles = { "default_snow.png", "default_dirt.png", "grass_w_snow_side.png" },
|
||||||
|
sounds = data.sounds
|
||||||
|
})
|
||||||
|
add_drop(minetest.registered_nodes[woodsoil])
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
local nodebox = {
|
local nodebox = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -65,12 +84,13 @@ local nodebox = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
local leavesoverride = {
|
local leavesoverride = {
|
||||||
drawtype = "nodebox",
|
-- drawtype = "nodebox",
|
||||||
visual_scale = 1,
|
-- visual_scale = 1,
|
||||||
tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
|
-- tiles = {"snow.png", "christmas_craft_leaves_top.png", "christmas_craft_leaves_side.png"},
|
||||||
paramtype = "light",
|
tiles = {"christmas_craft_leaves_side.png"},
|
||||||
node_box = nodebox,
|
-- paramtype = "light",
|
||||||
selection_box = nodebox
|
-- node_box = nodebox,
|
||||||
|
-- selection_box = nodebox
|
||||||
}
|
}
|
||||||
|
|
||||||
-- replace leaves
|
-- replace leaves
|
||||||
@ -94,25 +114,37 @@ if minetest.registered_items["youngtrees:youngtree_top"] then
|
|||||||
minetest.override_item("youngtrees:youngtree_middle", {tiles = {"christmas_youngtree16xb.png"}})
|
minetest.override_item("youngtrees:youngtree_middle", {tiles = {"christmas_youngtree16xb.png"}})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Replace woodsoils
|
-- Replace bushes
|
||||||
if minetest.registered_items["woodsoils:grass_with_leaves_1"] then
|
if minetest.registered_items["bushes:BushLeaves1"] then
|
||||||
minetest.override_item("woodsoils:grass_with_leaves_1", {tiles = {"snow.png", "default_dirt.png", "default_dirt.png^grass_w_snow_side.png"}})
|
minetest.override_item("bushes:BushLeaves1", {tiles = {"christmas_bushes_leaves.png"}})
|
||||||
add_drop(minetest.registered_items["woodsoils:grass_with_leaves_1"])
|
minetest.override_item("bushes:BushLeaves2", {tiles = {"christmas_bushes_leaves.png"}})
|
||||||
end
|
minetest.override_item("bushes:bushbranches1",
|
||||||
|
{tiles = {"christmas_bushes_leaves.png", "christmas_bushes_branches_center.png"}})
|
||||||
if minetest.registered_items["woodsoils:grass_with_leaves_2"] then
|
minetest.override_item("bushes:bushbranches3",
|
||||||
minetest.override_item("woodsoils:grass_with_leaves_2", {tiles = {"snow.png", "default_dirt.png", "default_dirt.png^grass_w_snow_side.png"}})
|
{tiles = {"christmas_bushes_leaves.png", "christmas_bushes_branches_center.png"}})
|
||||||
add_drop(minetest.registered_items["woodsoils:grass_with_leaves_2"])
|
minetest.override_item("bushes:bushbranches2", {
|
||||||
end
|
tiles = {
|
||||||
|
"christmas_bushes_leaves.png",
|
||||||
if minetest.registered_items["woodsoils:dirt_with_leaves_1"] then
|
"christmas_bushes_branches_center.png",
|
||||||
minetest.override_item("woodsoils:dirt_with_leaves_1", {tiles = {"snow.png", "default_dirt.png", "default_dirt.png^grass_w_snow_side.png^woodsoils_ground_cover_side.png"}})
|
"christmas_bushes_branches_left.png",
|
||||||
add_drop(minetest.registered_items["woodsoils:dirt_with_leaves_1"])
|
"christmas_bushes_branches_right.png",
|
||||||
end
|
"christmas_bushes_branches_center.png",
|
||||||
|
"christmas_bushes_branches_right.png"
|
||||||
if minetest.registered_items["woodsoils:dirt_with_leaves_2"] then
|
}})
|
||||||
minetest.override_item("woodsoils:dirt_with_leaves_2", {tiles = {"snow.png", "default_dirt.png", "default_dirt.png^grass_w_snow_side.png^woodsoils_ground_cover_side.png"}})
|
minetest.override_item("bushes:bushbranches4", {
|
||||||
add_drop(minetest.registered_items["woodsoils:dirt_with_leaves_2"])
|
tiles = {
|
||||||
|
"christmas_bushes_leaves.png",
|
||||||
|
"christmas_bushes_branches_center.png",
|
||||||
|
"christmas_bushes_branches_left.png",
|
||||||
|
"christmas_bushes_branches_right.png",
|
||||||
|
"christmas_bushes_branches_center.png",
|
||||||
|
"christmas_bushes_branches_right.png"
|
||||||
|
}})
|
||||||
|
minetest.override_item("bushes:youngtree2_bottom", {
|
||||||
|
tiles = {"christmas_bushes_youngtree2trunk.png"},
|
||||||
|
inventory_image = "christmas_bushes_youngtree2trunk_inv.png",
|
||||||
|
wield_image = "christmas_bushes_youngtree2trunk_inv.png"
|
||||||
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
-- replace flowers
|
-- replace flowers
|
||||||
|
BIN
textures/christmas_bushes_branches_center.png
Normal file
BIN
textures/christmas_bushes_branches_center.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 218 B |
BIN
textures/christmas_bushes_branches_left.png
Normal file
BIN
textures/christmas_bushes_branches_left.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 220 B |
BIN
textures/christmas_bushes_branches_right.png
Normal file
BIN
textures/christmas_bushes_branches_right.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 221 B |
BIN
textures/christmas_bushes_leaves.png
Normal file
BIN
textures/christmas_bushes_leaves.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 216 B |
BIN
textures/christmas_bushes_youngtree2trunk.png
Normal file
BIN
textures/christmas_bushes_youngtree2trunk.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 192 B |
BIN
textures/christmas_bushes_youngtree2trunk_inv.png
Normal file
BIN
textures/christmas_bushes_youngtree2trunk_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 161 B |
Loading…
Reference in New Issue
Block a user