From a9f3896ae764f6fa48472b987ac3b33a50b48b78 Mon Sep 17 00:00:00 2001
From: TenPlus1 <kinsellaja@yahoo.com>
Date: Wed, 21 Dec 2016 21:23:13 +0000
Subject: [PATCH] selection boxes updated thanks to RQWorldblender

---
 crystal.lua   |  2 +-
 extra.lua     |  2 +-
 food.lua      |  8 ++++----
 plantlife.lua | 16 ++++++++--------
 sapling.lua   | 15 +++++++++++----
 sealife.lua   |  8 ++++----
 6 files changed, 29 insertions(+), 22 deletions(-)

diff --git a/crystal.lua b/crystal.lua
index e90ae40..91aac19 100644
--- a/crystal.lua
+++ b/crystal.lua
@@ -17,7 +17,7 @@ minetest.register_node("ethereal:crystal_spike", {
 	sounds = default.node_sound_glass_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
+		fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 0.41, 5 / 16},
 	},
 })
 
diff --git a/extra.lua b/extra.lua
index 4c5ac47..13c0139 100644
--- a/extra.lua
+++ b/extra.lua
@@ -116,7 +116,7 @@ minetest.register_node("ethereal:candle", {
 	sounds = default.node_sound_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 }
+		fixed = { -0.15, -0.5, -0.15, 0.15, 0, 0.15 }
 	},
 })
 
diff --git a/food.lua b/food.lua
index 586dc0f..486ef70 100644
--- a/food.lua
+++ b/food.lua
@@ -14,7 +14,7 @@ minetest.register_node("ethereal:banana", {
 	walkable = false,
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.2, -0.5, -0.2, 0.2, 0.2, 0.2}
+		fixed = {-0.31, -0.5, -0.31, 0.31, 0.5, 0.31}
 	},
 	groups = {
 		fleshy = 3, dig_immediate = 3, flammable = 2,
@@ -62,7 +62,7 @@ minetest.register_node("ethereal:orange", {
 	walkable = false,
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
+		fixed = {-0.27, -0.37, -0.27, 0.27, 0.44, 0.27}
 	},
 	groups = {
 		fleshy = 3, dig_immediate = 3, flammable = 2,
@@ -106,7 +106,7 @@ minetest.register_node("ethereal:coconut", {
 	wield_image = "moretrees_coconut.png",
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.35, -0.35, -0.35, 0.35, 0.35, 0.35}
+		fixed = {-0.31, -0.43, -0.31, 0.31, 0.44, 0.31}
 	},
 	groups = {
 		snappy = 1, oddly_breakable_by_hand = 1, cracky = 1,
@@ -137,7 +137,7 @@ minetest.register_node("ethereal:golden_apple", {
 	walkable = false,
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.2, -0.3, -0.2, 0.2, 0.2, 0.2}
+		fixed = {-0.2, -0.37, -0.2, 0.2, 0.31, 0.2}
 	},
 	groups = {
 		fleshy = 3, dig_immediate = 3,
diff --git a/plantlife.lua b/plantlife.lua
index bf86d5a..d0eafd7 100644
--- a/plantlife.lua
+++ b/plantlife.lua
@@ -18,7 +18,7 @@ minetest.register_node("ethereal:fire_flower", {
 	sounds = default.node_sound_leaves_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
+		fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 1 / 2, 5 / 16},
 	},
 
 	on_punch = function(pos, node, puncher)
@@ -138,7 +138,7 @@ minetest.register_node("ethereal:fern", {
 	sounds = default.node_sound_leaves_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+		fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 0.67, 5 / 16},
 	},
 })
 
@@ -166,7 +166,7 @@ minetest.register_node("ethereal:dry_shrub", {
 	sounds = default.node_sound_leaves_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+		fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 4 / 16, 5 / 16},
 	},
 })
 
@@ -187,7 +187,7 @@ minetest.register_node("ethereal:snowygrass", {
 	sounds = default.node_sound_leaves_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+		fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 5 / 16, 5 / 16},
 	},
 })
 
@@ -208,7 +208,7 @@ minetest.register_node("ethereal:crystalgrass", {
 	sounds = default.node_sound_leaves_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+		fixed = {-5 / 16, -0.5, -5 / 16, 5 / 16, 5 / 16, 5 / 16},
 	},
 })
 
@@ -251,7 +251,7 @@ minetest.register_node("ethereal:illumishroom", {
 	sounds = default.node_sound_leaves_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
+		fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16},
 	},
 })
 
@@ -269,7 +269,7 @@ minetest.register_node("ethereal:illumishroom2", {
 	sounds = default.node_sound_leaves_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
+		fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16},
 	},
 })
 
@@ -287,6 +287,6 @@ minetest.register_node("ethereal:illumishroom3", {
 	sounds = default.node_sound_leaves_defaults(),
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
+		fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 0.47, 6 / 16},
 	},
 })
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,
+})
diff --git a/sealife.lua b/sealife.lua
index 060c1ef..58f856b 100644
--- a/sealife.lua
+++ b/sealife.lua
@@ -41,7 +41,7 @@ minetest.register_node("ethereal:coral2", {
 	paramtype = "light",
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+		fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 1 / 4, 6 / 16},
 	},
 	light_source = 3,
 	groups = {snappy = 3},
@@ -64,7 +64,7 @@ minetest.register_node("ethereal:coral3", {
 	paramtype = "light",
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+		fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 1 / 4, 6 / 16},
 	},
 	light_source = 3,
 	groups = {snappy = 3},
@@ -87,7 +87,7 @@ minetest.register_node("ethereal:coral4", {
 	paramtype = "light",
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+		fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 8 / 16, 6 / 16},
 	},
 	light_source = 3,
 	groups = {snappy = 3},
@@ -110,7 +110,7 @@ minetest.register_node("ethereal:coral5", {
 	paramtype = "light",
 	selection_box = {
 		type = "fixed",
-		fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5}
+		fixed = {-6 / 16, -0.5, -6 / 16, 6 / 16, 3 / 16, 6 / 16},
 	},
 	light_source = 3,
 	groups = {snappy = 3},
-- 
GitLab