summaryrefslogtreecommitdiff
path: root/wood.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2015-07-04 12:22:39 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2015-07-04 12:22:39 +0100
commit023d0303c1c01508039c1de0b79c5b86e21cefb1 (patch)
tree74f54ea2dba1181cf58a9c4e1876cd1acaca3ad6 /wood.lua
parent2bc7406c9a2112eba39e91c304dab74699093c4d (diff)
Code tidy and fixed fruit not dropping
Diffstat (limited to 'wood.lua')
-rw-r--r--wood.lua139
1 files changed, 96 insertions, 43 deletions
diff --git a/wood.lua b/wood.lua
index b868ca0..f17e249 100644
--- a/wood.lua
+++ b/wood.lua
@@ -1,17 +1,24 @@
--- Define Trunks and Wood
-minetest.register_node("ethereal:acacia_trunk", { -- Acacia Trunk (thanks to VanessaE for acacia textures)
+--= Define Trunks and Wood
+
+-- Acacia Trunk (thanks to VanessaE for acacia textures)
+minetest.register_node("ethereal:acacia_trunk", {
description = "Acacia Trunk",
- tiles = {"moretrees_acacia_trunk_top.png", "moretrees_acacia_trunk_top.png", "moretrees_acacia_trunk.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
+ tiles = {
+ "moretrees_acacia_trunk_top.png",
+ "moretrees_acacia_trunk_top.png",
+ "moretrees_acacia_trunk.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
})
-minetest.register_node("ethereal:acacia_wood", { -- Acacia Wood
+-- Acacia Wood
+minetest.register_node("ethereal:acacia_wood", {
description = "Acacia Wood",
tiles = {"moretrees_acacia_wood.png"},
is_ground_content = false,
- groups = {wood=1,choppy=2,oddly_breakable_by_hand=1,flammable=3},
+ groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
@@ -20,19 +27,25 @@ minetest.register_craft({
recipe = {{"ethereal:acacia_trunk"}}
})
-minetest.register_node("ethereal:willow_trunk", { -- Willow Trunk
+-- Willow Trunk
+minetest.register_node("ethereal:willow_trunk", {
description = "Willow Trunk",
- tiles = {"willow_trunk_top.png", "willow_trunk_top.png", "willow_trunk.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
+ tiles = {
+ "willow_trunk_top.png",
+ "willow_trunk_top.png",
+ "willow_trunk.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
})
-minetest.register_node("ethereal:willow_wood", { -- Willow Wood
+-- Willow Wood
+minetest.register_node("ethereal:willow_wood", {
description = "Willow Wood",
tiles = {"willow_wood.png"},
is_ground_content = false,
- groups = {wood=1,choppy=2,oddly_breakable_by_hand=1,flammable=3},
+ groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
@@ -41,19 +54,25 @@ minetest.register_craft({
recipe = {{"ethereal:willow_trunk"}}
})
-minetest.register_node("ethereal:redwood_trunk", { -- Redwood Trunk
+-- Redwood Trunk
+minetest.register_node("ethereal:redwood_trunk", {
description = "Redwood Trunk",
- tiles = {"redwood_trunk_top.png", "redwood_trunk_top.png", "redwood_trunk.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
+ tiles = {
+ "redwood_trunk_top.png",
+ "redwood_trunk_top.png",
+ "redwood_trunk.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
})
-minetest.register_node("ethereal:redwood_wood", { -- Redwood Wood
+-- Redwood Wood
+minetest.register_node("ethereal:redwood_wood", {
description = "Redwood Wood",
tiles = {"redwood_wood.png"},
is_ground_content = false,
- groups = {wood=1,choppy=2,oddly_breakable_by_hand=1,flammable=3},
+ groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
@@ -62,19 +81,25 @@ minetest.register_craft({
recipe = {{"ethereal:redwood_trunk"}},
})
-minetest.register_node("ethereal:frost_tree", { -- Frost Trunk
+-- Frost Trunk
+minetest.register_node("ethereal:frost_tree", {
description = "Frost Tree",
- tiles = {"ethereal_frost_tree_top.png", "ethereal_frost_tree_top.png", "ethereal_frost_tree.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,put_out_fire=1},
+ tiles = {
+ "ethereal_frost_tree_top.png",
+ "ethereal_frost_tree_top.png",
+ "ethereal_frost_tree.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
})
-minetest.register_node("ethereal:frost_wood", { -- Frost Wood
+-- Frost Wood
+minetest.register_node("ethereal:frost_wood", {
description = "Frost Wood",
tiles = {"frost_wood.png"},
is_ground_content = false,
- groups = {wood=1,choppy=2,oddly_breakable_by_hand=1,put_out_fire=1},
+ groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
sounds = default.node_sound_wood_defaults(),
})
@@ -83,19 +108,25 @@ minetest.register_craft({
recipe = {{"ethereal:frost_tree"}}
})
-minetest.register_node("ethereal:yellow_trunk", { -- Healing Trunk
+-- Healing Trunk
+minetest.register_node("ethereal:yellow_trunk", {
description = "Healing Tree Trunk",
- tiles = {"yellow_tree_top.png", "yellow_tree_top.png", "yellow_tree.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,put_out_fire=1},
+ tiles = {
+ "yellow_tree_top.png",
+ "yellow_tree_top.png",
+ "yellow_tree.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
})
-minetest.register_node("ethereal:yellow_wood", { -- Healing Wood
+-- Healing Wood
+minetest.register_node("ethereal:yellow_wood", {
description = "Healing Tree Wood",
tiles = {"yellow_wood.png"},
is_ground_content = false,
- groups = {wood=1,choppy=2,oddly_breakable_by_hand=1,put_out_fire=1},
+ groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, put_out_fire = 1},
sounds = default.node_sound_wood_defaults(),
})
@@ -104,19 +135,25 @@ minetest.register_craft({
recipe = {{"ethereal:yellow_trunk"}}
})
-minetest.register_node("ethereal:palm_trunk", { -- Palm Trunk
+-- Palm Trunk (thanks to VanessaE for palm textures)
+minetest.register_node("ethereal:palm_trunk", {
description = "Palm Trunk",
- tiles = {"moretrees_palm_trunk_top.png", "moretrees_palm_trunk_top.png", "moretrees_palm_trunk.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
+ tiles = {
+ "moretrees_palm_trunk_top.png",
+ "moretrees_palm_trunk_top.png",
+ "moretrees_palm_trunk.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
})
-minetest.register_node("ethereal:palm_wood", { -- Palm Wood
+-- Palm Wood
+minetest.register_node("ethereal:palm_wood", {
description = "Palm Wood",
tiles = {"moretrees_palm_wood.png"},
is_ground_content = false,
- groups = {wood=1,choppy=2,oddly_breakable_by_hand=1,flammable=3},
+ groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
@@ -125,19 +162,25 @@ minetest.register_craft({
recipe = {{"ethereal:palm_trunk"}}
})
-minetest.register_node("ethereal:banana_trunk", { -- Banana Tree Trunk
+-- Banana Tree Trunk
+minetest.register_node("ethereal:banana_trunk", {
description = "Banana Trunk",
- tiles = {"banana_trunk_top.png", "banana_trunk_top.png", "banana_trunk.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
+ tiles = {
+ "banana_trunk_top.png",
+ "banana_trunk_top.png",
+ "banana_trunk.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
})
-minetest.register_node("ethereal:banana_wood", { -- Banana Tree Wood
+-- Banana Tree Wood
+minetest.register_node("ethereal:banana_wood", {
description = "Banana Wood",
tiles = {"banana_wood.png"},
is_ground_content = false,
- groups = {wood=1,choppy=2,oddly_breakable_by_hand=1,flammable=3},
+ groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 3},
sounds = default.node_sound_wood_defaults(),
})
@@ -146,10 +189,15 @@ minetest.register_craft({
recipe = {{"ethereal:banana_trunk"}}
})
-minetest.register_node("ethereal:scorched_tree", { -- Scorched Trunk
+-- Scorched Trunk
+minetest.register_node("ethereal:scorched_tree", {
description = "Scorched Tree",
- tiles = {"scorched_tree_top.png", "scorched_tree_top.png", "scorched_tree.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=1},
+ tiles = {
+ "scorched_tree_top.png",
+ "scorched_tree_top.png",
+ "scorched_tree.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 1},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
})
@@ -163,10 +211,15 @@ minetest.register_craft({
}
})
-minetest.register_node("ethereal:mushroom_trunk", { -- Mushroom Trunk
+-- Mushroom Trunk
+minetest.register_node("ethereal:mushroom_trunk", {
description = "Mushroom",
- tiles = {"mushroom_trunk_top.png", "mushroom_trunk_top.png", "mushroom_trunk.png"},
- groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,flammable=2},
+ tiles = {
+ "mushroom_trunk_top.png",
+ "mushroom_trunk_top.png",
+ "mushroom_trunk.png"
+ },
+ groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, flammable = 2},
sounds = default.node_sound_wood_defaults(),
paramtype2 = "facedir",
-})
+}) \ No newline at end of file