summaryrefslogtreecommitdiff
path: root/sapling.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-12-21 21:23:13 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2016-12-21 21:23:13 +0000
commita9f3896ae764f6fa48472b987ac3b33a50b48b78 (patch)
tree39087a4d07fdbed58086b73682872b06e395d044 /sapling.lua
parent1ba21217a2882221d6763eebe12f96767dc27a13 (diff)
selection boxes updated thanks to RQWorldblender
Diffstat (limited to 'sapling.lua')
-rw-r--r--sapling.lua15
1 files changed, 11 insertions, 4 deletions
diff --git a/sapling.lua b/sapling.lua
index 57247ac..e7704c1 100644
--- a/sapling.lua
+++ b/sapling.lua
@@ -18,7 +18,7 @@ minetest.register_node("ethereal:bamboo_sprout", {
sounds = default.node_sound_defaults(),
selection_box = {
type = "fixed",
- fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
+ fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 0, 4 / 16}
},
on_use = minetest.item_eat(-2),
grown_height = 11,
@@ -40,13 +40,13 @@ ethereal.register_sapling = function(name, desc, texture, height)
walkable = false,
selection_box = {
type = "fixed",
- fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+ fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
groups = {
snappy = 2, dig_immediate = 3, flammable = 2,
- ethereal_sapling = 1, sapling = 1, attached_node = 1
+ ethereal_sapling = 1, attached_node = 1
},
- sounds = default.node_sound_defaults(),
+ sounds = default.node_sound_leaves_defaults(),
grown_height = height,
})
end
@@ -225,3 +225,10 @@ minetest.register_abm({
ethereal.grow_sapling(pos, node)
end,
})
+
+-- burn saplings
+minetest.register_craft({
+ type = "fuel",
+ recipe = "group:ethereal_sapling",
+ burntime = 10,
+})