diff options
author | tenplus1 <kinsellaja@yahoo.com> | 2015-04-25 09:05:34 +0100 |
---|---|---|
committer | tenplus1 <kinsellaja@yahoo.com> | 2015-04-25 09:05:34 +0100 |
commit | ce55eacc47b06043283fcdcd012a363b1368d5f6 (patch) | |
tree | fcfb3b9ba4d1e20083a878b0ffcf0ffa678eecf0 | |
parent | 9e6a47d97dfd3ceb1d8c60fa65dcd7add45cacaa (diff) |
Placed leaves will not decay, added beanbush to mapgen
-rw-r--r-- | leaves.lua | 11 | ||||
-rw-r--r-- | mapgen_v7n.lua | 9 |
2 files changed, 20 insertions, 0 deletions
@@ -26,6 +26,7 @@ minetest.register_node("ethereal:acacia_leaves", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Willow Twig @@ -47,6 +48,7 @@ minetest.register_node("ethereal:willow_twig", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Redwood leaves @@ -68,6 +70,7 @@ minetest.register_node("ethereal:redwood_leaves", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Default Apple Tree Leaves @@ -89,6 +92,7 @@ minetest.register_node(":default:leaves", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Default Orange Tree Leaves @@ -110,6 +114,7 @@ minetest.register_node("ethereal:orange_leaves", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Default Jungle Tree Leaves @@ -131,6 +136,7 @@ minetest.register_node(":default:jungleleaves", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Default Banana Tree Leaves @@ -152,6 +158,7 @@ minetest.register_node("ethereal:bananaleaves", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Healing Tree Leaves @@ -175,6 +182,7 @@ minetest.register_node("ethereal:yellowleaves", { -- Leaves are edible, heal half a heart on_use = minetest.item_eat(1), sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, light_source = 9, }) @@ -197,6 +205,7 @@ minetest.register_node("ethereal:palmleaves", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Pine Tree Leaves @@ -219,6 +228,7 @@ minetest.register_node("ethereal:pineleaves", { } }, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Frost Tree Leaves @@ -241,6 +251,7 @@ minetest.register_node("ethereal:frost_leaves", { }, light_source = 9, sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) -- Mushroom Tops diff --git a/mapgen_v7n.lua b/mapgen_v7n.lua index de25bf3..c8afcd4 100644 --- a/mapgen_v7n.lua +++ b/mapgen_v7n.lua @@ -746,4 +746,13 @@ minetest.register_decoration({ num_spawn_by = 1,
})
+-- green beans
+minetest.register_decoration({
+ deco_type = "simple",
+ place_on = {"ethereal:green_dirt"},
+ sidelen = 80,
+ fill_ratio = 0.035,
+ biomes = {"grassytwo"},
+ decoration = "farming:beanbush",
+})
end
|