Compare commits
2 Commits
nalc-1.0
...
nalc-1.2.0
Author | SHA1 | Date | |
---|---|---|---|
be33a71cd0 | |||
4fa7ab806c |
@ -2,3 +2,4 @@ default
|
|||||||
doors?
|
doors?
|
||||||
stairs?
|
stairs?
|
||||||
moreblocks?
|
moreblocks?
|
||||||
|
bonemeal?
|
||||||
|
20
init.lua
20
init.lua
@ -64,12 +64,21 @@ minetest.register_node(
|
|||||||
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3, wood=1},
|
groups = {oddly_breakable_by_hand=1, flammable=1, choppy=3, wood=1},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local drawtype = "allfaces_optional"
|
||||||
|
local visual_scale = 1.3
|
||||||
|
|
||||||
|
if minetest.settings:get_bool("cherry_tree.plantlike_leaves") then
|
||||||
|
drawtype = "plantlike"
|
||||||
|
visual_scale = math.sqrt(2)
|
||||||
|
end
|
||||||
|
|
||||||
minetest.register_node(
|
minetest.register_node(
|
||||||
"cherry_tree:cherry_blossom_leaves",
|
"cherry_tree:cherry_blossom_leaves",
|
||||||
{
|
{
|
||||||
description = "Cherry Blossom Leaves",
|
description = "Cherry Blossom Leaves",
|
||||||
drawtype = "allfaces_optional",
|
drawtype = drawtype,
|
||||||
visual_scale = 1.3,
|
visual_scale = visual_scale,
|
||||||
|
inventory_image = minetest.inventorycube("default_cherry_blossom_leaves.png"),
|
||||||
tiles = {"default_cherry_blossom_leaves.png"},
|
tiles = {"default_cherry_blossom_leaves.png"},
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
waving = 1,
|
waving = 1,
|
||||||
@ -89,7 +98,7 @@ minetest.register_node(
|
|||||||
},
|
},
|
||||||
sounds = default.node_sound_leaves_defaults(),
|
sounds = default.node_sound_leaves_defaults(),
|
||||||
after_place_node = default.after_place_leaves,
|
after_place_node = default.after_place_leaves,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node(
|
minetest.register_node(
|
||||||
"cherry_tree:cherry_sapling",
|
"cherry_tree:cherry_sapling",
|
||||||
@ -401,4 +410,9 @@ elseif minetest.get_modpath("stairs") then
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Bonemeal support
|
||||||
|
if minetest.get_modpath("bonemeal") then
|
||||||
|
bonemeal:add_sapling({{"cherry_tree:cherry_sapling", grow_sapling, "soil"}})
|
||||||
|
end
|
||||||
|
|
||||||
minetest.log("action", "[cherry_tree] loaded.")
|
minetest.log("action", "[cherry_tree] loaded.")
|
||||||
|
1
settingtypes.txt
Normal file
1
settingtypes.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
cherry_tree.plantlike_leaves (Enable plantlike leaves) bool false
|
Reference in New Issue
Block a user