From 39938949b04ea1c58f016143956b58687ec74b1d Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 31 Aug 2015 17:40:29 +0100 Subject: Changed Bamboo biome, added bamboo tree, bush, tidied code --- leaves.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to 'leaves.lua') diff --git a/leaves.lua b/leaves.lua index 6300b3c..bfce420 100644 --- a/leaves.lua +++ b/leaves.lua @@ -283,4 +283,44 @@ minetest.register_node("ethereal:mushroom_pore", { flammable = 2, disable_jump = 1, fall_damage_add_percent = -100 }, sounds = default.node_sound_dirt_defaults(), +}) + +-- Hedge Block +minetest.register_node("ethereal:bush", { + description = "Bush", + tiles = {"ethereal_bush.png"}, + walkable = true, + groups = {snappy = 3, flammable = 2}, + sounds = default.node_sound_leaves_defaults(), +}) + +minetest.register_craft({ + output = "ethereal:bush", + recipe = { + {"group:leaves", "group:leaves", "group:leaves"}, + {"group:leaves", "group:leaves", "group:leaves"}, + {"group:leaves", "group:leaves", "group:leaves"}, + } +}) + +-- Bamboo Leaves +minetest.register_node("ethereal:bamboo_leaves", { + description = "Bamboo Leaves", + drawtype = leaftype, + visual_scale = 1.2, + tiles = {"bamboo_leaves.png"}, + inventory_image = "bamboo_leaves.png", + paramtype = "light", + walkable = false, + waving = 1, + groups = {snappy = 3, leafdecay = 3, leaves = 1, flammable = 2}, + drop = { + max_items = 1, + items = { + {items = {"ethereal:bamboo_sprout"}, rarity = 10}, + {items = {"ethereal:bamboo_leaves"}} + } + }, + sounds = default.node_sound_leaves_defaults(), + after_place_node = default.after_place_leaves, }) \ No newline at end of file -- cgit v1.2.3