mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-12-25 18:10:19 +01:00
3D Nodebox Based Bushes
This commit is contained in:
parent
e7d6a2e993
commit
652f451360
@ -155,22 +155,40 @@ for i, bush_name in ipairs(bushes_classic.bushes) do
|
|||||||
groups = { dig_immediate = 3 },
|
groups = { dig_immediate = 3 },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local texture_top, texture_bottom
|
||||||
|
|
||||||
if bush_name == "mixed_berry" then
|
if bush_name == "mixed_berry" then
|
||||||
bush_name = "fruitless";
|
bush_name = "fruitless";
|
||||||
desc = "currently fruitless";
|
desc = "currently fruitless";
|
||||||
|
texture_top = "bushes_fruitless_bush_top.png"
|
||||||
|
texture_bottom = "bushes_fruitless_bush_bottom.png"
|
||||||
|
else
|
||||||
|
texture_top = "bushes_bush_top.png"
|
||||||
|
texture_bottom = "bushes_bush_bottom.png"
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node(":bushes:" .. bush_name .. "_bush", {
|
minetest.register_node(":bushes:" .. bush_name .. "_bush", {
|
||||||
description = desc.." Bush",
|
description = desc.." Bush",
|
||||||
drawtype = "plantlike",
|
drawtype = "nodebox",
|
||||||
visual_scale = 1.3,
|
tiles = {texture_top, texture_bottom, "bushes_" .. bush_name .. "_bush.png"},
|
||||||
tiles = { "bushes_" .. bush_name .. "_bush.png" },
|
|
||||||
inventory_image = "bushes_" .. bush_name .. "_bush.png",
|
inventory_image = "bushes_" .. bush_name .. "_bush.png",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
node_box = {
|
||||||
|
type = "fixed",
|
||||||
|
fixed = {
|
||||||
|
{-1/16, -8/16, -1/16, 1/16, -6/16, 1/16},
|
||||||
|
{-4/16, -6/16, -4/16, 4/16, 5/16, 4/16},
|
||||||
|
{-5/16, -5/16, -5/16, 5/16, 3/16, 5/16},
|
||||||
|
{-6/16, -4/16, -6/16, 6/16, 2/16, 6/16},
|
||||||
|
{-6.5/16, -3/16, -6.5/16, 6.5/16, -2/16, 6.5/16},
|
||||||
|
{-3/16, 5/16, -3/16, 3/16, 6/16, 3/16},
|
||||||
|
{-2/16, 5/16, -2/16, 2/16, 7/16, 2/16}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
groups = { snappy = 3, bush = 1, flammable = 2},
|
groups = {snappy = 3, bush = 1, flammable = 2, attached_node=1},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
drop = "",
|
drop = "",
|
||||||
after_dig_node = function( pos, oldnode, oldmetadata, digger )
|
after_dig_node = function( pos, oldnode, oldmetadata, digger )
|
||||||
|
BIN
bushes_classic/textures/bushes_bush_bottom.png
Normal file
BIN
bushes_classic/textures/bushes_bush_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
BIN
bushes_classic/textures/bushes_bush_top.png
Normal file
BIN
bushes_classic/textures/bushes_bush_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.4 KiB |
BIN
bushes_classic/textures/bushes_fruitless_bush_bottom.png
Normal file
BIN
bushes_classic/textures/bushes_fruitless_bush_bottom.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.2 KiB |
BIN
bushes_classic/textures/bushes_fruitless_bush_top.png
Normal file
BIN
bushes_classic/textures/bushes_fruitless_bush_top.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue
Block a user